I have defined some DataTemplates are similar. The templates are like this:    <DataTemplate x:Key=DefaultCellTemplate>    <TextBlock Text={Binding Value}>        <i:Interaction.Behaviors>            <beh:AddErrorButtonAdornerToControlsBehavior                 DoOnButtonClick={Binding RelativeSource={RelativeSource AncestorType={x:Type dxg:GridControl}}, Path=DataContext.ShowErrorDialogCommand}                 FieldDescriptionId={Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dxg:GridCellContentPresenter}}, Path=Column.Tag}/>        </i:Interaction.Behaviors>    </TextBlock></DataTemplate><DataTemplate x:Key=TimeCellTemplate>    <TextBlock Text={Binding Value, Converter={StaticResource TimeConverter}}>        <i:Interaction.Behaviors>            <beh:AddErrorButtonAdornerToControlsBehavior                 DoOnButtonClick={Binding RelativeSource={RelativeSource AncestorType={x:Type dxg:GridControl}}, Path=DataContext.ShowErrorDialogCommand}                 FieldDescriptionId={Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dxg:GridCellContentPresenter}}, Path=Column.Tag}/>        </i:Interaction.Behaviors>    </TextBlock></DataTemplate><DataTemplate x:Key=StationCellTemplate>    <TextBlock Text={Binding Value, Converter={StaticResource StationConverter}}>        <i:Interaction.Behaviors>            <beh:AddErrorButtonAdornerToControlsBehavior                 DoOnButtonClick={Binding RelativeSource={RelativeSource AncestorType={x:Type dxg:GridControl}}, Path=DataContext.ShowErrorDialogCommand}                 FieldDescriptionId={Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dxg:GridCellContentPresenter}}, Path=Column.Tag}/>        </i:Interaction.Behaviors>    </TextBlock></DataTemplate><DataTemplate x:Key=ProductionCategoryCellTemplate>    <TextBlock Text={Binding Value, Converter={StaticResource ProductionCategoryConverter}}>        <i:Interaction.Behaviors>            <beh:AddErrorButtonAdornerToControlsBehavior                 DoOnButtonClick={Binding RelativeSource={RelativeSource AncestorType={x:Type dxg:GridControl}}, Path=DataContext.ShowErrorDialogCommand}                 FieldDescriptionId={Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type dxg:GridCellContentPresenter}}, Path=Column.Tag}/>        </i:Interaction.Behaviors>    </TextBlock></DataTemplate>I don't know, if I can define a template base. The template base should be a TextBlock with the behavior and the derived templates should be use a converter for the TextBlock value. Any idea?
Defining a DataTemplateBase
wpf;xaml