Udostępnij za pośrednictwem


FindNextElementOptions Class

Definition

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

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
Object Platform::Object IInspectable 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.

HintRect

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

SearchRoot

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

XYFocusNavigationStrategyOverride

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

Applies to

See also