Stylus.GetIsTapFeedbackEnabled(DependencyObject) Stylus.GetIsTapFeedbackEnabled(DependencyObject) Stylus.GetIsTapFeedbackEnabled(DependencyObject) Stylus.GetIsTapFeedbackEnabled(DependencyObject) Method

Definition

Gets the value of the IsTapFeedbackEnabled attached property on the specified element.

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

Parameters

element
DependencyObject DependencyObject DependencyObject DependencyObject

A UIElement or ContentElement on which to determine whether tap feedback enabled.

Returns

true if the specified element has tap feedback enabled; otherwise, false.

Examples

The following example demonstrates how to determine whether tap feedback is enabled on a Canvas.

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

Remarks

In Windows Vista, a short animation occurs when the user taps the control. By default, tap feedback is disabled on the InkCanvas. It is enabled on all other controls.

Applies to