Represent the overflow button at the end of each strip
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
[TypeConverter(typeof(ExpandableObjectConverter))]
public class RadCommandBarOverflowButton : RadCommandBarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadCommandBarVisualElementRadCommandBarOverflowButton...
Implements:
Inherited Members
Constructors
public RadCommandBarOverflowButton(CommandBarStripElement owner)
Fields
protected RadDropDownMenu dropDownMenuElement
public static RadProperty HasOverflowedItemsProperty
protected CommandBarStripElement owner
protected RadCommandBarOverflowPanelElement panel
Properties
Gets the "Add or Remove Items" menu item from overflow menu
public RadMenuItem AddRemoveButtonsMenuItem { get; }
Gets or sets the ArrowPrimitive element of the button.
[Browsable(false)]
public ArrowPrimitive ArrowPrimitive { get; set; }
Gets the menu item from overflow menu which opens the Customize Dialog
public RadMenuItem CustomizeButtonMenuItem { get; }
[Browsable(false)]
public CommandBarCustomizeDialogProvider DialogProvider { get; set; }
Gets the RadDropDownMenu that is shown on click.
public RadDropDownMenu DropDownMenu { get; }
Gets whether there are items in the overflow panel.
public bool HasOverflowedItems { get; }
Gets or sets the dropdown menu element theme name.
[Browsable(false)]
public string HostControlThemeName { get; set; }
Gets or sets the panel in which overflowed items are arranged.
public LayoutPanel ItemsLayout { get; }
Gets or sets the orientation of the overflow button.
public override Orientation Orientation { get; set; }
Overrides:
Gets the overflow panel which contains the overflowed items
public RadCommandBarOverflowPanelElement OverflowPanel { get; }
Methods
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Disposes of managed resources including cached images and SVG images when the element is being disposed.
protected override void DisposeManagedResources()
Overrides:
Measures the desired size of the element by calculating the space needed for content, padding, and borders.
Called when the element has been successfully loaded. That includes loading of all its children as well.
protected override void OnLoaded()
Overrides:
Called when a mouse button is pressed down over the item.
protected override void OnMouseDown(MouseEventArgs e)
The mouse event arguments.
Overrides:
Raises the event.
protected void OnOverflowMenuClosed(object sender, RadPopupClosedEventArgs args)
The element that is reponsible for firing the event.
argsRadPopupClosedEventArgsA RadPopupClosedEventArgs that contains the event data.
Raises the event.
protected virtual void OnOverflowMenuClosing(object sender, RadPopupClosingEventArgs args)
The element that is reponsible for firing the event.
argsRadPopupClosingEventArgsA RadPopupClosingEventArgs that contains the event data.
Raises the event.
protected bool OnOverflowMenuOpening(CancelEventArgs e)
A CancelEventArgs that contains the event data.
Returns:Handles property change events by invalidating the fill cache and invoking the base class property change handler.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Event arguments containing information about the property that changed.
Overrides:
Called when the tunnel phase of a routed event occurs.
protected override void OnTunnelEvent(RadElement sender, RoutedEventArgs args)
The element that originally raised the event.
argsRoutedEventArgsThe routed event arguments.
Overrides:
Notifies that the element has been successfully unloaded from an element tree. Allows inheritors to provide custom logic at this stage.
protected override void OnUnloaded(ComponentThemableElementTree oldTree)
Reference to the element tree from which the element has been unloaded.
Overrides:
public void PopulateDropDownMenu()
Events
This event fires when overflow menu is opened.
public event EventHandler OverflowMenuClosed
This event fires before oferflow menu is opened.
public event CancelEventHandler OverflowMenuClosing
This event fires when overflow menu is opened.
public event EventHandler OverflowMenuOpened
This event fires before oferflow menu is opened.
public event CancelEventHandler OverflowMenuOpening