admin管理员组文章数量:1302328
Tried to add Shell Flyout Items in AppShell.xaml.cs through below code.
// Settings Page
var settingsItem = new FlyoutItem
{
Title = "Settings",
Icon = new FontImageSource
{
Glyph = "\ue8b8",
FontFamily = "MaterialIcons",
Size = 694,
Color = Color.FromArgb("#5f6368")
},
FlyoutDisplayOptions = FlyoutDisplayOptions.AsSingleItem,
Items =
{
new ShellContent
{
ContentTemplate = new DataTemplate(typeof(Settings)),
Title = "Settings"
}
}
};
var aboutItem = new MenuItem
{
Text = "About",
IconImageSource = new FontImageSource
{
Glyph = "\uE88E",
FontFamily = "MaterialIcons",
Size = 694,
Color = Color.FromArgb("#5f6368")
}
};
// Handle Click Event
aboutItem.Clicked += (sender, e) =>
{
MainThread.BeginInvokeOnMainThread(async () =>
{
// Perform logout logic, such as navigating to the login page
await Shell.Current.GoToAsync("About");
});
};
When any user click on Flyout item,navigation working properly in Debug Mode, but in Release mode Navigation not working. How to fix this?
本文标签:
版权声明:本文标题:maui - FlyoutItem or MenuItem navigation not working in Release mode, but working in Debug mode - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741701926a2393341.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论