This documentation is archived and is not being maintained.

ContextMenuService.HasDropShadow Attached Property

Gets or sets a value that indicates whether the ContextMenu has the drop shadow effect enabled.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

See ContextMenuService.GetHasDropShadow, ContextMenuService.SetHasDropShadow
See ContextMenuService.GetHasDropShadow, ContextMenuService.SetHasDropShadow
See ContextMenuService.GetHasDropShadow, ContextMenuService.SetHasDropShadow
<object ContextMenuService.HasDropShadow="bool" .../>

Property Value

A Boolean value, true if the ContextMenu has the drop shadow effect enable; false otherwise.

Identifier Field

HasDropShadowProperty, registered as Attached

Metadata Flags

None

The default value of the HasDropShadow property is false; however the ContextMenu style changes the property to true.

The following example shows how to use the HasDropShadow property. The ContextMenu style sets this property to true, so this example sets the property to false to display the difference.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Show: