FindNextElementOptions Class

Definition

Provides options to help identify the next element that can programmatically receive navigation focus.

Equivalent WinUI class: Microsoft.UI.Xaml.Input.FindNextElementOptions.

public ref class FindNextElementOptions sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class FindNextElementOptions final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class FindNextElementOptions
Public NotInheritable Class FindNextElementOptions
Inheritance
FindNextElementOptions
Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

FocusNavigationDirection.Previous and FocusNavigationDirection.Next cannot be used with FindNextElementOptions. Only FocusNavigationDirection.Up, FocusNavigationDirection.Down, FocusNavigationDirection.Left, or FocusNavigationDirection.Right are valid.

Constructors

FindNextElementOptions()

Initializes a new instance of the FindNextElementOptions class.

Properties

ExclusionRect

Gets or sets a bounding rectangle where all overlapping navigation candidates are excluded from navigation focus.

Equivalent WinUI property: Microsoft.UI.Xaml.Input.FindNextElementOptions.ExclusionRect.

HintRect

Gets or sets a bounding rectangle used to identify the focus candidates most likely to receive navigation focus.

Equivalent WinUI property: Microsoft.UI.Xaml.Input.FindNextElementOptions.HintRect.

SearchRoot

Gets or sets the object that must be the root from which to identify the next focus candidate to receive navigation focus.

Equivalent WinUI property: Microsoft.UI.Xaml.Input.FindNextElementOptions.SearchRoot.

XYFocusNavigationStrategyOverride

Gets or sets the focus navigation strategy used to identify the best candidate element to receive focus.

Equivalent WinUI property: Microsoft.UI.Xaml.Input.FindNextElementOptions.XYFocusNavigationStrategyOverride.

Applies to

See also