ContextMenuService.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

要設定的值。

適用於