Represents a menu item from drop down menu opened by the RadCommandBarOverflowButton. Has a coresponding item from the CommandBarStripElement Items collection and controls its VisibleInStrip property.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCommandBarOverflowMenuItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadMenuItemBaseRadCommandBarOverflowMenuItem...
Implements:
Inherited Members
Constructors
Create RadCommandBarOverflowMenuItem instance
public RadCommandBarOverflowMenuItem(RadCommandBarBaseItem representedItem, RadDropDownMenu ownerMenu)
Which item will be show in menu
ownerMenuRadDropDownMenuMenu that should be updated on representedItem visibility is changed
Properties
Gets or sets whether the item is in checked state. This property affects the VisibleInStrip property of the coresponding item in CommandBarStripElement.
public bool Checked { get; set; }
Gets or sets the image that is displayed on menu item element.
[TypeConverter(typeof(ImageTypeConverter))]
public Image Image { get; set; }
Gets or sets the text that is displayed on menu item element.
public string Text { get; set; }
Resolves this item's theme using the RadMenuItem theme type.
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Arranges the checkmark and text in the drop-down menu's shared columns, mirroring their positions for right-to-left layout.
Builds the fill, border, content, and checkmark elements that render the menu item.
protected override void CreateChildElements()
Overrides:
Assigns the default visual class used to style overflow menu items.
protected override void InitializeFields()
Overrides:
Toggles the checked state after normal click handling, updating the represented item's visibility in its strip.
Selects the menu item when the pointer enters it.
protected override void OnMouseEnter(EventArgs e)
Event data for the mouse-enter event.
Overrides:
Removes the menu item's selection when the pointer leaves it.
protected override void OnMouseLeave(EventArgs e)
Event data for the mouse-leave event.
Overrides:
Serializes a non-default visual class and delegates serialization decisions for other properties to the base implementation.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
The property being checked for serialization.
Returns:bool?
Whether the specified property should be serialized.
Overrides: