Popup.HasDropShadow 属性

定义

获取一个值,该值指示是否以投影效果显示 PopupGets a value that indicates whether a Popup is displayed with a drop shadow effect.

public:
 property bool HasDropShadow { bool get(); };
public bool HasDropShadow { get; }
member this.HasDropShadow : bool
Public ReadOnly Property HasDropShadow As Boolean

属性值

如果以投影效果显示 Popup,则为 true;否则为 falsetrue 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
元数据属性设置为trueMetadata properties set to true NoneNone

适用于