❔ 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.
CodeProject
Generic WPF CRUD Control (Getting Started)
A generic CRUD control implemented based on the MVVM pattern.
1 Reply
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.