Skip to main content

Setting custom Menu Entries

After downloading your Kickoff solution from Grial Web Admin you can customize the flyout menu entries. To visually customize the flyout's menu entries you should change the MainMenuItemTemplate.xaml that displays the entry name and icon.

If you want to change the entry's name or icon, you should simply replace them in their MenuEntry inside LoadData method in the MainMenuViewModel.

In case you want to add or remove menu entries, you should just add them or remove them from the returned list in the LoadData method.

private void LoadData()
{
MainMenuEntries = new List<MenuEntry>
{
new MenuEntry {
Name = Resx.AppResources.PageTitleArticlesClassicView,
Icon = GrialIconsFont.Fire,
PageType = typeof(ArticlesClassicViewPage),
IsModal = false },

new MenuEntry {
Name = Resx.AppResources.PageTitleParallaxHeaderArticle,
Icon = GrialIconsFont.Fire,
PageType = typeof(ParallaxHeaderArticlePage),
IsModal = false },

new MenuEntry {
Name = Resx.AppResources.PageTitleFullBackgroundSignup,
Icon = GrialIconsFont.Fire,
PageType = typeof(FullBackgroundSignupPage),
IsModal = true },

new MenuEntry {
Name = Resx.AppResources.PageTitleWalkthroughImage,
Icon = GrialIconsFont.Fire,
PageType = typeof(WalkthroughImagePage),
IsModal = true },
};
}