Stylus.GetIsTouchFeedbackEnabled(DependencyObject) 方法

定义

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

public:
 static bool GetIsTouchFeedbackEnabled(System::Windows::DependencyObject ^ element);
public static bool GetIsTouchFeedbackEnabled (System.Windows.DependencyObject element);
static member GetIsTouchFeedbackEnabled : System.Windows.DependencyObject -> bool
Public Shared Function GetIsTouchFeedbackEnabled (element As DependencyObject) As Boolean

参数

element
DependencyObject

要在其上确定是否启用了触控输入反馈的 UIElementContentElement

返回

如果启用了触控输入反馈,否则 true;否则为 false

示例

以下示例演示如何确定是否在 上 InkCanvas启用点击反馈。

bool touchFeedbackEnabled = Stylus.GetIsTouchFeedbackEnabled(inkCanvas1);
Dim touchFeedbackEnabled As Boolean = _
    Stylus.GetIsTouchFeedbackEnabled(inkCanvas1)

适用于