asp.net.ph

Menu.StaticSelectedStyle Property

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 the static menu item selected by the user.

Syntax


Inline <asp:menu staticselectedstyle = value ... >
Script Menu.StaticSelectedStyle [ = value ]

Property Value


value A reference to the MenuItemStyle that represents the style of the selected static menu item.

The property is read/write with no default value.

Remarks

Use the StaticSelectedStyle property to control the appearance of a static menu item when the user selects it from the 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, StaticSelectedStyle-ForeColor ). The properties can also be set programmatically in the form Property.Subproperty ( for example, StaticSelectedStyle.ForeColor ).

Style properties for a static menu item are applied in the following order:

  1. StaticMenuStyle.
  2. StaticMenuItemStyle. If the LevelMenuItemStyles collection or LevelSubMenuStyles collection is defined, it is applied at this time, overriding the other menu item style properties.
  3. StaticSelectedStyle. If the LevelSelectedStyles collection is defined, it is applied at this time, overriding the other menu item style properties.
  4. StaticHoverStyle.

See Also

Menu Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph