[英]why I can't open a flyout with a ImageButton on windows - .NET MAUI
[英]Is there a way to put a button to open the Flyout in Maui
我正在制作一個移動和 pc 應用程序,我想添加一個按鈕來打開彈出窗口,因為我不喜歡頂角的 windows 上的按鈕,與 android 上的按鈕一樣,你必須滑動。 所以我想知道是否有辦法添加一個按鈕並禁用當前打開它的方式。
謝謝
用按鈕打開 FLyout。
private void Button_Clicked(object sender, EventArgs e)
{
Shell.Current.FlyoutIsPresented = true;
}
要隱藏Bar,在頁面上你的xaml之上
Shell.NavBarIsVisible="False"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.