views:

70

answers:

1

Greetings, I'm developing my application in WPF. My users are of different types: Client and SUpplier. I would like to display some information - different for each user. I have a Property called called OperatorType which is OperatorTypeKind enum. How can i create different DataTemplates in xaml for Client and Supplier

+1  A: 

You're looking for a DataTemplateSelector take a look at the Data Templating Overview for how to use it.

Bryan Anderson