Developing Application in WP7


Published on

On last Saturday, 12th November 2011, I presented 1 hour Technical session on “Windows Phone 7” in Kolkata Developer Conference. The event was organized by Microsoft User Group Kolkata (KolkataGeeks).

Published in: Technology
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • publicenumSupportedPageOrientation { Portrait = 1, Landscape = 2, PortraitOrLandscape = 3, }publicenumPageOrientation { None = 0, Portrait = 1, Landscape = 2, PortraitUp = 5, PortraitDown = 9, LandscapeLeft = 18, LandscapeRight = 34, }
  • Developing Application in WP7

    1. 1. Developer Conference 2011 MICROSOFT USER GROUP KOLKATA
    2. 2. Developing Application in Windows Phone 7 - Kunal Chowdhury
    3. 3. Application Flavors
    4. 4. Phone Application Development ToolsPhone Emulator Windows Phone Samples Documentation device Guides Community Packaging and Verification Tools DemoApp.xap Windows Phone Emulator
    5. 5. Application Deployment Process Submit and Marketplace Validate Certify and Develop Sign
    6. 6. Phone Application Page PhoneApplicationPage is the root of any WP7 XAML page. If you already worked on Silverlight, you must be aware of that by default "UserControl" is the root of any Silverlight XAML page. Similarly, Phone 7 XAML has the root named "PhoneApplicationPage". <phone:PhoneApplicationPage x:Class="HelloWorldDemo.MainPage“ . . . SupportedOrientations="Portrait“ Orientation="Portrait“ shell:SystemTray.IsVisible="True">
    7. 7. Application Bar  Application Bar is a set of icon buttons and/or menu items, which provides easy access to applications most common tasks.  It resides at the bottom of the phone screen.  It can contain a row of 1-4 icon buttons for common tasks, a set of menu items to provide user easy access to the other specific actions.
    8. 8. Application Bar Design Guidelines Use image of White color with Transparent background. Use 48 x 48 pixel icon images. Never draw circle for the icons. Use icons for most commonly used commands. Place only 1 - 4 icon buttons in the panel. Dont place more than 5 menu items in the application bar. Dont add more than 20 characters in the menu items. Data Binding is not supported in Application Bar. Properly use Opacity to overlay the Application Bar. All text items will be converted to lower case while running.
    9. 9. Application Life Cycle (Terms)There are some terminologies available to describe the Application Lifecycle ofa Windows Phone 7. It consists of the following things:  Launch  Running State  Closed State  Deactivated State  Reactivated State
    10. 10. Application Life Cycle ClosedLaunch Running Activated Deactivated
    11. 11. Page State & Application State Page state stores the current state of the page while switching to a different page or application and retrieve it back once you return to the same page. Application State stores and retrieve values in order to access them from different pages across the whole application. Tombstoning saves the current data and then moves the app to the background or closes the app after saving all the data.
    12. 12. Launchers & Choosers Enable applications to provide a set of common phone tasks to users Launchers let you fire and forget  SMS, Email, Dialer, Search etc. Choosers let you fire and pick the results back  Picture, Camera, Contact etc.
    13. 13. Location Services The service obtains location data from multiple sources such as GPS, Wi- Fi, and cellular Applications can access location information Allows you to create location-aware applications
    14. 14. Resources WP7 Tutorial:
    15. 15. Contact Discussion Forum: Email Me: