Skip to main content

FocusBehavior Members

Focuses a UI control without code-behind.

Constructors

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

Fields

Name Description
DefaultFocusDelay static Identifies the FocusBehavior.DefaultFocusDelay dependency property.
EventNameProperty static Identifies the EventTriggerBase<T>.EventNameProperty dependency property. Inherited from EventTriggerBase<T>.
EventProperty static Identifies the EventTriggerBase<T>.EventProperty dependency property. Inherited from EventTriggerBase<T>.
FocusDelayProperty static Identifies the FocusBehavior.FocusDelay dependency property.
PropertyNameProperty static Identifies the FocusBehavior.PropertyName dependency property.
SourceNameProperty static Identifies the EventTriggerBase<T>.SourceNameProperty dependency property. Inherited from EventTriggerBase<T>.
SourceObjectProperty static Identifies the EventTriggerBase<T>.SourceObjectProperty dependency property. Inherited from EventTriggerBase<T>.

Properties

Name Description
Event Gets or sets a routed event that triggers the associated command. Inherited from EventTriggerBase<T>.
EventName Gets or sets the name of an event that triggers the associated command. Inherited from EventTriggerBase<T>.
FocusDelay Gets or sets the amount of time to wait before focusing the associated object. 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.
PropertyName Gets or sets the property name whose changes should lead to focusing the associated object. This is a dependency property.
Source Gets the source object. Inherited from EventTriggerBase<T>.
SourceName Gets or sets the name of the source object that raises the event. This is a dependency property. Inherited from EventTriggerBase<T>.
SourceObject Gets or sets a source object that raises the event. This is a dependency property. Inherited from EventTriggerBase<T>.

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.
See Also