Skip to main content

NavigationServiceBase Members

Provides members that support navigation between Views in MVVM Windows Modern UI applications.

Constructors

Name Description
NavigationServiceBase() Initializes a new instance of the NavigationServiceBase class.

Fields

Name Description
UnregisterOnUnloadedProperty static Identifies the ServiceBase.UnregisterOnUnloaded dependency property. Inherited from ServiceBase.
ViewLocatorProperty static Identifies the ViewServiceBase.ViewLocator dependency property. Inherited from ViewServiceBase.
ViewTemplateProperty static Identifies the ViewServiceBase.ViewTemplate dependency property. Inherited from ViewServiceBase.
ViewTemplateSelectorProperty static Identifies the ViewServiceBase.ViewTemplateSelector dependency property. Inherited from ViewServiceBase.

Properties

Name Description
ActiveDocument Gets or sets the active document.
CanGoBack Returns whether backward navigation can be performed.
CanGoForward Returns whether forward navigation can be performed.
CanNavigate Gets a value indicating whether a NavigationFrame associated with the current service can navigate.
Current Returns the current ViewModel.
Documents Gets the collection of existing documents.
HasAnimatedProperties Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object’s dependency properties. Inherited from Animatable.
UnregisterOnUnloaded Gets or sets whether to unregister the service when the associated View is unloaded. This is a dependency property. Inherited from ServiceBase.
ViewLocator Specifies the view locator. Inherited from ViewServiceBase.
ViewTemplate Specifies the view template. Inherited from ViewServiceBase.
ViewTemplateSelector Specifies the template selector that chooses a view template based on the passed view model. Inherited from ViewServiceBase.

Methods

Name Description
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
ApplyAnimationClock(DependencyProperty, AnimationClock) Applies an AnimationClock to the specified DependencyProperty. If the property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the specified HandoffBehavior is used. Inherited from Animatable.
BeginAnimation(DependencyProperty, AnimationTimeline) Applies an animation to the specified DependencyProperty. The animation is started when the next frame is rendered. If the specified property is already animated, the SnapshotAndReplace handoff behavior is used. Inherited from Animatable.
ClearCache() Clears the navigation cache.
ClearNavigationHistory() Clears the navigation history.
Clone() Creates a modifiable clone of this Animatable, making deep copies of this object’s values. When copying this object’s dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values. Inherited from Animatable.
GetAnimationBaseValue(DependencyProperty) Returns the non-animated value of the specified DependencyProperty. Inherited from Animatable.
GoBack() Navigates to the previous View if there is one in the navigation history.
GoBack(Object) Navigates back to the previously selected screen (view).
GoForward() Navigates to the next View if there is one in the navigation history.
GoForward(Object) Navigates forward to the next screen (view).
Navigate(String, Object, Object, Boolean) Navigates to a View with specific parameters. Allows you to skip writing an entry about this navigation to the Frame’s Journal.
Navigate(String, Object, Object, Object, Boolean) Performs navigation to the target View.
Navigate(String, Object, Object) Navigates to a View with specific parameters.
ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
UpdateThemeName(FrameworkElement, FrameworkElement) static Inherited from ViewServiceBase.
See Also