Class CommandBarStripElement
Represent a single strip with controls inside
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class CommandBarStripElement : RadCommandBarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
CommandBarStripElement()
Declaration
public CommandBarStripElement()
Fields
cachedDesiredLocation
Declaration
protected PointF cachedDesiredLocation
Field Value
System.
|
DesiredLocationProperty
VisibleInCommandBarProperty
Properties
Delta
Gets the delta of the drag.
Declaration
public PointF Delta { get; }
Property Value
System.
|
DesiredLocation
Gets or sets the desired location of the strip element.
Declaration
public PointF DesiredLocation { get; set; }
Property Value
System.
|
EnableDragging
Gets or sets if the strip can be dragged.
Declaration
public bool EnableDragging { get; set; }
Property Value
System.
|
EnableFloating
Gets or sets if the strip can be floating.
Declaration
public bool EnableFloating { get; set; }
Property Value
System.
|
FloatingForm
Gets the form in which the items are placed where the strip is floating.
Declaration
public CommandBarFloatingForm FloatingForm { get; set; }
Property Value
Grip
Gets or sets the Rad
Declaration
public RadCommandBarGrip Grip { get; set; }
Property Value
HasOverflowedItems
Gets whether the strip has items in its overflow panel.
Declaration
public bool HasOverflowedItems { get; }
Property Value
System.
|
IsDrag
Gets or sets whether the strip is beeing dragged.
Declaration
public bool IsDrag { get; }
Property Value
System.
|
Items
Gets the items contained in the strip.
Declaration
[RadEditItemsAction]
[RadNewItem("", false, false, false)]
public RadCommandBarBaseItemCollection Items { get; }
Property Value
ItemsLayout
Gets the layout panel in which the items are arranged.
Declaration
public RadCommandBarItemsPanel ItemsLayout { get; }
Property Value
MinSize
Declaration
public override Size MinSize { get; set; }
Property Value
System.
|
Overrides
Orientation
Gets or sets the elements orientation inside the line element. Possible values are horizontal and vertical.
Declaration
[RadPropertyDefaultValue("Orientation", typeof(CommandBarRowElement))]
public override Orientation Orientation { get; set; }
Property Value
System.
|
Overrides
OverflowButton
Gets or sets the Rad
Declaration
public RadCommandBarOverflowButton OverflowButton { get; set; }
Property Value
OverflowMenuMaxSize
Gets or sets Overflow menu single strip maximum size.
Declaration
public Size OverflowMenuMaxSize { get; set; }
Property Value
System.
|
OverflowMenuMinSize
Gets or sets Overflow menu single strip minimum size.
Declaration
public Size OverflowMenuMinSize { get; set; }
Property Value
System.
|
Text
Declaration
public override string Text { get; set; }
Property Value
System.
|
Overrides
VisibleInCommandBar
Gets or sets whether the strip is visible in the command bar. This property is changed by the context menu which is opened on right click on the control.
Declaration
public bool VisibleInCommandBar { get; set; }
Property Value
System.
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
CanDragCore(Point)
Declaration
protected override bool CanDragCore(Point dragStartPoint)
Parameters
System.
|
Returns
System.
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
CreateCommandBarOverflowButton()
Declaration
protected virtual RadCommandBarOverflowButton CreateCommandBarOverflowButton()
Returns
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
ForceBeginDrag()
Declaration
protected void ForceBeginDrag()
ForceEndDrag()
Forces the drag to end.
Declaration
protected void ForceEndDrag()
GetDragHintCore()
Declaration
protected override Image GetDragHintCore()
Returns
System.
|
Overrides
GetExpectedSize(SizeF)
Measures the items with the size given and calculates the expected size of the strip
including the Rad
Declaration
public SizeF GetExpectedSize(SizeF availableSize)
Parameters
System. The size to measure the items with. |
Returns
System. The calculated size of the strip. |
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
OnBeginDragging(Object, CancelEventArgs)
Raises the Command
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 Command
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 Command
Declaration
protected virtual void OnEndDragging(object sender, EventArgs args)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnItemClicked(Object, EventArgs)
Raises the Command
Declaration
protected virtual void OnItemClicked(object sender, EventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnItemOutOfOverflow(Object, EventArgs)
Raises the Command
Declaration
protected virtual void OnItemOutOfOverflow(object sender, EventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnItemOverflowed(Object, EventArgs)
Raises the Command
Declaration
protected virtual void OnItemOverflowed(object sender, EventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnItemsChanged(RadCommandBarBaseItemCollection, RadCommandBarBaseItem, ItemsChangeOperation)
Raises the Command
Declaration
protected virtual void OnItemsChanged(RadCommandBarBaseItemCollection changed, RadCommandBarBaseItem target, ItemsChangeOperation operation)
Parameters
Rad The collection that is changed. |
Rad The targeted element of the collection. |
Items The type of the operation. |
OnItemVisibleInStripChanged(Object, EventArgs)
Raises the Command
Declaration
protected virtual void OnItemVisibleInStripChanged(object sender, EventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnItemVisibleInStripChanging(Object, CancelEventArgs)
Raises the Command
Declaration
protected virtual bool OnItemVisibleInStripChanging(object sender, CancelEventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
Returns
System. true if the event should be canceled, false otherwise. |
OnLineChanged(EventArgs)
Raises the Command
Declaration
protected virtual void OnLineChanged(EventArgs e)
Parameters
System. A System. |
OnLineChanging(CancelEventArgs)
Raises the Command
Declaration
protected virtual bool OnLineChanging(CancelEventArgs e)
Parameters
System. A System. |
Returns
System. true if the event should be canceled, false otherwise. |
OnOrientationChanged(EventArgs)
Raises the Command
Declaration
protected virtual void OnOrientationChanged(EventArgs e)
Parameters
System. A System. |
OnOrientationChanging(CancelEventArgs)
Raises the Command
Declaration
protected virtual bool OnOrientationChanging(CancelEventArgs e)
Parameters
System. A System. |
Returns
System. true if the event should be canceled, false otherwise. |
OnOverflowMenuClosed(Object, EventArgs)
Raises the Command
Declaration
protected virtual void OnOverflowMenuClosed(object sender, EventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnOverflowMenuClosing(Object, CancelEventArgs)
Raises the Command
Declaration
protected virtual void OnOverflowMenuClosing(object sender, CancelEventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnOverflowMenuOpened(Object, EventArgs)
Raises the Command
Declaration
protected virtual void OnOverflowMenuOpened(object sender, EventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnOverflowMenuOpening(Object, CancelEventArgs)
Raises the Command
Declaration
protected virtual void OnOverflowMenuOpening(object sender, CancelEventArgs e)
Parameters
System. The element that is responsible for firing the event. |
System. A System. |
OnPanGesture(PanGestureEventArgs)
Declaration
protected override void OnPanGesture(PanGestureEventArgs args)
Parameters
Pan
|
Overrides
OnVisibleInCommandBarChanged(EventArgs)
Raises the Command
Declaration
protected virtual void OnVisibleInCommandBarChanged(EventArgs e)
Parameters
System. A System. |
OnVisibleInCommandBarChanging(CancelEventArgs)
Raises the Command
Declaration
protected virtual bool OnVisibleInCommandBarChanging(CancelEventArgs e)
Parameters
System. A System. |
Returns
System. true if the event should be canceled, false otherwise. |
SetOrientationCore(Orientation)
Applies an orientation to the strip and its children.
Declaration
protected void SetOrientationCore(Orientation value)
Parameters
System. The orientation to apply. |
UnwireEvents()
Unsubscribe from the children's events.
Declaration
protected virtual void UnwireEvents()
WireEvents()
Subscribes to the children's events.
Declaration
protected virtual void WireEvents()
Events
BeginDrag
Occurs before dragging is started.
Declaration
public event CancelEventHandler BeginDrag
Event Type
System.
|
Drag
Occurs when item is being dragged.
Declaration
public event MouseEventHandler Drag
Event Type
System.
|
EndDrag
Occurs when item is released and dragging is stopped.
Declaration
public event EventHandler EndDrag
Event Type
System.
|
ItemClicked
Occurs when item is clicked.
Declaration
public event EventHandler ItemClicked
Event Type
System.
|
ItemOutOfOverflow
Occurs when item is moved out from the overflow panel.
Declaration
public event EventHandler ItemOutOfOverflow
Event Type
System.
|
ItemOverflowed
Occurs when item is moved to the overflow panel.
Declaration
public event EventHandler ItemOverflowed
Event Type
System.
|
ItemsChanged
Occurs when Items collection is changed.
Declaration
public event RadCommandBarBaseItemCollectionItemChangedDelegate ItemsChanged
Event Type
ItemVisibleInStripChanged
Occurs when item is moved in or out of the UncheckedItems collection.
Declaration
public event EventHandler ItemVisibleInStripChanged
Event Type
System.
|
ItemVisibleInStripChanging
Occurs before item is moved in or out of the UncheckedItems collection.
Declaration
public event CancelEventHandler ItemVisibleInStripChanging
Event Type
System.
|
LineChanged
Occurs when VisibleInCommandBar property is changed.
Declaration
public event EventHandler LineChanged
Event Type
System.
|
LineChanging
Occurs before VisibleInCommandBar property is changed.
Declaration
public event CancelEventHandler LineChanging
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.
|
OverflowMenuClosed
Occurs when overflow menu is opened.
Declaration
public event EventHandler OverflowMenuClosed
Event Type
System.
|
OverflowMenuClosing
Occurs before oferflow menu is opened.
Declaration
public event CancelEventHandler OverflowMenuClosing
Event Type
System.
|
OverflowMenuOpened
Occurs when overflow menu is opened.
Declaration
public event EventHandler OverflowMenuOpened
Event Type
System.
|
OverflowMenuOpening
Occurs before overflow menu is opened.
Declaration
public event CancelEventHandler OverflowMenuOpening
Event Type
System.
|
VisibleInCommandBarChanged
Occurs when VisibleInCommandBar property is changed.
Declaration
public event EventHandler VisibleInCommandBarChanged
Event Type
System.
|
VisibleInCommandBarChanging
Occurs before VisibleInCommandBar property is changed.
Declaration
public event CancelEventHandler VisibleInCommandBarChanging
Event Type
System.
|