Skip to main content

WindowService Members

Allows you to show your views as windows and control them from your ViewModels.

Constructors

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

Fields

Name Description
AllowSetWindowOwnerProperty static Identifies the WindowService.AllowSetWindowOwner dependency property.
TitleProperty static Identifies the WindowService.Title dependency property.
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.
WindowShowModeProperty static Identifies the WindowService.WindowShowMode dependency property.
WindowStartupLocationProperty static Identifies the WindowService.WindowStartupLocation dependency property.
WindowStyleProperty static Identifies the WindowService.WindowStyle dependency property.
WindowTypeProperty static Identifies the WindowService.WindowType dependency property.

Properties

Name Description
AllowSetWindowOwner Gets or sets whether the service specifies the window’s owner. This is a dependency property.
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.
Title Gets or sets the service window’s title. This is a dependency property.
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.
WindowShowMode Gets or sets the current service window’s show mode (modeless/modal). This is a dependency property.
WindowStartupLocation Gets or sets the service window’s position when it first shown. This is a dependency property.
WindowStyle Gets or sets the style applied to the service window. This is a dependency property.
WindowType Gets or sets the current service window type. This is a dependency property.

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.
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.
ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
UpdateThemeName(FrameworkElement, FrameworkElement) static Inherited from ViewServiceBase.
See Also