MenuItem.SeparatorStyleKey Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the resource key for a style applied to a MenuItem when the MenuItem is a Separator.

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

Public Shared ReadOnly Property SeparatorStyleKey As ResourceKey

Property Value

Type: System.Windows.ResourceKey

The resource key for a style applied to a MenuItem when the MenuItem is a Separator.

Use this property to change the style of a Separator in a menu.

<object property={ MenuItem.SeparatorStyleKey}"/>

The following example shows how to use this property to style a Separator in a Menu.

.NET Framework
Available since 3.0

MenuItem Class
System.Windows.Controls Namespace
Style a Separator Used as a Menu Item

Return to top
Show: