Export (0) Print
Expand All
Expand Minimize

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.

Namespace:  System.Web.UI.WebControls
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::Int32
The 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.

ExceptionCondition
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.

NoteNote

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.

The following code example demonstrates how to use the DisappearAfter property to specify that a dynamic menu should disappear after the user moves the mouse pointer away from the menu for more than two seconds.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.5.3, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft