Stylus.GetIsTapFeedbackEnabled(DependencyObject) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取指定元素上的附加属性的值 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。 它在所有其他控件上启用。