Metro Nuggets

Bitesized tidbits for building Modern (Metro) apps.

Tag Archives: charms

Running the Dispatcher From the Settings Charm

In my previous post, I talked about how to receive messages from a UDP broadcast, and for the Windows 8 app I’m writing, I wanted the results of this to be shown in the settings charm. But here I ran into a problem, the Dispatcher kept failing with an NullReferenceException on Window.Current and so the results of my broadcast never got shown in the settings page. I asked on twitter, but got no response, so I’ve had to resort to what feels like a bit of a dirty workaround, but there you go.

Read more of this post