Returns a collection of "Look" items.
Property Value
MenuLookItemCollection
A collection of "Look" which defines menu item's appearance settings. "Look" is also a
MenuItem object.
This property is read only. However, you can access the properties and methods of the object it returns.
Remarks
Menu maintains a collection of "Looks" which can be applied to each menu item. You can change a specific "Look" to control the common appearance of the menu items that use this "Look". Each "Look" in the collection is also a MenuItem object. Apply "Look" to a menu item by using the MenuItem's LookID property.
When designing a menu's appearance, you should put common appearance setting into "Look" item, such as an item's border, padding, font etc. For individual item that has specific appearance, such as LeftIcon, you can set the appearance setting on that item. During run time, a menu item will merge its own appearance setting and its "Look" item's appearance setting together.
Here is a sample on how to dynamically create a menu look and apply the look to menu items.
[C#] // Create a look item with ID of "firstLevel"
MenuItem firstLevelLook = new MenuItem();
firstLevelLook.NormalStyle.CssClass = "NormalStyle";
firstLevelLook.HoverStyle.CssClass = "HoverStyle";
firstLevelLook.ItemID = "firstLevel";
Menu1.LookItems.Add(firstLevelLook);
// Set the menu item's LookID to "firstLevel".
// This menu item uses the "firstLevel" look now.
Menu1.LookItems[0].LookID = "firstLevel";
[Visual Basic.NET] ' Create a look item with ID of "firstLevel"
Dim firstLevelLook As New MenuItem
firstLevelLook.NormalStyle.CssClass = "NormalStyle"
firstLevelLook.HoverStyle.CssClass = "HoverStyle"
firstLevelLook.ItemID = "firstLevel"
Menu1.LookItems.Add(firstLevelLook)
' Set the menu item's LookID to "firstLevel".
' This menu item uses the "firstLevel" look now.
Menu1.LookItems.Item(0).LookID = "firstLevel"
See
Menu item look for more details.
See Also
Menu Class | EO.Web Namespace