ToolTipService.GetHasDropShadow(DependencyObject) Metoda

Definicja

Pobiera wartość dołączonej HasDropShadow właściwości dla obiektu.

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

Parametry

element
DependencyObject

Obiekt, z którego jest odczytywana wartość właściwości.

Zwraca

Boolean

Wartość właściwości obiektu HasDropShadow .

Atrybuty

Przykłady

W poniższym przykładzie pokazano, jak uzyskać wartość dołączonej ToolTipService.HasDropShadow właściwości. Metoda FindName znajduje obiekt o nazwie ellipse2, który jest .Ellipse

bool myBool = ToolTipService.GetHasDropShadow(
             (DependencyObject)FindName("ellipse2"));
Dim myBool As Boolean = ToolTipService.GetHasDropShadow(CType(FindName("ellipse2"), DependencyObject))

Dotyczy

Zobacz też