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
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.