语言

Stylus.GetIsTapFeedbackEnabled(DependencyObject) 方法

定义

获取指定元素上的附加属性的值 IsTapFeedbackEnabled 。

public:
 static bool GetIsTapFeedbackEnabled(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetIsTapFeedbackEnabled(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetIsTapFeedbackEnabled : System.Windows.DependencyObject -> bool
Public Shared Function GetIsTapFeedbackEnabled (element As DependencyObject) As Boolean

参数

element
DependencyObject

确定是否启用了点击反馈的 A UIElement 或 ContentElement 依据。

返回

true 如果指定的元素已启用点击反馈,则为 ;否则,为 false.

特性

示例

以下示例演示如何确定点击反馈是否已启用。Canvas

bool tapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(canvas1);
Dim tapFeedbackEnabled As Boolean = Stylus.GetIsTapFeedbackEnabled(canvas1)

注解

在Windows Vista中,当用户点击控件时,将发生简短动画。 默认情况下,点击反馈处于禁用状态 InkCanvas。 它在所有其他控件上启用。

适用于