Gets a reference to the Style object that allows you to set the appearance of a dynamic menu item when the mouse pointer is positioned over it.
Namespace: System.Web.UI.WebControls Assembly: System.Web (in system.web.dll)
Use the DynamicHoverStyle property to control the appearance of a dynamic menu item when the mouse pointer is positioned over it. This property is read-only; however, you can set the properties of the Style object it returns. The properties can be set declaratively in the form Property-Subproperty, where Subproperty is a property of the Style object (for example, DynamicHoverStyle-ForeColor). The properties can also be set programmatically in the form Property.Subproperty (for example, DynamicHoverStyle.ForeColor).
Style properties for a dynamic menu item are applied in the following order:
The following code example demonstrates how to use the DynamicHoverStyle property to change the background color of a dynamic menu item to light sky blue when the user positions the mouse pointer over it.
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.