Back to Devexpress

IDashboardControlProvider.Dashboard Property

dashboard-devexpress-dot-dashboardwpf-dot-idashboardcontrolprovider.md

latest2.8 KB
Original Source

IDashboardControlProvider.Dashboard Property

Gets or sets the opened dashboard.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Dashboard.v25.2.Wpf.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
Dashboard Dashboard { get; set; }
vb
Property Dashboard As Dashboard

Property Value

TypeDescription
Dashboard

A Dashboard object

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Dashboard 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-dashboard-custom-properties/CS/Wpf-Dashboard-Custom-Properties/Modules/GridFixedColumnModule/GridFixedColumnModule.cs#L32

csharp
if(viewModel != null) {
    Dashboard dashboard = viewModel.DashboardControlProvider.Dashboard;
    GridDashboardItem grid = dashboard.Items[viewModel.DashboardItemName] as GridDashboardItem;

wpf-dashboard-custom-properties/VB/Wpf-Dashboard-Custom-Properties/Modules/GridFixedColumnModule/GridFixedColumnModule.vb#L36

vb
If viewModel IsNot Nothing Then
    Dim dashboard As Dashboard = viewModel.DashboardControlProvider.Dashboard
    Dim grid As GridDashboardItem = TryCast(dashboard.Items(viewModel.DashboardItemName), GridDashboardItem)

See Also

IDashboardControlProvider Interface

IDashboardControlProvider Members

DevExpress.DashboardWpf Namespace