Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ContextMenu.HasDropShadow Property

 

Gets or sets a value that indicates whether the context menu appears with a dropped shadow.

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

public bool HasDropShadow { get; set; }

Property Value

Type: System.Boolean

true if the context menu appears with a dropped shadow; otherwise, false. The default is false.

When the ContextMenu opens, the value is set to the value of SystemParameters.DropShadow. Setting this property to true has no effect if the SystemParameters.DropShadow property is false.

Identifier field

HasDropShadowProperty

Metadata properties set to true

None

The following example shows how to use the HasDropShadow property.

<ContextMenu HorizontalOffset="50" VerticalOffset="50" HasDropShadow="false">

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