Skip to main content
All docs
V26.1
  • DateRangeFilterModelTemplateSelector.SelectTemplate(Object, DependencyObject) Method

    Returns a template based on the filter model.

    Namespace: DevExpress.Xpf.Core.FilteringUI

    Assembly: DevExpress.Xpf.Grid.v26.1.dll

    Declaration

    public override DataTemplate SelectTemplate(
        object item,
        DependencyObject container
    )

    Parameters

    Name Type Description
    item Object

    The active filter model. Expected values: DateRangeFilterModel, DateOnlyRangeFilterModel, or TimeOnlyRangeFilterModel.

    container DependencyObject

    The element that displays the template.

    Returns

    Type Description
    DataTemplate

    A DataTemplate based on the active filter model.

    Remarks

    The SelectTemplate method returns a template based on the active filter model passed as the data context. The method returns the following templates:

    Filter Model Template
    DateOnlyRangeFilterModel DateOnlyRangeTemplate
    DateRangeFilterModel DateTimeRangeTemplate
    TimeOnlyRangeFilterModel TimeOnlyRangeTemplate
    See Also