Exception | Description |
---|---|
System.NotSupportedException | Thrown when the property is set to a value other than 'Always' for the RootLocation. |
By default, a dropdown button is displayed for an UltraNavigationBarLocation only when its Locations collection contains one or more visible members. The exception to this rule is the RootLocation, which always displays a dropdown button. The DropDownButtonVisible property can be set to 'Never' to prevent the dropdown button from appearing, or to 'Always' to force the button to appear regardless of whether it has any children. The latter setting is useful in the case where it is desirable to display something other than the dropdown list of child locations; in this scenario, the end developer would handle the LocationExpanding event, set the 'Cancel' property of its event arguments to true (to prevent the default dropdown list from appearing), and display an alternative list, custom form or control, etc.
Note: The UltraNavigationBar control provides a mechanism through which a Locations collection can be dynamically populated, via the UltraNavigationBar.InitializeLocations event. This event is fired the first time a Locations collection is accessed, but does not fire again during the object's lifetime (unless the NavigationBarLocationsCollection.Reset method is called).
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