Back to Devexpress

ParametersPanel.ParameterTemplateSelector Property

wpf-devexpress-dot-xpf-dot-printing-dot-parameters-dot-parameterspanel.md

latest2.8 KB
Original Source

ParametersPanel.ParameterTemplateSelector Property

Specifies an object that provides a way to choose a DataTemplate based on the data object and the data-bound element. This is a dependency property.

Namespace : DevExpress.Xpf.Printing.Parameters

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

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public DataTemplateSelector ParameterTemplateSelector { get; set; }
vb
Public Property ParameterTemplateSelector As DataTemplateSelector

Property Value

TypeDescription
DataTemplateSelector

A DataTemplateSelector object.

|

Remarks

To customize the report parameter editors, use a custom DataTemplate in the ParametersPanel.ParameterTemplateSelector.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ParameterTemplateSelector property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

reporting-wpf-custom-editor-for-report-parameter/CS/CustomParameterEditorsWPF/MainWindow.xaml#L33

xml
<Style TargetType="{x:Type dxpp:ParametersPanel}">
    <Setter Property="ParameterTemplateSelector" Value="{StaticResource parameterTemplateSelector}" />
</Style>

See Also

Custom Editors for Report Parameters (WPF)

ParametersPanel Class

ParametersPanel Members

DevExpress.Xpf.Printing.Parameters Namespace