First of all create a new UserControl named “About.xaml”. You can do it by following the steps Project—> Add New Item —-> UserControl—-> Name it About.xaml
tag of About.xaml, write the following code for your app <Grid> <StackPanel> <TextBlock Text="App Name" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="26.667" /> <TextBlock Text="Version-1.0.0.0" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="18" /> </StackPanel> </Grid>
to App.xaml.cs file. Add the following namespaces using Windows.UI.ApplicationSettings; using Callisto.Controls; using Windows.UI; using Windows.UI.Popups; using Windows.System;
Add the following field to the App class. private Color _background = Color.FromArgb(255, 0, 77, 96); Now, Add the following statements to the OnLaunched method SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested; Now, Add the following event handler to App.xaml.cs void OnCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) { // Add an About command var about = new SettingsCommand("about", "About", (handler) => { var settings = new SettingsFlyout(); settings.Content = new About(); settings.HeaderBrush = new SolidColorBrush(_background); settings.Background = new SolidColorBrush(_background); settings.HeaderText = "About"; settings.IsOpen = true; }); args.Request.ApplicationCommands.Add(about); // Adding a Privacy Policy var privacy = new SettingsCommand(“privacypolicy”, “Privacy Policy”, OpenPrivacyPolicy); args.Request.ApplicationCommands.Add(privacy); } Now add the OpenPrivacyPolicy method: private async void OpenPrivacyPolicy(IUICommand command) { Uri uri = new Uri(“http://Add A Link for your Privacy policy”); await Launcher.LaunchUriAsync(uri); }
the largest developer opportunity ever! Understood the Architecture of a Windows 8 project Accessing App’s “Windows Store Data” Added App Assets Called App Assets from Data Source Privacy Policy Windows 8 Camp in a Box