Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Windows 8

Windows 8

In this Presentation you'll learn about the new features in windows 8 and what are the technical concepts of Windows 8 development

Avatar for amrabulnaga

amrabulnaga

December 21, 2012
Tweet

More Decks by amrabulnaga

Other Decks in Programming

Transcript

  1. Agenda Introduction Technical Concepts Developing a real Windows 8 App

    What’s Next ? A Surprise ! Brain Storming “Content Apps” Conclusion
  2. Demo Explore Architecture of a Windows 8 project Redefine App

    “Windows Store Data” Add App Assets Call App Assets from Data Source Customize App UI
  3. What’s Next ? – Windows Store Microsoft Windows Store Guidelines

    - Windows 8 app certification requirements http://msdn.microsoft.com/en-US/library/windows/apps/hh694083 - Resolving certification errors http://msdn.microsoft.com/en-us/library/windows/apps/hh921583.aspx
  4. Privacy Policy ?! Privacy policy is a statement or a

    legal document (privacy law) that discloses some or all of the ways a party gathers, uses, discloses and manages a customer or client's data.
  5. Adding “About” and “Privacy Policy” for your application. Pre-requisites: Callisto

    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
  6. Adding “About” and “Privacy Policy” for your application. In Grid

    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>
  7. Adding “About” and “Privacy Policy” for your application. Now go

    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;
  8. Adding “About” and “Privacy Policy” for your application. Now ,

    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); }
  9. What’s Next ? – Extra Features Accelerometer sensor - App

    tiles - Background task - Toast notifications - media playback - Search contract - Trial app and in-app purchase - Snapping - Secondary tiles - Sharing content source - Sharing content target - Responding to the appearance of the on-screen keyboard - Removable Storage - Push and periodic notifications client-side & many more …
  10. Conclusion – What we learned ? Why Windows 8 is

    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