Skip to main content

DashboardControlBase.ParametersTemplate Property

Allows you to specify a custom Dashboard Parameters dialog template.

Namespace: DevExpress.DashboardWpf

Assembly: DevExpress.Xpf.Dashboard.v24.1.dll

NuGet Package: DevExpress.Wpf.Dashboard

Declaration

public DataTemplate ParametersTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that specifies the data template used to render the Dashboard Parameters dialog.

Remarks

The following Xaml snippet illustrates how to display the dashboard parameters using a custom template. The template is shown when the end-user clicks the Parameter button in the dashboard title.

<dxdash:DashboardControl>
<!--- --->
    <dxdash:DashboardControl.ParametersTemplate>
      <DataTemplate>
          <DataGrid AutoGenerateColumns="False"
                    IsReadOnly="True"
                    ItemsSource="{Binding ItemViewModels}">
              <DataGrid.Columns>
                  <DataGridTextColumn
                      Width="100"
                      Binding="{Binding DisplayName}"
                      Header="DisplayName" />
                  <DataGridTextColumn
                      Width="100"
                      Binding="{Binding Name}"
                      Header="Name" />
                  <DataGridTextColumn
                      Width="50"
                      Binding="{Binding Value}"
                      Header="Value" />
              </DataGrid.Columns>
          </DataGrid>
      </DataTemplate>
  </dxdash:DashboardControl.ParametersTemplate>
</dxdash:DashboardControl>
See Also