Having to work in C++/Cx, every day I have new appreciation for C#. Things that I take for granted in C#, well, they are not straightforward C++. Take the example of event handlers. In C#, the usual way of registering and unregistering event handlers is pretty straight forward: e.g. Click += Button_click_handler and Click -= […]
Monthly Archives: March 2014
Getting access to the UI dispatcher from a background thread (Win8/8.1)
I recently struggled quite a bit trying to get access to the UI dispatcher from a background thread. I had a scenario where when I receive a push notification, I had to update the XAML page UI. Obviously, I did not have access to the UI thread from the background thread so I binged quite […]