I want to dynamically generate a form in WPF. I would like to do it using XAML not from the code behind(Which I am currently doing.).
If I have a data template like below, What is the parent controller that I can use for this.(Like we use Listbox)
I have dataTemplate like below
<DataTemplate x:Key="FieldTemlate">
<TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" />
<TextBox VerticalAlignment="Top" Width="40" />
</DataTemplate>
Listof my custom objects which has information about the field need to be in the form. I want to bind thatlist.