ClassRadCommandBarOverflowMenuItem
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
RadCommandBarOverflowMenuItem(RadCommandBarBaseItem, RadDropDownMenu)
Create RadCommandBarOverflowMenuItem instance
Declaration
public RadCommandBarOverflowMenuItem(RadCommandBarBaseItem representedItem, RadDropDownMenu ownerMenu)
Parameters
representedItem
Which item will be show in menu
ownerMenu
Menu that should be updated on representedItem visibility is changed
Properties
Checked
Gets or sets whether the item is in checked state. This property affects the VisibleInStrip property of the coresponding item in CommandBarStripElement.
Image
Gets or sets the image that is displayed on menu item element.
Declaration
[TypeConverter(typeof(ImageTypeConverter))]
public Image Image { get; set; }
Property Value
Text
Gets or sets the text that is displayed on menu item element.
ThemeEffectiveType
Declaration
protected override Type ThemeEffectiveType { get; }
Property Value
Overrides
Methods
ArrangeOverride(SizeF)
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
finalSize
The size that is available for element.
Returns
The rectangle occupied by the element. Usually finalSize. Should you return different size, the Layout system will restart measuring and rearranging the items. That could lead to infinite recursion.
Overrides
Remarks
In this method call to the Arrange method of each child must be made.
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
InitializeFields()
Initializes the internal state fields for the button item, setting default values for shared image and capture behavior.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnClick(EventArgs)
Handles the click event, managing dialog result assignment and ensuring proper form behavior for button controls.
OnMouseEnter(EventArgs)
Handles the mouse enter event by setting the button to pressed state when in hover click mode or when a press is pending.
OnMouseLeave(EventArgs)
Handles the mouse leave event by releasing the pressed state and managing press-on-return behavior.
ShouldSerializeProperty(PropertyDescriptor)
Determines whether the specified property should be serialized, with special handling for the SvgImageXml property.
Declaration
public override bool? ShouldSerializeProperty(PropertyDescriptor property)
Parameters
property
The PropertyDescriptor representing the property to check for serialization.
Returns
bool?
True if the property should be serialized, false if it should not be serialized, or null for default behavior.
Overrides