Back to Devexpress

BarManager.BarsSource Property

wpf-devexpress-dot-xpf-dot-bars-dot-barmanager-60a71eba.md

latest2.4 KB
Original Source

BarManager.BarsSource Property

Gets or sets an object that provides information to generate and initialize bars for this BarManager. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public object BarsSource { get; set; }
vb
Public Property BarsSource As Object

Property Value

TypeDescription
Object

An Object that provides information to generate and initialize bars for this BarManager.

|

Remarks

The BarsSource property supports the MVVM design pattern. See MVVM Support to learn more.

Use the BarManager.BarTemplate property to visualize objects stored in the BarsSource collection.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the BarsSource 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.

wpf-bars-mvvm-generate-bars-from-view-model-collection/CS/DXSample/MainWindow.xaml#L76

xml
<Grid>
    <dxb:BarManager BarsSource="{Binding Bars}" BarTemplateSelector="{StaticResource BarTemplateSelector}"/>
</Grid>

See Also

BarTemplate

BarManager Class

BarManager Members

DevExpress.Xpf.Bars Namespace