CommandBarRowElement
Represents a row of the RadCommandBarElement. Contains a collection of CommandBarStripElement elements.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CommandBarRowElement : RadCommandBarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadCommandBarVisualElementCommandBarRowElement...
Implements:
Inherited Members
Constructors
Creates a row with a 25-by-25 minimum size, or 20-by-20 if the row is already sited.
public CommandBarRowElement()
Properties
Gets or sets the orientation applied to this row and its contained strips.
[Browsable(false)]
public override Orientation Orientation { get; set; }
Overrides:
Gets or sets the RadCommandBarElement that owns this row.
[Browsable(false)]
public virtual RadCommandBarElement Owner { get; set; }
Gets the CommandBarStripElement elements contained in this row.
public CommandBarStripElementCollection Strips { get; }
Methods
Initializes the strip collection, subscribes to its changes, and applies the row's orientation.
protected override void CreateChildElements()
Overrides:
Measures the contained strips along the row's orientation, considering their desired positions, minimum sizes, and available space.
Moves specified CommandBarStripElement in coresponding row if its property points to a location in other row.
protected void MoveCommandStripInOtherLine(CommandBarStripElement currentElement)
The CommandBarStripElement to move.
Raises the event
protected virtual void OnBeginDragging(object sender, CancelEventArgs args)
The element that is responsible for firing the event.
argsCancelEventArgsA CancelEventArgs that contains the event data.
Routes grip-drag events from contained strips through the row's drag event hooks.
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
The child element that raised the event.
argsRoutedEventArgsThe routed event and its original event data.
Overrides:
Raises the event
protected virtual void OnDragging(object sender, MouseEventArgs args)
The element that is responsible for firing the event.
argsMouseEventArgsA MouseEventArgs that contains the event data.
Raises the event.
protected virtual bool OnOrientationChanging(CancelEventArgs e)
A CancelEventArgs that contains the event data.
Returns:True if the change of orientation should be canceled, false otherwise.
Applies the new orientation to the element and its children.
protected void SetOrientationCore(Orientation newOrientation)
The orientation to apply.
Prevents serialization of stretch settings, which are derived from the row's orientation, and delegates other properties to the base implementation.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
The property being checked for serialization.
Returns:bool?
Whether the property should be serialized, or the base implementation's decision.
Overrides:
Events
Occurs before dragging is started.
public event CancelEventHandler BeginDragging
Occurs when item is being dragged.
public event MouseEventHandler Dragging
Occurs when item is released and dragging is stopped.
public event EventHandler EndDragging
Occurs when Orientation property is changed.
public event EventHandler OrientationChanged
Occurs before Orientation property is changed.
public event CancelEventHandler OrientationChanging