DashboardViewer.Dashboard Property
Gets or sets the currently opened dashboard.
Namespace: DevExpress.DashboardWin
Assembly: DevExpress.Dashboard.v24.2.Win.dll
Declaration
Property Value
Type | Description |
---|---|
Dashboard | A Dashboard object that is the currently opened dashboard. |
Remarks
You can open a dashboard in one of the following ways.
- Create and assign the Dashboard class instance to the Dashboard property. Note that in this case, you need to dispose the dashboard instance to avoid a memory leak.
- Specify the dashboard using the DashboardViewer.DashboardSource property.
- Use the DashboardViewer.LoadDashboard method to open a dashboard from a file or stream.
All these actions raise the DashboardViewer.DashboardChanged event.
Note
You cannot use the same instance of the dashboard object in the DashboardDesigner
and DashboardViewer
controls at the same time. You can use the SaveToXml
/ LoadFromXml
methods to create a copy of the dashboard object.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references 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.