ToolTipService.GetHasDropShadow(DependencyObject) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene il valore della HasDropShadow proprietà associata per un oggetto .
public:
static bool GetHasDropShadow(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetHasDropShadow(System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetHasDropShadow : System.Windows.DependencyObject -> bool
Public Shared Function GetHasDropShadow (element As DependencyObject) As Boolean
Parametri
- element
- DependencyObject
Oggetto da cui viene letto il valore della proprietà.
Valori restituiti
Valore della proprietà dell'oggetto HasDropShadow .
- Attributi
Esempio
Nell'esempio seguente viene illustrato come ottenere il valore per la ToolTipService.HasDropShadow proprietà associata. Il FindName metodo trova l'oggetto denominato ellipse2, che è un oggetto Ellipse.
bool myBool = ToolTipService.GetHasDropShadow(
(DependencyObject)FindName("ellipse2"));
Dim myBool As Boolean = ToolTipService.GetHasDropShadow(CType(FindName("ellipse2"), DependencyObject))