我正在使用 Xamarin 表單,我無法阻止側邊欄顯示在登錄上。
我在我的LoginPage.xaml
:
Shell.NavBarIsVisible="False"
Shell.FlyoutItemIsVisible="False"
protected override void OnAppearing()
{
base.OnAppearing();
Shell.SetTabBarIsVisible(this, false);
Shell.SetNavBarIsVisible(this, false);
//AppShell.Current.remo();
}
protected override void OnDisappearing()
{
base.OnDisappearing();
Shell.SetTabBarIsVisible(this, true);
Shell.SetNavBarIsVisible(this, true);
}
誰能幫我?
uj5u.com熱心網友回復:
如果邊欄是指Shell
彈出視窗,則在登錄頁面 xaml 中添加以下行
Shell.FlyoutBehavior="Disabled"
檔案:Shell 彈出行為
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/507014.html
標籤:xml xamarin xamarin.forms xamarin.forms.shell