Class ToolBarSeparatorItem
Represents a separator item within a toolbar, used to visually separate groups of toolbar items.
public class ToolBarSeparatorItem : Border, IBaseObjectWithAttr, IBaseObjectWithId, INotifyPropertyChanged, IDisposableObject, IBaseObject, ISupportInitialize, IFocusable, ITextProperty, IComponent, IControl, IDisposable, IWin32Window, ILayoutItem, INotifyDataErrorInfo
- Inheritance
-
ToolBarSeparatorItem
- Implements
Remarks
The ToolBarSeparatorItem can be oriented either vertically or horizontally, depending on the value of the IsVertical property. The orientation affects the appearance and layout of the separator.
Constructors
- ToolBarSeparatorItem()
Initializes a new instance of the ToolBarSeparatorItem class.
Properties
- IsVertical
Gets or sets a value indicating whether the orientation is vertical.
Methods
- GetPreferredSize(PreferredSizeContext)
Retrieves the size of a rectangular area into which a control can be fitted, in device-independent units.
- OnDataContextChanged(object?, object?)
Called when the DataContext property changes.
- OnMenuItemChanged(object?, BaseEventArgs<MenuChangeKind>)
Handles changes to attached menu item's properties, such as visibility.
- VerticalChanged()
Updates the layout and appearance of the separator based on its orientation.