我正在制作一個移動和 pc 應用程式,我想添加一個按鈕來打開彈出視窗,因為我不喜歡視窗頂部角落的按鈕,與你必須滑動的 android 相同。所以我想知道是否有辦法添加按鈕并禁用當前的打開方式。
謝謝
uj5u.com熱心網友回復:
使用 Button 打開 FLyout。
private void Button_Clicked(object sender, EventArgs e)
{
Shell.Current.FlyoutIsPresented = true;
}
要隱藏 Bar ,請在頁面上的 xaml 頂部
Shell.NavBarIsVisible="False"
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/478203.html
