myHealth - Rudi Grobler

Browse by Tags

All Tags » myHealth (RSS)

"Serialize" a DependencyObject

In my previous post , I mentioned that my biggest gripe with deriving from DependencyObject is that it is not serializable! I stand corrected (Well, almost). This is the code I tried initially BinaryFormatter serializer = new BinaryFormatter (); serializer.Serialize(stream, Assesments); And here is my exception Type 'MyHealth.Model.AssesmentCollection' in Assembly 'MyHealth, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' is not marked as serializable. To solve this problem...

myHealth

I recently had a friend of mine (who is a professional bodybuilder), ask me to write him a simple application with which he can track his training progress? Here is some of the things I learned while writing myHealth INotifyPropertyChanged vs DependencyObject The PropertyGrid I used unfortunately only work with dependency properties (DependencyObject) so I had to choose them! My personal preference would have been the lighter weight INotifyPropertyChanged. Here are the pro's and con's of...
Posted by rudi | 11 comment(s)
Filed under: , ,