Lets ItemListMenuDisplaying handlers cancel the menu or adjust its items and popup alignment before it opens.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadPageViewMenuDisplayingEventArgs : CancelEventArgs
Inheritance: objectEventArgsCancelEventArgsRadPageViewMenuDisplayingEventArgs
Inherited Members
Constructors
Creates menu display data with the specified popup alignment.
public RadPageViewMenuDisplayingEventArgs(List<RadMenuItemBase> items, Rectangle alignRect, HorizontalPopupAlignment hAlign, VerticalPopupAlignment vAlign)
The menu items to display; handlers can modify the list before the menu opens.
alignRectRectangleThe screen-coordinate rectangle used to position the menu.
hAlignHorizontalPopupAlignmentThe horizontal popup alignment.
vAlignVerticalPopupAlignmentThe vertical popup alignment.
Creates menu display data with the default left-to-left horizontal and top-to-bottom vertical alignment.
public RadPageViewMenuDisplayingEventArgs(List<RadMenuItemBase> items, Rectangle alignRect)
The menu items to display; handlers can modify the list before the menu opens.
alignRectRectangleThe screen-coordinate rectangle used to position the menu.
Properties
Gets or sets the rectangle (in screen coordinates) which will be used to align the menu.
public Rectangle AlignRect { get; set; }
Gets or sets the horizontal alignment of the menu that will display the items.
public HorizontalPopupAlignment HAlign { get; set; }
Items
List<RadMenuItemBase>
Gets a list with all the items that will be displayed.
public List<RadMenuItemBase> Items { get; }
Gets or sets the vertical alignment of the menu that will display the items.
public VerticalPopupAlignment VAlign { get; set; }