ClassCommandBarRowElement
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
CommandBarRowElement()
Declaration
public CommandBarRowElement()
Properties
Orientation
Gets or sets the orientation of the element - colud be horizontal or vertical.
Declaration
[Browsable(false)]
public override Orientation Orientation { get; set; }
Property Value
Overrides
Owner
Gets or sets the RadCommandBarElement that owns this row.
Declaration
[Browsable(false)]
public virtual RadCommandBarElement Owner { get; set; }
Property Value
Strips
Gets the CommandBarStripElement elements contained in this row.
Declaration
public CommandBarStripElementCollection Strips { get; }
Property Value
Text
Gets or sets the text displayed by this item.
Declaration
public override string Text { get; set; }
Property Value
The text content of the item. The default value is an empty string.
Overrides
Remarks
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
ArrangeOverride(SizeF)
Arranges the content and child elements within the final allocated space, positioning text, images, and child elements.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
MeasureOverride(SizeF)
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
MoveCommandStripInOtherLine(CommandBarStripElement)
Moves specified CommandBarStripElement in coresponding row if its property points to a location in other row.
Declaration
protected void MoveCommandStripInOtherLine(CommandBarStripElement currentElement)
Parameters
currentElement
The CommandBarStripElement to move.
OnBeginDragging(object, CancelEventArgs)
Raises the event
Declaration
protected virtual void OnBeginDragging(object sender, CancelEventArgs args)
Parameters
sender
The element that is responsible for firing the event.
args
A CancelEventArgs that contains the event data.
OnBubbleEvent(RadElement, RoutedEventArgs)
Called when the bubble phase of a routed event occurs.
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
sender
The element that originally raised the event.
args
The routed event arguments.
Overrides
OnDragging(object, MouseEventArgs)
Raises the event
Declaration
protected virtual void OnDragging(object sender, MouseEventArgs args)
Parameters
sender
The element that is responsible for firing the event.
args
A MouseEventArgs that contains the event data.
OnEndDragging(object, EventArgs)
Raises the event
OnOrientationChanged(EventArgs)
Raises the event
OnOrientationChanging(CancelEventArgs)
Raises the event.
Declaration
protected virtual bool OnOrientationChanging(CancelEventArgs e)
Parameters
e
A CancelEventArgs that contains the event data.
Returns
True if the change of orientation should be canceled, false otherwise.
SetOrientationCore(Orientation)
Applies the new orientation to the element and its children.
Declaration
protected void SetOrientationCore(Orientation newOrientation)
Parameters
newOrientation
The orientation to apply.
ShouldSerializeProperty(PropertyDescriptor)
Determines whether the property defined by the provided property descriptor should be serialized.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
property
Returns
bool?
Overrides
Events
BeginDragging
Occurs before dragging is started.
Declaration
public event CancelEventHandler BeginDragging
Event Value
Dragging
Occurs when item is being dragged.
EndDragging
Occurs when item is released and dragging is stopped.
OrientationChanged
Occurs when Orientation property is changed.
OrientationChanging
Occurs before Orientation property is changed.
Declaration
public event CancelEventHandler OrientationChanging
Event Value