ContextMenuService.SetHasDropShadow(DependencyObject, Boolean) 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.
Définit une valeur qui indique si l’objet ContextMenu a une ombre déroulante.
public:
static void SetHasDropShadow(System::Windows::DependencyObject ^ element, bool value);
public static void SetHasDropShadow(System.Windows.DependencyObject element, bool value);
static member SetHasDropShadow : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetHasDropShadow (element As DependencyObject, value As Boolean)
Paramètres
- element
- DependencyObject
Objet sur lequel définir la propriété.
- value
- Boolean
Valeur booléenne à définir, true si l’ombre ContextMenu portée est présente ; false sinon.