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.

Identifier field

HasDropShadowProperty

Metadata properties set to true

None

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

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

bool hasDropShadow = myPopup.HasDropShadow;

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft