Interface INavigationWindow
Represents a contract with a Window that contains INavigationView.
Through defined INavigationViewPageProvider service allows you to use the MVVM model in WPF UI
navigation.
public interface INavigationWindow
Methods
CloseWindow()
Triggers the command to close a window.
void CloseWindow()
GetNavigation()
Provides direct access to the control responsible for navigation.
INavigationView GetNavigation()
Returns
- INavigationView
Instance of the INavigationView control.
Navigate(Type)
Lets you navigate to the selected page based on it's type. Should be used with INavigationViewPageProvider.
bool Navigate(Type pageType)
Parameters
pageType
TypeType
of the page.
Returns
SetPageService(INavigationViewPageProvider)
Lets you attach the service that delivers page instances to INavigationView.
void SetPageService(INavigationViewPageProvider navigationViewPageProvider)
Parameters
navigationViewPageProvider
INavigationViewPageProviderInstance of the INavigationViewPageProvider with attached service provider.
SetServiceProvider(IServiceProvider)
Lets you attach the service provider that delivers page instances to INavigationView.
void SetServiceProvider(IServiceProvider serviceProvider)
Parameters
serviceProvider
IServiceProviderInstance of the IServiceProvider.
ShowWindow()
Triggers the command to open a window.
void ShowWindow()