ToolTipService.GetHasDropShadow(DependencyObject) Método

Definição

Obtém o valor da HasDropShadow propriedade associada para um objeto.

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

Parâmetros

element
DependencyObject

O objeto a partir do qual o valor da propriedade é lido.

Devoluções

O valor da HasDropShadow propriedade do objeto.

Atributos

Exemplos

O exemplo seguinte mostra como obter o valor do ToolTipService.HasDropShadow imóvel anexado. O FindName método encontra o objeto chamado ellipse2, que é um Ellipse.

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

Aplica-se a

Ver também