Stylus.SetIsTouchFeedbackEnabled(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 IsTouchFeedbackEnabled attached property on the specified element.
public:
static void SetIsTouchFeedbackEnabled(System::Windows::DependencyObject ^ element, bool enabled);
public static void SetIsTouchFeedbackEnabled (System.Windows.DependencyObject element, bool enabled);
static member SetIsTouchFeedbackEnabled : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetIsTouchFeedbackEnabled (element As DependencyObject, enabled As Boolean)
Parameters
- element
- DependencyObject
The UIElement or ContentElement on which to enable tap feedback.
- enabled
- Boolean
true
to enable touch input feedback; false
to disable touch input feedback.
Examples
The following example enables touch feedback on an InkCanvas.
Stylus.SetIsTouchFeedbackEnabled(inkCanvas1, true);
Stylus.SetIsTouchFeedbackEnabled(inkCanvas1, True)
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.