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
Werk met ons samen op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en bekijken. Raadpleeg onze gids voor inzenders voor meer informatie.