Stylus.GetIsTapFeedbackEnabled Method (DependencyObject)

 

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

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

[AttachedPropertyBrowsableForTypeAttribute(typeof(DependencyObject))]
public static bool GetIsTapFeedbackEnabled(
	DependencyObject element
)

Parameters

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
Show: