Represents the functionality of a menu control.
For a list of all members of this type, see Menu Members.
System.Object
System.Web.UI.Control
System.Web.UI.WebControls.WebControl
EO.Web.WebControlBase
EO.Web.WebControl
EO.Web.DataBoundControl
EO.Web.BaseNavigator
EO.Web.Menu
EO.Web.ContextMenu
EO.Web.SlideMenu
[Visual Basic]
Public Class Menu
Thread Safety
Public static (Shared in Visual Basic) members of this type are
safe for multithreaded operations. Instance members are not guaranteed to be
thread-safe.
Remarks
A Menu control represents the container for the hierarchical structure used to navigate a web site. It is composed of MenuItem objects that represent a group of individual navigation items in the hierarchical structure.
Note For applications that will have support for multiple languages, you can use the RightToLeft property to display the text of the menu from right to left to support languages such as Arabic.
There are several ways to create a menu:
- During design time, use menu builder to create a static menu.
- During run time, use API to dynamically create or modify a menu.
- During run time, use data binding to dynamically create a menu.
EO.Web menu also supports fully customizable styles, such as image-only item, custom item, item with
LeftIcon and
RightIcon, menu skin and page theme. The code below demonstrates how to dynamically create a menu via API:
[C#] //Create a Menu object
EO.Web.Menu menu = new EO.Web.Menu();
//Create a MenuItem object
EO.Web.MenuItem item = new EO.Web.MenuItem();
item.Text.Html = "New Menu Item";
//Add MenuItem to Menu object
menu.Items.Add(item);
//Add the Menu object to the page
Controls.Add(menu);
[Visual Basic] 'Create a Menu object
Dim menu1 As New EO.Web.Menu
'Create a MenuItem object
Dim item As New EO.Web.MenuItem
item.Text.Html = "New Menu Item"
'Add MenuItem to Menu object
menu.Items.Add(item)
'Add the Menu object to the page
Controls.Add(menu)
Requirements
Namespace: EO.Web
Assembly: EO.Web (in EO.Web.dll)
See Also
Menu Members | EO.Web Namespace