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

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

属性

适用于