Wpf: PropertyChanged control?

Wpf: PropertyChanged control?

Old forum URL: forums.lhotka.net/forums/t/5792.aspx


ajj3085 posted on Wednesday, November 12, 2008

Hi,

I have a particular field on a Wpf window that can't be changed by the user, but calling a method on the BO may cause the property value to change.  I have a timer that calls that method periodically.  All is working well..

What I'm now trying to figure out is this.. how can I draw attention to the fact that the field changed?  Perhaps have the TextBox's background "pulse" yellow?  Is this something I can do with an event trigger and animation? 

Thanks
Andy

vdhant replied on Wednesday, November 12, 2008

Couldn't you hook into the PropertyChanged for that field. In the code behind just wire up an listener to the PropertyChanged event for that property...
Cheers
Anthony

ajj3085 replied on Thursday, November 13, 2008

I setup an event trigger on the control, but that does the animation when the form initially loads as well.  So yes, my next step is to hook into the property changed on the BO.  I'm trying to find a pure Xaml way of doing this though.. :-)

Copyright (c) Marimer LLC