ToolTipService.GetShowOnDisabled(DependencyObject) メソッド

定義

オブジェクトに対する ShowOnDisabled 添付プロパティの値を取得します。

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

パラメーター

element
DependencyObject

プロパティ値の読み取り元となるオブジェクト。

戻り値

Boolean

オブジェクトの ShowOnDisabled プロパティ値。

属性

次の例は、添付プロパティの値を取得する方法を ToolTipService.ShowOnDisabledProperty 示しています。 メソッドは FindName 、呼び出された ellipse2オブジェクトを検索します。これは Ellipse.

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

適用対象

こちらもご覧ください