lgabryel
❔ How put specific UserControl to ContentControl baseing on DataContext.
In https://www.codeproject.com/articles/1118762/generic-wpf-crud-control-getting-started project we have AddEditPopupWindows.xaml window with <ContentControl Content="{Binding}" ...>. Also we have added DataTemplate mapping DataType of some ViewModel class to specfic UserControl. Now - witch mechanism putting specific UserControl to ContentControl and why? Where shoud I looking in MSDN to get describe od this mechanism? I'm looking to create some generic Add/Edit window in WPF and defining only UserControls with input definition to each ViewModel. Thanks for Your time.
2 replies