แก้ไข

แชร์ผ่าน


ToolBar.SeparatorStyleKey Property

Definition

Gets the Style applied to separators on a ToolBar.

public:
 static property System::Windows::ResourceKey ^ SeparatorStyleKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey SeparatorStyleKey { get; }
static member SeparatorStyleKey : System.Windows.ResourceKey
Public Shared ReadOnly Property SeparatorStyleKey As ResourceKey

Property Value

A resource key that represents the default style for separators on the toolbar.

Examples

The following example uses this property to apply a Style to Separator controls on a ToolBar.

<Style x:Key="{x:Static ToolBar.SeparatorStyleKey}" TargetType="Separator">
  <Setter Property="Background" Value="DarkBlue"/>
  <Setter Property="Width" Value="2"/>
</Style>

Remarks

Use this property to change the default style of Separator controls on the ToolBar.

XAML Attribute Usage

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

Applies to