語言

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

設定價值。

適用於