Back to Devexpress

DashboardControl.DashboardSource Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrol.md

latest4.6 KB
Original Source

DashboardControl.DashboardSource Property

Gets or sets a dashboard source for the DashboardControl.

Namespace : DevExpress.DashboardWpf

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

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

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

Property Value

TypeDescription
Object

An Object that specifies a dashboard source for the DashboardControl.

|

Remarks

The following dashboard sources are supported:

  1. Dashboard XML definition standalone file.

  2. Dashboard XML definition compiled resource.

  3. Dashboard class created at design time.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DashboardSource 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-viewer-DashboardStateChanged-event/CS/WPF-DashboardStateChanged-Event/MainWindow.xaml#L15

xml
<dxdash:DashboardControl Grid.Column="0" x:Name="dashboardControl1"
                         DashboardSource="../../Dashboards/dashboard1.xml"
                         DashboardStateChanged="DashboardControl_DashboardStateChanged" BorderThickness="3" />

wpf-dashboard-how-to-obtain-clicked-item-data/CS/Dashboard_ClientDataCards_Wpf/MainWindow.xaml#L12

xml
<dxdash:DashboardControl DashboardSource="{x:Type local:Dashboard1}" DashboardItemMouseUp="DashboardControl_DashboardItemMouseUp"/>

wpf-dashboard-how-to-obtain-item-data-on-mouse-hover/CS/Dashboard_UnderlyingDataWPF/MainWindow.xaml#L22

xml
DashboardItemMouseMove="DashboardControl_DashboardItemMouseMove"
    DashboardSource="{x:Type local:SalesDashboard}" />
<Popup x:Name="tooltip" AllowsTransparency="True">

wpf-dashboard-how-to-set-initial-dashboard-state/CS/WpfDashboard_DashboardState/MainWindow.xaml#L19

xml
ConfigureDataConnection="DashboardControl_ConfigureDataConnection"
DashboardSource="SampleDashboardWithState.xml"
SetInitialDashboardState="dashboardControl_SetInitialDashboardState"/>

wpf-dashboard-how-to-embed-devexpress-control/CS/GanttSample/Window.xaml#L44

xml
<Grid>
    <dxdash:DashboardControl DashboardSource="{x:Type local:Dashboard}"
                             ObjectDataSourceLoadingBehavior="LoadAsIs"

See Also

LoadDashboard

Create and Load a Dashboard

DashboardControl Class

DashboardControl Members

DevExpress.DashboardWpf Namespace