tags:

views:

38

answers:

2

I have a class for message, and the objects are being displayed in a ListBox and there's a property for the message based on whether it's sent to or from the user. Is there a way to create two different styles and change them depending on this property?

A: 

You should create a DataTemplate for the type of the item you're displaying. In that DataTemplate, you use a DataTrigger to control how the item varies in appearance depending upon a property of the object.

Drew Noakes
A: 

Yes. use dynamic resource link text

tsinik