ToolTipService.GetIsEnabled(DependencyObject) Metoda

Definicja

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

public:
 static bool GetIsEnabled(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetIsEnabled (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetIsEnabled : System.Windows.DependencyObject -> bool
Public Shared Function GetIsEnabled (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 IsEnabled .

Atrybuty

Przykłady

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

myBool = ToolTipService.GetIsEnabled(
 (DependencyObject)FindName("ellipse2"));
myBool = ToolTipService.GetIsEnabled(CType(FindName("ellipse2"), DependencyObject))

Dotyczy

Zobacz też