The requested page is not available for the requested platform. You are viewing the content for Default platform.

Adding DashboardControl

To add DashboardControl to your WPF application, drag it from the DX.19.1: Data & Analytics Toolbox tab and drop it 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.