Stylus.GetIsTapFeedbackEnabled(DependencyObject) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient la valeur de la IsTapFeedbackEnabled propriété jointe sur l’élément spécifié.
public:
static bool GetIsTapFeedbackEnabled(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetIsTapFeedbackEnabled(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetIsTapFeedbackEnabled : System.Windows.DependencyObject -> bool
Public Shared Function GetIsTapFeedbackEnabled (element As DependencyObject) As Boolean
Paramètres
- element
- DependencyObject
A UIElement ou ContentElement sur lequel déterminer si le retour d’appui est activé.
Retours
true si l’élément spécifié a activé le retour d’appui ; sinon, false.
- Attributs
Exemples
L’exemple suivant montre comment déterminer si le retour d’appui est activé sur un Canvas.
bool tapFeedbackEnabled = Stylus.GetIsTapFeedbackEnabled(canvas1);
Dim tapFeedbackEnabled As Boolean = Stylus.GetIsTapFeedbackEnabled(canvas1)
Remarques
Dans Windows Vista, une courte animation se produit lorsque l’utilisateur appuie sur le contrôle. Par défaut, les commentaires d’appui sont désactivés sur le InkCanvas. Elle est activée sur tous les autres contrôles.