Stylus.IsPressAndHoldEnabled Stylus.IsPressAndHoldEnabled Stylus.IsPressAndHoldEnabled Attached Property

定義

取得或設定值,指出是否啟用「按住不放」功能。Gets or sets a values indicating whether press and hold is enabled.

see GetIsPressAndHoldEnabled, and SetIsPressAndHoldEnabled
see GetIsPressAndHoldEnabled, and SetIsPressAndHoldEnabled
see GetIsPressAndHoldEnabled, and SetIsPressAndHoldEnabled

範例

下列範例示範如何在上Slider啟用按住按住。The following example demonstrates how to enable press and hold on a Slider.

<Slider Name="horizontalSlider1" Stylus.IsPressAndHoldEnabled="True" />

備註

按住對應以滑鼠右鍵按一下滑鼠。Press and hold maps to a right-click on a mouse. Windows VistaWindows Vista中, 如果您預見到使用者可能會按住 tablet 畫筆而不想模擬按滑鼠右鍵的情況, 您可以在專案上停用此行為。In Windows VistaWindows Vista you can disable this behavior on elements if you foresee a situation where the user might hold the tablet pen down without intending to simulate a right-click.

相依性屬性資訊Dependency Property Information

識別碼欄位Identifier field IsPressAndHoldEnabledProperty
中繼資料屬性設定為trueMetadata properties set to true None

適用於