Skip to main content

TokenEditorBehavior Members

Provides access to token settings and allows you to control the token editing process.

Constructors

Name Description
TokenEditorBehavior() Initializes a new instance of the TokenEditorBehavior class with default settings.

Fields

Name Description
ActiveTokenProperty static Identifies the TokenEditorBehavior.ActiveToken dependency property.
NewTokenEditSettingsProperty static Identifies the TokenEditorBehavior.NewTokenEditSettings dependency property.
TokenEditSettingsProperty static Identifies the TokenEditorBehavior.TokenEditSettings dependency property.

Properties

Name Description
ActiveToken Returns the currently active token. 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.
NewTokenEditSettings Gets or sets an object that contains the new token’s settings. This is a dependency property.
TokenEditor Gets the token editor associated with the behavior.
TokenEditSettings Gets or sets an object that contains the token’s settings. This is a dependency property.

Methods

Name Description
ActivateToken(Int32) Activates a token with the specified index.
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.
CancelActiveToken() Closes the token that is currently being edited, discarding all changes.
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.
PostActiveToken() Closes the token that is currently being edited, saving changes.
ProcessTokenActivated(TokenStateChangedEventArgs) Raises the TokenEditorBehavior.TokenActivated event.
ProcessTokenActivating(TokenActivatingEventArgs) Raises the TokenEditorBehavior.TokenActivating event.
ProcessTokenDeactivated(TokenStateChangedEventArgs) Raises the TokenEditorBehavior.TokenDeactivated event.
ProcessTokensChanged(TokensChangedEventArgs) Raises the TokenEditorBehavior.TokensChanged event.
ProcessTokensChanging(TokensChangingEventArgs) Raises the TokenEditorBehavior.TokensChanged event.
ProcessTokenTextChanging(TokenTextChangingEventArgs) Raises the TokenEditorBehavior.TokenTextChanging event.
ShouldSerializeStoredWeakReference(DependencyObject) static Specifies whether a dependency object should be serialized. Inherited from Animatable.

Events

Name Description
TokenActivated Occurs when a token is activated.
TokenActivating Occurs when a token is about to receive input focus.
TokenDeactivated Occurs when a token is deactivated.
TokensChanged Occurs when a token is added to or removed from the token editor’s edit field.
TokensChanging Occurs when a token is about to be added to or removed from the edit field.
TokenTextChanging Occurs when the token text is about to change.
See Also