Edit

Share via


AutoFocusBehavior Class

Definition

This behavior automatically sets the focus on the associated Windows.UI.Xaml.Controls.Control when it is loaded.

public sealed class AutoFocusBehavior : Microsoft.Toolkit.Uwp.UI.Behaviors.BehaviorBase<Windows.UI.Xaml.Controls.Control>
type AutoFocusBehavior = class
    inherit BehaviorBase<Control>
Public NotInheritable Class AutoFocusBehavior
Inherits BehaviorBase(Of Control)
Inheritance
Microsoft.Xaml.Interactivity.Behavior<T>
BehaviorBase<Windows.UI.Xaml.Controls.Control>
AutoFocusBehavior

Constructors

AutoFocusBehavior()

Properties

IsAttached

Gets a value indicating whether this behavior is attached.

(Inherited from BehaviorBase<T>)

Methods

Initialize()

Initializes the behavior to the associated object.

(Inherited from BehaviorBase<T>)
OnAssociatedObjectLoaded()

Called when the associated object has been loaded.

(Inherited from BehaviorBase<T>)
OnAssociatedObjectUnloaded()

Called when the associated object has been unloaded.

(Inherited from BehaviorBase<T>)
OnAttached()

Called after the behavior is attached to the Microsoft.Xaml.Interactivity.Behavior.AssociatedObject.

(Inherited from BehaviorBase<T>)
OnDetaching()

Called when the behavior is being detached from its Microsoft.Xaml.Interactivity.Behavior.AssociatedObject.

(Inherited from BehaviorBase<T>)
Uninitialize()

Uninitializes the behavior from the associated object.

(Inherited from BehaviorBase<T>)

Applies to