小编ohk*_*red的帖子

使用Xamarin.Forms在右侧的Master Detail页面

我使用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

8
推荐指数
1
解决办法
8463
查看次数