Friday, May 10, 2013

Charm Bar Development in Metro Style

Hi Ahmet,


this approach works only if the app's frame is present and accessible in the current context. For example, it can be successully done in the code-behind of a Page or LayoutAwarePage since you can access the Frame property there, whereas it may not work in the App.xaml's code-behind.


However, you should definitly use a flyout in order to present the application's settings. The Callisto toolkit includes a nice control called SettingsFlyout which will be a huge help here - and they are accessible from everywhere in the code.


Example:



var SettingsFlyout = new SettingsFlyout
{
Content = new ImprintFlyout(), //use own user control here
HeaderText = "Imprint",
HeaderBrush = new SolidColorBrush(Color.FromArgb(255,100,200,100))
};

SettingsFlyout.IsOpen = true;

The Guidelines for app settings state that no navigation should be performed when activating an entry point and navigation commands should be placed in the app bar. You should consider this in order to pass the Windows Store certification successfully. The only two appropriate options are:



  1. A flyout appears

  2. Web Browser is opened


I hope it helps.


Kind regards,

Christian


No comments:

Post a Comment