4. Theming Enables user to personalize their phone Dark and light themes, each with several accent colors Built-in controls are automatically themed Applications can take advantage of theme values 4
5. Tasks - Launchers and Choosers Launcher Launches one of the built-in applications through which a user completes a task No data is returned to calling application Example: PhoneCallTask Chooser Launches one of the built-in applications through which a user completes a task, and which returns some data to calling application When caller completes, calling application is activated and supplied with the Chooser result Example: PhotoChooserTask 5
7. UI and State Management: Concepts Page UI Describes the visual appearance of a page Retained in shell frame to support resuming paused sessions Discarded while the session is paused Page State Contains data that describes an instance of a page, analogous to browser cookie
8. App Lifecycle - Tombstoning Happens when your application loses focus Start Button Task started Incoming phone call Application can be resumed User will be returned to most recent page 8
9. App Lifecycle - Coding Save & restore page state OnNavigatedTo and OnNavigatedFrom event Save & restore application state Application_Launching, Application_Activated, Application_Deactivated, Application_Closing Found in app.xaml.cs 9
10. Storage Isolated Storage Settings and custom data Secure and sandboxed Logical folder structure via APIs No quota currently Be responsible and inform/empower user Session State PhoneApplicationService.Current.State Goes away on app closing 10
11. AppBar Up to 4 icons 48 x 48 pixels Black/white versions Can set transparency level Slide up Menu can display more items Can declare in code or XAML Found under Program Filesicrosoft SDKsindows Phone7.0cons 11