I have writen a small applet in Silverlight and, while it works fine on Windows, it seems that on OSX the data binding part of the application (all those NotifyPropertyChanged calls) do not work. Does anyone know why this is? I’ve tried under both Firefox and Safari with the latest 2.0 download installed.
I have writen a small applet in Silverlight and, while it works fine on
Share
Your usage of the model object instance in Page seemed odd to me right away. It is not downright incorrect but unusual to me. Some experimentation led me to a working solution, albeit without knowing the cause of the error that happened in the first place. Not many people instantiate objects directly in the DataContext assignment, which is probably why this is not a well-known (and fixed!) defect.
Code snippets for the working solution follow.
Page.xaml
Page.xaml.cs
MyModel.cs
Please also include the source code with your question in the future. It would have made this quite a bit simpler.