Back to Devexpress

DocumentManager.BarAndDockingController Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-documentmanager-82961313.md

latest4.4 KB
Original Source

DocumentManager.BarAndDockingController Property

Gets or sets the bar and dock controller that specifies default appearance settings for the DocumentManager‘s elements.

Namespace : DevExpress.XtraBars.Docking2010

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Appearance")]
public virtual BarAndDockingController BarAndDockingController { get; set; }
vb
<DXCategory("Appearance")>
<DefaultValue(Nothing)>
Public Overridable Property BarAndDockingController As BarAndDockingController

Property Value

TypeDefaultDescription
BarAndDockingControllernull

A BarAndDockingController object providing appearance options.

|

Remarks

Use the BarAndDockingController property to explicitly assign a BarAndDockingController to a DocumentManager. The BarAndDockingController provides settings that allow you to control the default appearance of the DocumentManager‘s elements. These settings are accessible via the BarAndDockingController.AppearancesDocumentManager object.

If the BarAndDockingController property is set to null , the DocumentManager uses the Default BarAndDockingController’s settings. Otherwise, the appearance settings are obtained from the assigned BarAndDockingController. The Default BarAndDockingController can be obtained via the static BarAndDockingController.Default property or via the DefaultBarAndDockingController component.

See the Look and Feel help topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BarAndDockingController property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

xaf-how-to-create-information-panels/CS/InfoPanels.Module.Win/MainForm.cs#L36

csharp
UpdateMdiModeDependentProperties();
documentManager.BarAndDockingController = mainBarAndDockingController;
documentManager.MenuManager = mainBarManager;

xaf-how-to-create-information-panels/VB/InfoPanels.Module.Win/MainForm.vb#L44

vb
UpdateMdiModeDependentProperties()
DocumentManager.BarAndDockingController = mainBarAndDockingController
DocumentManager.MenuManager = mainBarManager

See Also

DocumentManager Class

DocumentManager Members

DevExpress.XtraBars.Docking2010 Namespace