Adding DashboardControl

To add DashboardControl to your WPF application, drag it from the DX.18.1: Data & Analytics Toolbox tab and drop onto a Window.

GettingStarted_WpfViewer_Toolbox

The control's XAML code should look as follows after you dropped a 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>

You can now create a new dashboard at design time in Visual Studio, or load an existing dashboard XML file. See the Creating and Loading a Dashboard topic for more information.