ControlTemplate with DataTrigger Vs. DataTemplate with DataTemplateSelector
I have a generic control which displays an editor based on the type property inside a ViewModel. Currently it's implemented using Control , ControlTemplate and DataTrigger like this - <Control x:Name="MainControl" Grid.Column="1" TargetUpdated="OnTargetUpdated"> <Control.Style> <Style> <Style.Triggers> <DataTrigger Binding="{Binding Path=EditorType}" Value="{x:Static view:EditorType.Bool}"> <Setter Property="Control.Template" Value="{StaticResource boolTemplate}" /> </DataTrigger> <DataTrigger Binding="{Binding Path=EditorType}" Value="{x:Static view:EditorType.Text}"> <Setter Property=