Stylus.GetIsTapFeedbackEnabled Method (DependencyObject)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public static bool GetIsTapFeedbackEnabled(
	DependencyObject element


Type: System.Windows.DependencyObject

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

Return Value

Type: System.Boolean

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

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.

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

bool tapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(canvas1);

.NET Framework
Available since 3.0
Return to top