FlyoutBase.InputDevicePrefersPrimaryCommands 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出用來開啟飛出視窗的輸入設備是否不會輕易開啟次要命令。
public:
property bool InputDevicePrefersPrimaryCommands { bool get(); };
bool InputDevicePrefersPrimaryCommands();
public bool InputDevicePrefersPrimaryCommands { get; }
var boolean = flyoutBase.inputDevicePrefersPrimaryCommands;
Public ReadOnly Property InputDevicePrefersPrimaryCommands As Boolean
屬性值
Boolean
bool
如果用來開啟飛出視窗的輸入設備不會輕易開啟次要命令,則為 true;否則為 false。
備註
某些輸入裝置,例如觸控或注視,不會輕易地開啟次要命令功能表,這需要在開啟的飛出視窗中單擊。 在這些情況下,您可以將命令從次要命令功能表移至主要命令行,以提供更容易使用這些輸入的存取。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應