Skip to content

Menus

It's a pretty common paradigm that you may have a MasterDetailPage that may need to update with various menu options. The abstractions for the Menu Builder help you do just that along with the MenuBar.

Note

This could be used either with Prism's INavigationService or Shell Navigation

IMenuBuilder builder = new MenuBuilder();
builder.RegisterOption(new MainMenuOption
{
    Text = "Home",
    Uri = "/home",
    Priority = -1,

    // far fa-dashboard
    Glyph = Mappings.FontAwesomeRegular.Dashboard
});

Note

If you are using the AP.MobileToolkit.Fonts you only need to provide the Mapping value for the glyph. Otherwise you should use the Unicode value and Font Family.

Additional Resources