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
public CommandBarRowElement()
Properties
Gets or sets the orientation of the element - colud be horizontal or vertical.
[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; }
Gets or sets the text displayed by this item.
public override string Text { get; set; }
The text content of the item. The default value is an empty string.
Overrides:
This property supports data binding and localization. The text can contain HTML markup when the HTML support is enabled for the containing control. Changes to this property will trigger layout updates and repainting of the item.
Methods
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
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.
Called when the bubble phase of a routed event occurs.
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
The element that originally raised the event.
argsRoutedEventArgsThe routed event arguments.
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.
Determines whether the property defined by the provided property descriptor should be serialized.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
bool?
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