Fingann / MaterialMaLightTemplate

MVVM light, Mahapps, MaterialDesign, Notification, Navigation
MIT License
3 stars 2 forks source link

MaterialMaLightTemplate

MVVM light, Mahapps, MaterialDesign, Notification, Navigation

Main Page

NotificationsService

Notifications are based on https://github.com/Federerer/Notifications.Wpf

To create notifications use the following Interface To create notifications inside the application use

areaName = "WindowArea"

To create notifications outside the application use

areaName = ""

NavigationService

Notifications are used by initialising a INavigationService with a NavigationService If you navigate to a view you need to define it in MainWindow.Xaml as a datatemplate under Window.Resources like this:

<DataTemplate DataType="{x:Type viewModels:MainPageViewModel}">
  <views:MainPageView/>
</DataTemplate>

To navigate to the MainPageView you can now call NavigateTo with the view model class name like this:

NavigationService.NavigateTo("MainPageViewModel")