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

要设置的值。

适用于