ToolTipService.GetShowOnDisabled(DependencyObject) Metoda

Definicja

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

public:
 static bool GetShowOnDisabled(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetShowOnDisabled (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetShowOnDisabled : System.Windows.DependencyObject -> bool
Public Shared Function GetShowOnDisabled (element As DependencyObject) As Boolean

Parametry

element
DependencyObject

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

Zwraca

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

Atrybuty

Przykłady

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

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

Dotyczy

Zobacz też