UIElement3D.IsFocused UIElement3D.IsFocused UIElement3D.IsFocused UIElement3D.IsFocused Property

Definition

Gets a value that determines whether this element has logical focus.

public:
 property bool IsFocused { bool get(); };
public bool IsFocused { get; }
member this.IsFocused : bool
Public ReadOnly Property IsFocused As Boolean

Property Value

true if this element has logical focus; otherwise, false.

Remarks

Logical focus might differ from keyboard focus if an application has multiple focus divisions, such as between menu contents and the remainder of the application. In this scenario, keyboard focus can only be on one element of the application UI, however, certain elements in other focus divisions might still retain logical focus. For more information on logical focus, see Focus Overview.

You do not set focus by setting this property (it is read-only). The typical use for this property is to use it as a dependency property for a Setter or EventTrigger. To set focus programmatically, call Focus. Focus can also be set by user action or by control implementations, which possibly include mouse capture behavior.

IsFocused is introduced in the .NET Framework version 3.5. For more information, see Versions and Dependencies.

Dependency Property Information

Identifier field IsFocusedProperty
Metadata properties set to true None

Applies to

See also