Hi. I would have to declare myself a WPF hobbyist, as my company does not do Silverlight or WPF (just ASP.Net).
However, I love it and have written a WPF time tracking app using the MVVM pattern.
I have a question. Because I'm using Observable Object, basically, every property is implementing INotifyPropertyChanged, which really "brings the application to life".
The bad aspect of that is that I had a method with a database call being hit around 6 times, causing a 10s delay between changing views.
By using a simple bool which checks whether that method has been called or not alreeady, I was able to reduce the number of accesses to 1 and the time to the normal 1s.
It feels like a bit of a hack. So my question is - Is this a hack? Is there a best practice which
handles this scenario.
View Complete Post