Gets or sets the ID of the look item.
[Visual Basic]
Public Property LookID As
String
[C#]
public
String LookID {get; set;}
Property Value
System.String
A string value of the look item ID.
This property is read/write.
Remarks
Look items are special items that allow you to define appearance settings that can be applied to other items. Each control inherits from BaseNavigator (e.g, Menu, TabStrip) maintains a collection of look items in LookItems property, through which you can access individual look items by ID. Here is an example on how to configure a menu control's look item:
[C#] MyMenu.LookItems["Product"].NormalStyle.CssClass = "product";
[Visual Basic.NET] MyMenu.LookItems.Items("Product").NormalStyle.CssClass = "product"
Another code example to dynamically create look:
[C#] //Create a new look object
EO.Web.MenuItem theLook = new EO.Web.MenuItem();
//Setting the ID of the look object
theLook.ID = "Test";
//Set the shadow of the submenu to grey.
theLook.SubMenu.Style.ShadowColor = Color.Grey;
//Add it to the menu's item look objects collection
menu.LookItems.Add(theLook);
//Menu item1 now uses the new look we just created.
//It's SubMenu has grey shadow.
menuItem1.LookID = "Test";
[Visual Basic.NET] 'Create a new look object
Dim theLook as
EO.Web.MenuItem = New EO.Web.MenuItem
'Setting the ID of the look object
theLook.Name = "Test"
'Set the shadow of the submenu to grey.
theLook.SubMenu.Style.ShadowColor = Color.Grey
'Add it to the menu's item look objects collection
menu.LookItems.Add(theLook)
'Menu item1 now uses the new look we just created.
'It's SubMenu has grey shadow.
menuItem1.LookID = "Test"
See
item look for more details about item look.
See Also
NavigationItem Class | EO.Web Namespace