dashboard-devexpress-dot-dashboardwpf-dot-idashboardcontrolprovider.md
Gets or sets the opened dashboard.
Namespace : DevExpress.DashboardWpf
Assembly : DevExpress.Dashboard.v25.2.Wpf.dll
NuGet Package : DevExpress.Wpf.Dashboard
Dashboard Dashboard { get; set; }
Property Dashboard As Dashboard
| Type | Description |
|---|---|
| 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.
if(viewModel != null) {
Dashboard dashboard = viewModel.DashboardControlProvider.Dashboard;
GridDashboardItem grid = dashboard.Items[viewModel.DashboardItemName] as GridDashboardItem;
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