我在我的MainPage中保存了一个NavigationDrawer,它也包含一个TabbedPage。我希望将NavigationDrawer排除在选项卡式页面之外,这样在页面之间导航时就不会对NavigationDrawer进行动画处理。我该怎么做呢?我是这样想的:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:WordbahnApp"
xmlns:navigation="clr-namespace:Syncfusion.SfNavigationDrawer.XForms;assembly=Syncfusion.SfNavigationDrawer.XForms"
x:Class="WordbahnApp.MainPage">
<navigation:SfNavigationDrawer />
<TabbedPage>
<local:Browsing />
<local:Reader />
<local:Library />
<local:LitFit />
</TabbedPage>
</ContentPage>发布于 2016-12-16 20:02:19
查询:如何在MainPage上添加NavigationDrawer和TabbedPage (ContentPage)。
我们不能在内容页中添加另一个页。我们只能在内容页中添加视图。同样,我们不能在NavigationDrawer中添加选项卡式页面,但可以将NavigationDrawer作为内容添加到TabbePage中。
致以敬意,
Chozarajan P
发布于 2016-12-16 05:30:16
在内容页面中,您只能有一个视图,不能将页面放在其中。
你会卓尔吗?你想做什么?
https://stackoverflow.com/questions/41172037
复制相似问题