5. Task Programming Model
• Task
– new Task().Show()
– Task.Show()
• Choosers
– Chooser :
ChooserBase<TaskEventArgs>
– event Completed
6. Tasks
• EmailComposeTask
Use this to allow users to send email from your application
• MarketplaceLauncher
Allows an application to launch the Marketplace application
• MediaPlayerLauncher
Allows an application to launch the media player
• PhoneCallTask
Allows an application to launch the Phone application; use this to allow
users to make a phone call from your application
• SearchTask
Allows an application to launch the Web Search application
• SmsComposeTask
Allows and application to launch the SMS application
• WebBrowserTask
Allows an application to launch the Web Browser application
9. Performance Tricks
• JPEG vs. PNG
• Content vs. Resource
• Assembly Loading
• LayoutUpdated vs. ctor
• Use SplashSxcreenImage.jpg
• Animations in CompositorThread
10. Frame Rate Counters
•Compositor Thread Rate (30<x<=60)
•UI Thread Rate (> 20)
•Memory Usage for Textures
•Number of Surfaces
•Number of Implicit Surfaces
•Fill Rate Counter (1=480x500)
11. • Application Life Cycle
Launching, Closing, Activated, Deactivated
• Navigation
1.Uri="/JUMP1/{num}"
MappedUri="/Page1.xaml?id={num}"
2. <HyperlinkButton NavigateUri="/JUMP1/1/>
3. NavigationService.Navigate(new Uri("/Page1.xaml?id=1",
UriKind.Relative)
5. NavigationContext.QueryString["id"]
• Task Programming Model
Choosers, Launchers
• InputScope
How and when
• Performance Tricks
Use JPEG, use Content build action, change Splash, control memory by
using of External Content,…
Recap & Q&A
12. Resources:
• Windows Phone Training Kit
http://www.microsoft.com/downloads/en/details.aspx?
FamilyID=ca23285f-bab8-47fa-b364-11553e076a9a
• Damir’s blog
http://developers.de/blogs/damir_dobric/default.aspx
Contact:
• My Blog
http://ronua.ro/CS/blogs/catalin/default.aspx
• My Mail
catalin.gheorghiu@ronua.ro