ToolTipService.SetShowOnDisabled(DependencyObject, Boolean) 方法

定義

設定物件的 ShowOnDisabled 附加屬性值。

public:
 static void SetShowOnDisabled(System::Windows::DependencyObject ^ element, bool value);
public static void SetShowOnDisabled (System.Windows.DependencyObject element, bool value);
static member SetShowOnDisabled : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetShowOnDisabled (element As DependencyObject, value As Boolean)

參數

element
DependencyObject

要寫入附加屬性的物件。

value
Boolean

要設定的值。

範例

下列範例示範如何設定附加屬性的值 ToolTipService.ShowOnDisabled

ToolTipService.SetShowOnDisabled(ellipse2, true);
ToolTipService.SetShowOnDisabled(ellipse2, True)

適用於

另請參閱