Top "Datatemplateselector" questions

DataTemplateSelector in WPF

I want to switch between two views that have different bindings and controls. Can I do this using DataTemplateSelector? <…

c# wpf mvvm datatemplateselector
WPF DataTemplate / DataTemplateSelector -- Best approach for a ViewModel used by 2 different Views?

Basically, I have the following scenario: ViewModel: FooViewModel : BaseViewModel, BarViewModel : BaseViewModel Views: MainView, FooView, BarView Right now I "inject" the …

wpf mvvm prism datatemplate datatemplateselector
WPF DataGrid CellTemplateSelector Item

I have a grid bound to a collection of VMs. When using DataTemplateSelector for my DataGridTemplateColumn I'm getting the whole …

c# wpf datagrid datatemplateselector