Xaml 在Xamarin表单中从右侧提取母版页

Xaml 在Xamarin表单中从右侧提取母版页,xaml,xamarin,xamarin.forms,Xaml,Xamarin,Xamarin.forms,我想问一下,是否可以在xamarin.forms(最好是使用XAML)中使母版页从右侧显示(与默认行为相反),如果可以,您能告诉我怎么做吗?默认情况下是不可能的。 你可以试试 默认情况下,这是不可能的。 你可以试试 public RightSideMasterPage () { InitializeComponent (); // You must set IsFullScreen in this case, // otherwise you need to set H

我想问一下,是否可以在xamarin.forms(最好是使用XAML)中使母版页从右侧显示(与默认行为相反),如果可以,您能告诉我怎么做吗?

默认情况下是不可能的。 你可以试试


默认情况下,这是不可能的。 你可以试试

public RightSideMasterPage ()
{
    InitializeComponent ();
    // You must set IsFullScreen in this case, 
    // otherwise you need to set HeightRequest, 
    // just like the QuickInnerMenu sample
    this.IsFullScreen = true;
    // You must set WidthRequest in this case
    this.WidthRequest = 250;
    this.MenuOrientations = MenuOrientation.RightToLeft;

    // You must set BackgroundColor, 
    // and you cannot put another layout with background color cover the whole View
    // otherwise, it cannot be dragged on Android
    this.BackgroundColor = Color.White;

    // This is shadow view color, you can set a transparent color
    this.BackgroundViewColor = Color.FromHex ("#CE766C");
}