Back to Devexpress

DashboardControlBase.ParametersTemplate Property

dashboard-devexpress-dot-dashboardwpf-dot-dashboardcontrolbase-2fa4ec34.md

latest2.6 KB
Original Source

DashboardControlBase.ParametersTemplate Property

Allows you to specify a custom Dashboard Parameters dialog template.

Namespace : DevExpress.DashboardWpf

Assembly : DevExpress.Xpf.Dashboard.v25.2.dll

NuGet Package : DevExpress.Wpf.Dashboard

Declaration

csharp
public DataTemplate ParametersTemplate { get; set; }
vb
Public Property ParametersTemplate As DataTemplate

Property Value

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

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

DashboardControlBase Class

DashboardControlBase Members

DevExpress.DashboardWpf Namespace