Επεξεργασία

Κοινή χρήση μέσω


Stylus.SetIsTouchFeedbackEnabled(DependencyObject, Boolean) Method

Definition

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