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 |
Inherited Members
- ControlBase.ClickEvent
- ControlBase.PreviewClickEvent
- ControlBase.ScreenTipClosingEvent
- ControlBase.ScreenTipOpeningEvent
- ControlBase.CommandProperty
- ControlBase.CommandParameterProperty
- ControlBase.CommandTargetProperty
- ControlBase.ContextProperty
- ControlBase.HasImageProperty
- ControlBase.HasLabelProperty
- ControlBase.IdProperty
- ControlBase.ImageSourceLargeProperty
- ControlBase.ImageSourceSmallProperty
- ControlBase.IsHighlightedProperty
- ControlBase.KeyTipAccessTextProperty
- ControlBase.LabelProperty
- ControlBase.ScreenTipDescriptionProperty
- ControlBase.ScreenTipFooterProperty
- ControlBase.ScreenTipHeaderProperty
- ControlBase.ScreenTipHelpUriProperty
- ControlBase.ScreenTipImageSourceProperty
- ControlBase.VariantSizeProperty
- ControlBase.CoerceCommandParameter(DependencyObject, object)
- ControlBase.MeasureOverride(Size)
- ControlBase.OnAccessKey(AccessKeyEventArgs)
- ControlBase.OnClick(ExecuteRoutedEventArgs)
- ControlBase.OnCommandChanged(ICommand, ICommand)
- ControlBase.OnContextChanged(ControlContext, ControlContext)
- ControlBase.OnKeyTipAccessed(string)
- ControlBase.OnPreviewClick(ExecuteRoutedEventArgs)
- ControlBase.OnPropertyChanged(DependencyPropertyChangedEventArgs)
- ControlBase.OnScreenTipClosing(RoutedEventArgs)
- ControlBase.OnVariantSizeChanged(VariantSize, VariantSize)
- ControlBase.RaiseClickEvent(ExecuteRoutedEventArgs)
- ControlBase.ToString()
- ControlBase.UpdateCanExecute()
- ControlBase.CanUpdateCanExecuteWhenHidden
- ControlBase.Command
- ControlBase.CommandParameter
- ControlBase.CommandTarget
- ControlBase.Context
- ControlBase.HasImage
- ControlBase.HasLabel
- ControlBase.Id
- ControlBase.ImageSourceLarge
- ControlBase.ImageSourceSmall
- ControlBase.IsHighlighted
- ControlBase.KeyTipAccessText
- ControlBase.Label
- ControlBase.ScreenTipDescription
- ControlBase.ScreenTipFooter
- ControlBase.ScreenTipHeader
- ControlBase.ScreenTipHelpUri
- ControlBase.ScreenTipImageSource
- ControlBase.VariantSize
- ControlBase.Click
- ControlBase.PreviewClick
- ControlBase.ScreenTipClosing
- ControlBase.ScreenTipOpening