windowsforms-devexpress-dot-xtranavbar-dot-navbarcontrol-14b6cdff.md
Gets or sets the version of the control’s layout.
Namespace : DevExpress.XtraNavBar
Assembly : DevExpress.XtraNavBar.v25.2.dll
NuGet Package : DevExpress.Win
[DefaultValue("")]
public virtual string LayoutVersion { get; set; }
<DefaultValue("")>
Public Overridable Property LayoutVersion As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
A string representing the version of the control’s layout.
|
You should assign versions to layouts if you need to customize the control after an earlier version of the control’s layout has been loaded and applied to the control.
Consider an example. Suppose an earlier version of an application contained a NavBarControl with a single group (Group1). When running the application an end-user saved the NavBarControl’s layout to an XML file. Then a new version of the application was designed. For instance, it added another group (Group2). By default, when the previously saved layout is loaded within the new application the current layout of the control will be overridden. Therefore only Group1 will be visible. The second group will be hidden.
To allow end-users to work with previously saved layouts and ensure that new features aren’t lost and new groups and items will still be visible after old layouts have been loaded you should do the following:
See Also