共用方式為


ContextMenuService.GetHasDropShadow(DependencyObject) 方法

定義

取得值,指出 ContextMenu 是否有下拉式陰影。

public:
 static bool GetHasDropShadow(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static bool GetHasDropShadow (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetHasDropShadow : System.Windows.DependencyObject -> bool
Public Shared Function GetHasDropShadow (element As DependencyObject) As Boolean

參數

element
DependencyObject

要查詢是否有下拉式陰影的物件。

傳回

Boolean

布林值,如果 ContextMenu 有陰影,則為 true;否則為 false

屬性

適用於