ContextMenuService.SetHasDropShadow(DependencyObject, Boolean) 方法

定义

设置指示 ContextMenu 是否有投影的值。

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

参数

element
DependencyObject

要对其设置属性的对象。

value
Boolean

要设置的布尔值,true 如果 ContextMenu 有投影;否则为 false

适用于