Arlodotexe / OwlCore

Have you ever seen an Owl do a barrel roll? Me neither. Essential supplemental tooling for .NET development.
MIT License
24 stars 3 forks source link

AbstractUI view models should not use Threading.OnPrimaryThread #1

Closed yoshiask closed 2 years ago

yoshiask commented 2 years ago

The AbstractUI view models use Threading.OnPrimaryThread, which requires user setup, namely calling Threading.SetPrimarySynchronizationContext and Threading.SetPrimaryThreadInvokeHandler. View models should work as-is, without any setup. The current requirements are a little obtuse, and it personally took me a while to figure out why my property bindings weren't working, because OnPrimaryThread was failing silently.