【发布时间】:2019-03-02 04:25:00
【问题描述】:
借助 NuGet 库中的 SlideOverKit 库,我正在 Xamarin.forms 中实现 BottomSheet。我已经在GitHub 上提到了他们的样本。我的实现细节如下
实现细节:
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:SmartApp.CustomControls"
xmlns:y="clr-namespace:SlideOverKit;assembly=SlideOverKit"
Title="Opportunities"
x:Class="SmartApp.OpportunitiesPage">
<TabbedPage.ToolbarItems>
<!--Menu Item here-->
</TabbedPage.ToolbarItems>
<ContentPage Title="Tab 1" >
<!--Tab 1 details here-->
</ContentPage>
<y:SlideMenuView >
<!--Tab 2 details here-->
</y:SlideMenuView>
</TabbedPage>
在上述实现中,我面临编译时错误,即“无法将'SlideMenuView' 类型的值添加到'IList' 类型的集合或字典中”,y:SlideMenuView 也不支持Title属性,这是另一个问题。我该如何解决这个问题?请帮忙。
【问题讨论】:
标签: c# xamarin xamarin.forms xamarin.android cross-platform