ObservableObject

Jun 8, 2012 at 11:01 AM

Hi Geert,

would it be possible to introduce a bool InvokeOnUIThread to raise the property changing/changed events on the UI Thread instead the current thread?

Thanks!

Jun 9, 2012 at 9:56 AM

This will be hard because the ObservableObject is located in Catel.Core (so this can be used in server and web projects as well), and the dispatcher service is located in Catel.MVVM.

Are you interested in the VM that invokes the NPC event or do the models invoke the event?

Jun 9, 2012 at 1:40 PM

Currently i use some singletons derived from ObservableObject to make them bindable. These singletons can be changed from other threads so the NPC events should be always raised on the UI thread... This was my intention with InvokeOnUIThread....

Jun 12, 2012 at 9:04 AM

You bind directly to these singletons, or is there a VM in-between?

Jun 12, 2012 at 2:09 PM

i bind directly to these singletons....

Jun 12, 2012 at 7:15 PM

The only thing I see now is to catch the property change stuff and call the base in a different thread. What do you think of a DispatcherObservableObject (just like DispatcherTimer)?

Jun 13, 2012 at 9:13 AM

yeah, would be cool! thanks!

Jun 13, 2012 at 6:33 PM

Feature implemented, new beta released.