Table of Contents

Interface INavigationWindow

Namespace
Wpf.Ui
Assembly
Wpf.Ui.dll

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 Type

Type of the page.

Returns

bool

true if the operation succeeds. false otherwise.

SetPageService(INavigationViewPageProvider)

Lets you attach the service that delivers page instances to INavigationView.

void SetPageService(INavigationViewPageProvider navigationViewPageProvider)

Parameters

navigationViewPageProvider INavigationViewPageProvider

Instance 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 IServiceProvider

Instance of the IServiceProvider.

ShowWindow()

Triggers the command to open a window.

void ShowWindow()