Can you change the style of an object based on a property within the object in WPF?

Posted by Harry on Stack Overflow See other posts from Stack Overflow or by Harry
Published on 2010-06-06T14:50:36Z Indexed on 2010/06/06 15:02 UTC
Read the original article Hit count: 135

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET