Version

ExpandedLocation Property

Gets/sets the UltraNavigationBarLocation that is currently displaying a dropdown list which provides user interface access to its UltraNavigationBarLocation.Locations collection.
Syntax
'Declaration
 
Public Property ExpandedLocation As UltraNavigationBarLocation
public UltraNavigationBarLocation ExpandedLocation {get; set;}
Exceptions
ExceptionDescription
System.ExceptionThrown when the specified UltraNavigationBarLocation instance is associated with a different UltraNavigationBar, or not associated with any UltraNavigationBar.
Remarks

When the end user clicks the LocationDropDownButtonUIElement, the associated UltraNavigationBarLocation enters the expanded state; the LocationExpanding event fires, and if the event is not canceled, a dropdown list appears, which contains the visible members of the location's UltraNavigationBarLocation.Locations collection. During the period of time for which this dropdown is visible, a reference to that location is returned from the ExpandedLocation property.

A location can be expanded programmatically by either setting its UltraNavigationBarLocation.IsExpanded property to true, or by assigning the ExpandedLocation property a reference to that location.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also