Dela via


FlyoutBase.InputDevicePrefersPrimaryCommands Property

Definition

Gets a value that indicates whether the input device used to open the flyout does not easily open the secondary commands.

public:
 property bool InputDevicePrefersPrimaryCommands { bool get(); };
bool InputDevicePrefersPrimaryCommands();
public bool InputDevicePrefersPrimaryCommands { get; }
var boolean = flyoutBase.inputDevicePrefersPrimaryCommands;
Public ReadOnly Property InputDevicePrefersPrimaryCommands As Boolean

Property Value

Boolean

bool

true if the input device used to open the flyout does not easily open the secondary commands; otherwise, false.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

Some input devices, such as touch or gaze, do not easily open the secondary commands menu, which requires a click in the open flyout. In these cases, you can move commands from the secondary command menu to the primary command bar to provide easier access using these inputs.

Applies to