18.01 Add Genre Lform to navigation bar (WPF) - chempkovsky/CS2WPF-and-CS2XAMARIN GitHub Wiki
- Open "ViewModels\MainWindowViewModel.cs"-file of the PrismDemoApp-project
- Modify _MainMenu variable as shown
IEnumerable<IWebServiceFilterMenuInterface> _MainMenu = new ObservableCollection<IWebServiceFilterMenuInterface>()
{
new WebServiceFilterMenuViewModel() { Id = "000", Caption="Home", IconName="Home", IconColor="Primary", Data="HomeUserControl", Command=RoutedCommandExt.MainMenuCommand},
new WebServiceFilterMenuViewModel() { Id = "001", Caption="LitGenre Lform", IconName="TableRefresh", IconColor="Primary", Data="LitGenreViewLformUserControl", Command=RoutedCommandExt.MainMenuCommand},
};
- rebuild
- ModelInterfacesClassLibrary
- ModelServicesPrismModule
- PrismDemoApp
- run Dm04WebApp
- run PrismDemoApp
- In the app click "LitGenre Lform"-menu item and add a pair of records