Stylus.SetIsTapFeedbackEnabled Method (DependencyObject, Boolean)

 

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

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

public static void SetIsTapFeedbackEnabled(
	DependencyObject element,
	bool enabled
)

Parameters

element
Type: System.Windows.DependencyObject

The UIElement or ContentElement on which to enable tap feedback.

enabled
Type: System.Boolean

true to enable tap feedback; false to disable tap feedback.

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 disables tap feedback on a Canvas.

Stylus.SetIsTapFeedbackEnabled(canvas1, false);

.NET Framework
Available since 3.0
Return to top
Show: