Menu::DisappearAfter Property
Gets or sets the duration for which a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu.
Assembly: System.Web (in System.Web.dll)
[ThemeableAttribute(false)] public: property int DisappearAfter { int get (); void set (int value); }
<asp:Menu DisappearAfter="Int32" />
Property Value
Type: System::Int32The amount of time (in milliseconds) a dynamic menu is displayed after the mouse pointer is no longer positioned over the menu. The default is 500.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The selected value is less than -1. |
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.
This property cannot be set by themes or style sheet themes. For more information, see ThemeableAttribute and ASP.NET Themes and Skins Overview.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Note: