共用方式為


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

要設定的布林值,如果 ContextMenu 有下拉式陰影則為 true,否則為 false

適用於