System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Returns or sets the duration for which a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu.
Inline |
<asp:menu disappearafter = intValue ... > |
Script |
Menu.DisappearAfter [ = intValue ] |
intValue |
The amount of time ( in milliseconds ) a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu. |
The property is read/write with a default value of 500.
By default, a dynamic menu automatically disappears after a certain duration when the mouse pointer is no longer positioned over the menu. Use the DisappearAfter property to specify the duration.
NOTE: A dynamic menu disappears immediately if the user clicks outside of the menu.
You can also specify that a dynamic menu should never automatically disappear by setting this property to -1. In this case, the dynamic menu item will disappear only when the user clicks outside the menu.
The following example demonstrates how to use the DisappearAfter property to specify the duration for which a dynamic menu is displayed after the user moves the mouse pointer away from the menu.
<asp:menu id = "navigationMenu"
staticdisplaylevels=2
staticsubmenuindent=10
disappearafter=1000
runat = "server">
<items>
...
</items>
</asp:menu>
Menu Members