In This Article

Separator Class

Represents a separator that appears within a Ribbon group or on a menu.

public class Separator : ControlBase, IKeyTipTarget, ILogicalParent, IVariantControl
Inheritance:
object Visual UIElement FrameworkElement Control ControlBase object
Implements:
IKeyTipTarget ILogicalParent IVariantControl

Remarks

For detailed documentation on this control's features and how to use them, please see the Separator documentation topic.

Constructors

Separator()

Initializes an instance of the Separator class.

public Separator()

Separator(string)

Initializes an instance of the Separator class.

public Separator(string label)
Parameter Type Description
label string

The text label to display on the separator.

Properties

IsFirstItem

Gets whether this control is the first item in a parent ItemsControl.

public bool IsFirstItem { get; }

Property Value

bool:

true if this control is the first item in a parent ItemsControl; otherwise, false.

IsSubsequentItem

Gets whether this control is a second or later item in a parent ItemsControl.

public bool IsSubsequentItem { get; }

Property Value

bool:

true if this control is a second or later item in a parent ItemsControl; otherwise, false.

Methods

OnCreateAutomationPeer()

Creates and returns an AutomationPeer object for this type.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The AutomationPeer that was created.

OnScreenTipOpening(RoutedEventArgs)

Invoked when an unhandled ScreenTipOpening attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

protected override void OnScreenTipOpening(RoutedEventArgs e)
Parameter Type Description
e RoutedEventArgs

A RoutedEventArgs that contains the event data.

Inherited Members