Class RadCommandBarElement
Represents the main element of the Rad
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadCommandBarElement : RadCommandBarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadCommandBarElement()
Declaration
public RadCommandBarElement()
Fields
layoutPanel
lines
Declaration
protected RadCommandBarLinesElementCollection lines
Field Value
Properties
DragSize
Gets or sets the size in pixels when current strip is being Drag and Drop in next or previous row
Declaration
public Size DragSize { get; set; }
Property Value
System.
|
Orientation
Gets or sets the orientation of the Rad
Declaration
public override Orientation Orientation { get; set; }
Property Value
System.
|
Overrides
Rows
Gets the rows of the Rad
Declaration
[RadEditItemsAction]
[RadNewItem("", false, true, true)]
public RadCommandBarLinesElementCollection Rows { get; }
Property Value
StripInfoHolder
Gets the Command
Declaration
public CommandBarStripInfoHolder StripInfoHolder { get; set; }
Property Value
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateFloatingStrip(CommandBarStripElement, CommandBarRowElement, Point)
Creates a floating form of a specified .
Declaration
public void CreateFloatingStrip(CommandBarStripElement stripElement, CommandBarRowElement currentRow, Point initialLocation)
Parameters
Command The strip element of which the floating form should be created. |
Command The |
System. The initial location of the floating form. |
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
ItemsChanged(RadCommandBarLinesElementCollection, CommandBarRowElement, ItemsChangeOperation)
Declaration
protected virtual void ItemsChanged(RadCommandBarLinesElementCollection changed, CommandBarRowElement target, ItemsChangeOperation operation)
Parameters
Rad
|
Command
|
Items
|
LoadLayout(Stream)
Loads the visual state of the Rad
Declaration
public void LoadLayout(Stream source)
Parameters
System. The source stream. |
LoadLayout(String)
Loads the visual state of the Rad
Declaration
public void LoadLayout(string filename)
Parameters
System. The name of the file containing the visual state data. |
LoadLayout(XmlReader)
Loads the visual state of the Rad
Declaration
public void LoadLayout(XmlReader xmlReader)
Parameters
System. The XmlReader to read the visual state data. |
LoadLayoutCore(XmlDocument)
Restores the visual state of the Rad
Declaration
protected virtual void LoadLayoutCore(XmlDocument doc)
Parameters
System. The document containing the visual state data. |
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
MoveToDownerLine(CommandBarStripElement, CommandBarRowElement)
Moves a specific Command
Declaration
public void MoveToDownerLine(CommandBarStripElement element, CommandBarRowElement currentHolder)
Parameters
Command The element to move. |
Command The Command |
MoveToUpperLine(CommandBarStripElement, CommandBarRowElement)
Moves a specific Command
Declaration
public void MoveToUpperLine(CommandBarStripElement element, CommandBarRowElement currentHolder)
Parameters
Command The element to move. |
Command The Command |
OnBeginDragging(Object, CancelEventArgs)
Raises the Rad
Declaration
protected virtual void OnBeginDragging(object sender, CancelEventArgs args)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnBubbleEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnBubbleEvent(RadElement sender, RoutedEventArgs args)
Parameters
Rad
|
Routed
|
Overrides
OnDragging(Object, MouseEventArgs)
Raises the Rad
Declaration
protected virtual void OnDragging(object sender, MouseEventArgs args)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnEndDragging(Object, EventArgs)
Raises the Rad
Declaration
protected virtual void OnEndDragging(object sender, EventArgs args)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnFloatingStripCreated(Object)
Raises the Rad
Declaration
protected virtual void OnFloatingStripCreated(object sender)
Parameters
System. The element that is responsible for firing the event - usually this is the strip that is made floating. |
OnFloatingStripCreating(Object)
Raises the Rad
Declaration
protected virtual bool OnFloatingStripCreating(object sender)
Parameters
System. The element that is responsible for firing the event - usually this is the strip that is going to be floating. |
Returns
System. True if the creating of a floating form should be canceled, False otherwise. |
OnFloatingStripDocked(Object)
Raises the Rad
Declaration
protected virtual void OnFloatingStripDocked(object sender)
Parameters
System. The element that is responsible for firing the event - usually this is the strip that was docked. |
OnFloatingStripDocking(Object)
Raises the Rad
Declaration
protected virtual bool OnFloatingStripDocking(object sender)
Parameters
System. The element that is responsible for firing the event - usually this is the strip that is going to be docked. |
Returns
System. True if the docking of a floating form should be canceled, False otherwise. |
OnOrientationChanged(EventArgs)
Raises the Rad
Declaration
protected virtual void OnOrientationChanged(EventArgs e)
Parameters
System. A System. |
OnOrientationChanging(CancelEventArgs)
Raises the Rad
Declaration
protected virtual bool OnOrientationChanging(CancelEventArgs e)
Parameters
System. A System. |
Returns
System. True if the change of orientation should be canceled, false otherwise. |
OnTunnelEvent(RadElement, RoutedEventArgs)
Declaration
protected override void OnTunnelEvent(RadElement sender, RoutedEventArgs args)
Parameters
Rad
|
Routed
|
Overrides
SaveLayout(Stream)
Saves the visual state of the Rad
Declaration
public void SaveLayout(Stream destination)
Parameters
System. The destination stream. |
SaveLayout(String)
Saves the visual state of the Rad
Declaration
public void SaveLayout(string filename)
Parameters
System. The name of the destination file. |
SaveLayout(XmlWriter)
Saves the visual state of the Rad
Declaration
public void SaveLayout(XmlWriter writer)
Parameters
System. The XmlWriter to save the visual state data. |
SaveLayoutCore()
Creates an XmlDocument containing the current visual state data of the Rad
Declaration
protected virtual XmlDocument SaveLayoutCore()
Returns
System. The created document. |
SetOrientationCore(Orientation)
Declaration
protected void SetOrientationCore(Orientation newOrientation)
Parameters
System.
|
UnwireEvents()
Declaration
protected virtual void UnwireEvents()
WireEvents()
Declaration
protected virtual void WireEvents()
Events
BeginDragging
Occurs before dragging is started.
Declaration
public event CancelEventHandler BeginDragging
Event Type
System.
|
Dragging
Occurs when item is being dragged.
Declaration
public event MouseEventHandler Dragging
Event Type
System.
|
EndDragging
Occurs when item is released and dragging is stopped.
Declaration
public event EventHandler EndDragging
Event Type
System.
|
FloatingStripCreated
Occurs when a floating strip is created.
Declaration
public event EventHandler FloatingStripCreated
Event Type
System.
|
FloatingStripCreating
Occurs before a floating form is created.
Declaration
public event CancelEventHandler FloatingStripCreating
Event Type
System.
|
FloatingStripDocked
Occurs when a floating strip is docked.
Declaration
public event EventHandler FloatingStripDocked
Event Type
System.
|
FloatingStripDocking
Occurs before a floating strip is docked.
Declaration
public event CancelEventHandler FloatingStripDocking
Event Type
System.
|
OrientationChanged
Occurs when Orientation property is changed.
Declaration
public event EventHandler OrientationChanged
Event Type
System.
|
OrientationChanging
Occurs before Orientation property is changed.
Declaration
public event CancelEventHandler OrientationChanging
Event Type
System.
|