System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Returns a reference to the MenuItemStyle object that allows you to set the appearance of a dynamic menu.
Inline |
<asp:menu dynamicmenustyle = value ... > |
Script |
Menu.DynamicMenuStyle [ = value ] |
value |
A reference to the MenuItemStyle that represents the style of a dynamic menu. |
The property is read/write with no default value.
Use the DynamicMenuStyle property to control the appearance of a dynamic menu.
This property is read-only; however, you can set the properties of the MenuItemStyle object it returns.
The properties can be set declaratively in the form Property-Subproperty, where Subproperty is a property of the MenuItemStyle object ( for example, DynamicMenuStyle-ForeColor ). The properties can also be set programmatically in the form Property.Subproperty ( for example, DynamicMenuStyle.ForeColor ).
Style properties for a dynamic menu item are applied in the following order:
- DynamicMenuStyle.
- DynamicMenuItemStyle. If the LevelMenuItemStyles collection or LevelSubMenuStyles collection is defined, it is applied at this time, overriding the other menu item style properties.
- DynamicSelectedStyle. If the LevelSelectedStyles collection is defined, it is applied at this time, overriding the other menu item style properties.
- DynamicHoverStyle.
Menu Members