Popup.HasDropShadow 属性
定义
public:
property bool HasDropShadow { bool get(); };
public bool HasDropShadow { get; }
member this.HasDropShadow : bool
Public ReadOnly Property HasDropShadow As Boolean
属性值
如果以投影效果显示 Popup,则为 true
;否则为 false
。true
if the Popup is displayed with a drop shadow; otherwise, false
.
示例
下面的示例演示如何获取HasDropShadow属性的值。The following example shows how to get the value of the HasDropShadow property.
bool hasDropShadow = myPopup.HasDropShadow;
Dim hasDropShadow As Boolean = myPopup.HasDropShadow
注解
当SystemParameters.DropShadow属性true
和属性设置为时, 将显示投影效果。 Popup.AllowsTransparencyA drop shadow effect displays when the SystemParameters.DropShadow property and the Popup.AllowsTransparency property are set to true
.
依赖项属性信息Dependency Property Information
标识符字段Identifier field | HasDropShadowProperty |
元数据属性设置为true Metadata properties set to true |
NoneNone |