Gets a reference to the MenuItemStyle object that allows you to set the appearance of the dynamic menu item selected by the user.
Namespace: System.Web.UI.WebControls Assembly: System.Web (in system.web.dll)
Use the DynamicSelectedStyle property to control the appearance of a dynamic 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, DynamicSelectedStyle-ForeColor). The properties can also be set programmatically in the form Property.Subproperty (for example, DynamicSelectedStyle.ForeColor).
Style properties for a dynamic menu item are applied in the following order:
The following code example demonstrates how to use the DynamicSelectedStyle property to specify a light blue background color for the selected dynamic menu item.
Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.