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; }
protected override Type ThemeEffectiveType { get; }
Overrides:
Methods
Arranges the RadElement to its final location. The element must call the Arrange method of each of its children.
protected override SizeF ArrangeOverride(SizeF 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:
In this method call to the Arrange method of each child must be made.
Called by the element when constructed. Allows inheritors to build the element tree.
protected override void CreateChildElements()
Overrides:
Initializes the internal state fields for the button item, setting default values for shared image and capture behavior.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
Determines whether the specified property should be serialized, with special handling for the SvgImageXml property.
public override bool? ShouldSerializeProperty(PropertyDescriptor 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: