I have a DataForm where I have specified a DataTemplate for ItemTemplate. ItemsSource is bound to a List property of ViewModel. Wherenever List property changes, DataForm’s ItemsSource is updated through notify property change mechanism.
So far, so good. Problem: whenever List property data changes, template is also recreated. I know this because I have a custom control inside a template, so I see that a constructor is fired twice. First time during InitializeComponent call, and second time when List is populated with data from the service.
Is this normal behavior?
Final conclusion is that template is recreated whenever ItemsSource is assigned a new List