RadMenuButtonItem
Displays a non-focusable button inside a menu item and forwards its clicks to the item; clicks close a hosting IPopupControl unless it is a RadMenu.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMenuButtonItem : RadMenuItemBase, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IButtonControl, IImageElement, IHierarchicalItem, IItemsOwner, ISiteProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadButtonItemRadMenuItemBaseRadMenuButtonItem...
Implements:
Inherited Members
Constructors
Creates a menu button item with no displayed text.
public RadMenuButtonItem()
Creates a menu button item whose embedded button displays the specified text.
public RadMenuButtonItem(string text)
The label displayed by the embedded button.
Properties
Gets or sets whether the embedded button automatically displays its tooltip.
public override bool AutoToolTip { get; set; }
Overrides:
Provides a reference to the ButtonElement element in the menu item.
[Browsable(true)]
public RadButtonElement ButtonElement { get; }
Gets or sets the index value of the image that is displayed on the item.
[Browsable(true)]
[RelatedImageList("MenuElement.ElementTree.Control.ImageList")]
public override int ImageIndex { get; set; }
Overrides:
Gets or sets the key accessor for the image in the ImageList.
[Browsable(true)]
[RelatedImageList("MenuElement.ElementTree.Control.ImageList")]
public override string ImageKey { get; set; }
Overrides:
Gets or sets the tooltip text on the embedded button.
public override string ToolTipText { get; set; }
Overrides:
Methods
Creates the item's background, border, and non-focusable button, then binds the button's text and image presentation to this item.
protected override void CreateChildElements()
Overrides:
Unsubscribes from the embedded button's click event before releasing managed resources.
protected override void DisposeManagedResources()
Overrides:
Assigns the theme class used to style the embedded menu button.
protected override void InitializeFields()
Overrides:
Omits the default theme class from serialized output and delegates other properties to the base implementation.
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
The property being checked for serialization.
Returns:bool?
false for the default class name; otherwise, the base implementation's result for the property.
Overrides: