在Xamarin.forms中单击按钮切换AppShell



我有AppShell,我从侧面拉显示,但我想实现这个按钮点击切换AppShell。我没有使用默认的AppShell导航栏,所以我禁用了Shell.NavBarIsVisible="False",因为它不需要。

我想通过自定义按钮来切换AppShell。

你可以这样打开它,true为打开,false为关闭

private void Bottommenu3_Clicked(object sender, EventArgs e)

Shell.Current.FlyoutIsPresented = true;
}

最新更新