Main Site Documentation

Property change notification


#1

Guys,

In order to avoid updating my LCD every x secs, I was looking into property change notification.
I looked at http://msdn.microsoft.com/en-us/library/ms743695.aspx but the NetMF doesn’t have INotifyPropertyChanged

Can someone point me to an alternative or maybe provide a small code example.

Thanks in advance


#2

What LCD are we talking about here? I added some bits to the 128x64 LCD driver to keep track of what changes were made and only update the ‘dirty’ parts of the screen. There is a tradeoff though as redrawing several small areas often took longer than on larger area. For the small LCD the minimum that i repainted was one row (8x128 pixels).


#3

Look at publish/subscribe design pattern. There are a lot of examples on how to implement it. You can also use Reflector to see how INotifyPropertyChanged is done in WPF.