Add the Dashboard Viewer
.NET Framework Applications
To add DashboardControl to your WPF application, drag it from the DX.24.2: Data & Analytics Toolbox tab and drop it onto a Window.
The control’s XAML code should look as follows after you dropped DashboardControl
onto the Window:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:dxdash="http://schemas.devexpress.com/winfx/2008/xaml/dashboard"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
x:Class="WpfApp1.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dxdash:DashboardControl MinHeight="150/>
</Grid>
</Window>
.NET Applications
Install the DevExpress.Wpf.Dashboard package and add DashboardControl
to the MainWindow.xaml
file.
<Window x:Class="WpfApp1.MainWindow"
...
xmlns:dxdash="http://schemas.devexpress.com/winfx/2008/xaml/dashboard">
<Grid>
<dxdash:DashboardControl/>
</Grid>
</Window>
Build the solution.
Next Step
You can now create a new dashboard at design time in Visual Studio, or load an existing dashboard XML file. See the Create and Load a Dashboard topic for more information.
See Also