Stylus.SetIsTapFeedbackEnabled(DependencyObject, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the value of the IsTapFeedbackEnabled attached property on the specified element.
public:
static void SetIsTapFeedbackEnabled(System::Windows::DependencyObject ^ element, bool enabled);
public static void SetIsTapFeedbackEnabled (System.Windows.DependencyObject element, bool enabled);
static member SetIsTapFeedbackEnabled : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetIsTapFeedbackEnabled (element As DependencyObject, enabled As Boolean)
Parameters
- element
- DependencyObject
The UIElement or ContentElement on which to enable tap feedback.
- enabled
- Boolean
true
to enable tap feedback; false
to disable tap feedback.
Examples
The following example disables tap feedback on a Canvas.
Stylus.SetIsTapFeedbackEnabled(canvas1, false);
Stylus.SetIsTapFeedbackEnabled(canvas1, False)
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.