I am new to wpf and now I have a problem. I have a say model class Customerand I created a DataTemplate with the property TargetTypeset to Customer. It works well. But actually, I want two different templates, as one, to simply display the record, and the other to edit in place. Is it possible to specify two different patterns for the same data type based on some creters? And I want to switch this template based on some property in the ViewModel, for example, when IsEditmode- True.
Or am I doing it wrong? Should I use styles instead?
Mat j source
share