我使用Xamarin.Forms在左侧创建了一个主详细信息页面,如何为右侧创建相同的内容?
下面是我左侧滑块菜单的示例代码;
public class App
{
static MasterDetailPage MDPage;
public static Page GetMainPage()
{
return MDPage = new MasterDetailPage {
Master = new ContentPage {
Title = "Master",
BackgroundColor = Color.Silver,
Icon = Device.OS == TargetPlatform.iOS ? "menu.png" : null,
Content = new StackLayout {
Padding = new Thickness(5, 50),
Children = { Link("A"), Link("B"), Link("C") }
},
},
Detail = new NavigationPage(new ContentPage {
Title = "A",
Content = new Label { Text = "A" }
}),
};
} …
Run Code Online (Sandbox Code Playgroud) cross-platform master-detail right-to-left xamarin xamarin.forms