Turns out that WinRT’s ability to save settings throws an exception when you try to store an enumeration value. MSDN says on the page “Accessing app data with the Windows Runtime” that only “Runtime Data Types” are supported.
So, how do you save an enum?
That’s a really strange behavior. But easy to solve.
First you need some type of parse routine like this:
Note: the default value of an ENUM is always its 0 value member.
Then you can interact with it like this:
Basically, we’re just transforming it to a string.