This library allows for simple adding of region navigation to WPF applications.
This means, you can navigate to different views (optionally with view models) in ContentControls.
You can acquire this library either directly via the NuGet package manager or by downloading it from the NuGet Gallery.
I recommend having a look at the example project.
Prepare your existing view by adding a ContentControl
and registering it to the RegionNavigationService
with a specific region key.
RegionNavigationService.RegisterRegion(_YourRegionKey_, _YourContentControl_)
NavigationService.NavigationRegion="_YourRegionKey_"
property inside the ContentControl's xaml.Create the views that you want to navigate to.
Optionally, create view models for your views.
INavigationAware
interface in your view models, making them being notified when navigation occurs.Register your views and view models to the RegionContentService
with a specific content key.
RegionContentService.RegisterContent<_YourViewType_>(_YourContentKey_)
.RegionContentService.RegisterContent<_YourViewType_, _YourViewModelType_>(_YourContentKey_)
.Done! You can now navigate to your views by simply calling RegionNavigationService.Navigate(_YourRegionKey_, _YourContentKey_)
.
Feel free to reach out!
These screenshots show the example pages, included in the project.
Please have a look at THIRD-PARTY-LICENSES for all the awesome packages used in this library.
This library is MIT licensed.