HasDropShadow Property

Popup.HasDropShadow Property

 

Gets a value that indicates whether a Popup is displayed with a drop shadow effect.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool HasDropShadow { get; }

Property Value

Type: System.Boolean

true if the Popup is displayed with a drop shadow; otherwise, false.

A drop shadow effect displays when the SystemParameters.DropShadow property and the Popup.AllowsTransparency property are set to true.

Identifier field

HasDropShadowProperty

Metadata properties set to true

None

The following example shows how to get the value of the HasDropShadow property.

bool hasDropShadow = myPopup.HasDropShadow;

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft