RadMenuItemLayout
Arranges the image or checkmark, label, description, shortcut hint, and submenu arrow for a RadMenuItem.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadMenuItemLayout : LayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelRadMenuItemLayout...
Implements:
Inherited Members
Constructors
public RadMenuItemLayout()
Properties
Gets the arrow primitive that indicates the menu item has a child popup.
public ArrowPrimitive ArrowPrimitive { get; }
Checkmark
RadMenuCheckmark
Gets the checkmark element that displays the menu item's toggle state or image.
public RadMenuCheckmark Checkmark { get; }
Gets the primitive that displays the menu item's secondary description.
public TextPrimitive Description { get; }
Gets the image primitive bound to the owning menu item's image properties.
public ImagePrimitive ImagePrimitive { get; }
Gets the panel that arranges the image/checkmark beside the text column.
public ImageAndTextLayoutPanel InternalLayoutPanel { get; }
Gets the primitive used to display the menu item's shortcut or hint text.
public TextPrimitive Shortcut { get; }
Gets the primitive that displays the menu item's primary label.
public TextPrimitive Text { get; }
Gets the vertical panel containing the label, separator, and description text.
public StackLayoutPanel TextPanel { get; }
Gets the separator displayed between the primary label and description.
public LinePrimitive TextSeparator { get; }
Methods
Arranges the left image/checkmark, main text, shortcut, and submenu arrow within the item bounds. The right-column width comes from the containing drop-down layout when available, and positions are mirrored for right-to-left layouts.
Creates and arranges the visual primitives used by the menu item layout.
protected override void CreateChildElements()
Overrides:
Returns the layout bounds remaining after padding and border thickness are removed.
protected override RectangleF GetClientRectangle(SizeF finalSize)
The final size allocated to the layout.
Returns:The client rectangle used to arrange child elements.
Overrides:
Determines whether element is this layout's checkmark or image primitive.
protected virtual bool IsLeftColumnElement(RadElement element)
The element to classify.
Returns:true for the checkmark or image primitive; otherwise, false.
Determines whether element is this layout's main image-and-text panel.
protected virtual bool IsLeftContent(RadElement element)
The element to classify.
Returns:Determines whether element is this layout's submenu arrow primitive.
protected virtual bool IsRightColumnElement(RadElement element)
The element to classify.
Returns:Determines whether element is this layout's shortcut-text primitive.
protected virtual bool IsRightContent(RadElement element)
The element to classify.
Returns:Measures the child elements at their desired widths and uses the tallest child to determine the layout height.
Reverses the submenu arrow direction when the layout's right-to-left setting changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Overrides: