Xamarin.forms Xamarin的SlideOverKit.Forms弹出菜单

Xamarin.forms Xamarin的SlideOverKit.Forms弹出菜单,xamarin.forms,Xamarin.forms,使用Xamarin.Forms,我一直在努力寻找好的库来处理简单的弹出窗口。我真正想要的是,除了Xamarin 所以我尝试了SlideOverKit,它似乎最接近我要找的东西,但它自2016年以来就没有维护过,文档很差。我需要一些帮助来让我的视图真正显示出来。(但我对这个图书馆的其他选择持开放态度) 第页: 过滤视图 public partial class FilterView : SlideMenuView { public FilterView()

使用Xamarin.Forms,我一直在努力寻找好的库来处理简单的弹出窗口。我真正想要的是,除了Xamarin

所以我尝试了SlideOverKit,它似乎最接近我要找的东西,但它自2016年以来就没有维护过,文档很差。我需要一些帮助来让我的视图真正显示出来。(但我对这个图书馆的其他选择持开放态度)

第页:

过滤视图

public partial class FilterView : SlideMenuView
    {
        public FilterView()
        {
            InitializeComponent();
            this.HeightRequest = 600;
            // You must set IsFullScreen in this case, 
            // otherwise you need to set WidthRequest, 
            // just like the QuickInnerMenu sample
            this.IsFullScreen = true;
            this.MenuOrientations = MenuOrientation.TopToBottom;

            // 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.FromHex("#D8DDE7");
        }
    }


----
<?xml version="1.0" encoding="UTF-8"?>
<t:SlideMenuView  xmlns:t="clr-namespace:SlideOverKit;assembly=SlideOverKit"
                  xmlns="http://xamarin.com/schemas/2014/forms" 
                  xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                  x:Class="Caper.Xamarin.Pages.FilterView">

          <Label Text="Make this pretty later" />

</t:SlideMenuView>

public分部类过滤器视图:SlideMenuView
{
公共过滤器视图()
{
初始化组件();
此.HeightRequest=600;
//在这种情况下,必须设置IsFullScreen,
//否则您需要设置WidthRequest,
//就像QuickInnerMenu示例一样
this.IsFullScreen=true;
this.MenuOrientations=MenuOrientation.toptobttom;
//你必须设置背景色,
//并且不能将另一个背景颜色的布局覆盖整个视图
//否则,它不能在Android上拖动
this.BackgroundColor=Color.FromHex(“#D8DDE7”);
}
}
----
public partial class FilterView : SlideMenuView
    {
        public FilterView()
        {
            InitializeComponent();
            this.HeightRequest = 600;
            // You must set IsFullScreen in this case, 
            // otherwise you need to set WidthRequest, 
            // just like the QuickInnerMenu sample
            this.IsFullScreen = true;
            this.MenuOrientations = MenuOrientation.TopToBottom;

            // 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.FromHex("#D8DDE7");
        }
    }


----
<?xml version="1.0" encoding="UTF-8"?>
<t:SlideMenuView  xmlns:t="clr-namespace:SlideOverKit;assembly=SlideOverKit"
                  xmlns="http://xamarin.com/schemas/2014/forms" 
                  xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
                  x:Class="Caper.Xamarin.Pages.FilterView">

          <Label Text="Make this pretty later" />

</t:SlideMenuView>