Skip to main content

DispatcherService Members

Allows you to perform actions in a ViewModel using the Dispatcher.

Constructors

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

Fields

Name Description
DelayProperty static Identifies the DispatcherService.Delay dependency property.
UnregisterOnUnloadedProperty static Identifies the ServiceBase.UnregisterOnUnloaded dependency property. Inherited from ServiceBase.

Properties

Name Description
Delay Gets or sets the amount of time to wait before invoking the DispatcherService’s DispatcherService.BeginInvoke method. This is a dependency property.
DispatcherPriority Gets or sets the DispatcherService’s dispatcher priority for invoking operations by way of the Dispatcher.
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.

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.
BeginInvoke(Action) Executes the specified delegate asynchronously.
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.
Invoke(Action)
ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.
See Also