timheuer / callisto

A control toolkit for Windows 8 XAML applications. Contains some UI controls to make it easier to create Windows UI style apps for the Windows Store in accordance with Windows UI guidelines.
http://timheuer.com/blog/archive/2012/05/31/introducing-callisto-a-xaml-toolkit-for-metro-apps.aspx
Other
338 stars 108 forks source link

Settings Management #102

Closed scottdorman closed 12 years ago

scottdorman commented 12 years ago

Provided a simpler way to add settings to an app. To add settings, you can now use:

AppSettings.Current.AddCommand("Options"); AppSettings.Current.AddCommand("About", SettingsFlyout.SettingsFlyoutWidth.Wide);

The AppSettings class is effectively a singleton wrapper that manages creating and configuring the SettingsFlyout appropriately and also handles the CommandsRequested event. This means the developer only has to worry about creating the UserControl which represents the actual content of the SettingsFlyout and adding it to their app by just a single line of code (as shown above).