Back to Devexpress

Add the Dashboard Viewer

dashboard-119815-wpf-viewer-add-dashboard-control.md

latest2.1 KB
Original Source

Add the Dashboard Viewer

  • Jul 31, 2023

.NET Framework Applications

To add DashboardControl to your WPF application, drag it from the DX.25.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:

xaml
<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.

xaml
<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

Create a WPF Dashboard Viewer (.NET)

Create a WPF Dashboard Viewer (.NET Framework)