Lays out drop-down menu items vertically and measures shared columns so images and checkmarks align on the left and submenu arrows align on the right.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadDropDownMenuLayout : StackLayoutPanel, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode
Inheritance: objectDisposableObjectRadObjectRadElementLayoutPanelStackLayoutPanelRadDropDownMenuLayout...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadDropDownMenuLayout()
Fields
Identifies the property that sets the minimum width reserved for the menu's left column.
public static RadProperty LeftColumnMinWidthProperty
Identifies the property that adds trailing width to the measured menu size.
public static RadProperty RightColumnPaddingProperty
Properties
Gets the greatest combined left padding, border thickness, and margin among child menu items.
public virtual float LeftColumnMaxPadding { get; }
Gets or sets the left column minimal width.
public virtual int LeftColumnMinWidth { get; set; }
Gets the reserved left-column width, at least LeftColumnMinWidth and large enough for the widest measured left-column element.
public virtual float LeftColumnWidth { get; }
Gets or sets extra width added to the measured menu size after its items are measured.
public virtual int RightColumnPadding { get; set; }
Gets the maximum measured width of child menu items' right-column elements.
public virtual float RightColumnWidth { get; }
Methods
Sets vertical orientation and equal widths for the layout's children.
protected override void InitializeFields()
Overrides:
Propagates the menu's drop-down position to inserted or replaced descendants and invalidates menu measurement after child changes.
protected override void OnChildrenChanged(RadElement child, ItemsChangeOperation changeOperation)
The child involved in the collection change.
changeOperationItemsChangeOperationThe operation that changed the child collection.
Overrides: