SlideShare a Scribd company logo
1 of 33
Download to read offline
Developing WP7 Appswith Silverlight José Luis Latorre Microsoft MVP, UX Specialist & Brainsiders CEO http://silverlightguy.com
Generalni sponzori: Organizatori: Glavni sponzori: Generalni medijski sponzor: Sponzori: Medijski sponzori: Strateški partneri: Službena PR agencija:
Application Framework details Windows Phone Frameworks Camera Device Integration Launchers & Choosers Windows Phone Controls PhoneApplicationPage PushNotification WebBrowserControl Sensors PhoneApplicationFrame Silverlight Presentation and Media XNA Frameworks for Games Controls Drawing IsolatedStorage Drawing GamerServices Navigation Shapes Markup Media Audio Media Graphics Content Input Application Object Common Base Class Library Diagnostics Reflection IO Runtime Resources Globalization Text Location Net Collections ComponentModel Configuration Security Threading ServiceModel Linq
Whatis Silverlight? Powerful Development Platform Engaging, Interactive User Experiences
Silverlighcapabilities Data Inputs ,[object Object]
LINQ to XML
XML
IsolatedStorage
Keyboard
Mouse
Touch
InkBase Class Library (BCL) XAML ,[object Object]
Collections
Cryptography
ThreadingUI Core ,[object Object]
Animation
Text
ImagesWindows Communication Foundation Media ,[object Object]
RSS/ATOM
SOAP
Digital media capture & playback
VC1, WMA, MP3,[object Object]
Whatmakes Silverlight so Special? M X A L eXtensible Application Markup Language XML Declarative Markup <Grid> <TextBlockFontSize="48" Text="Hello world" /> </Grid>
Whatmakes Silverlight so Special? Code XAML XAML maps to code Anything in XAML can be done in code
SilverligthAppModel - What’s a XAP? myapp.xap Tools Common format for all Windows Phone apps & games Declarative, manifest-based installation Integrated into security model of phone
Anoverview of a Silverlight appfor WP7
Windows Phone application Application Frame Page 3 Page 1 Page 2
Silverlight Controls Conformingto Metro DesignGuidelines. Consistent Look & Feel. Familiar toexisting Silverlight developers. TheyadapttothecurrentTheme.
Output
Media Media support H/W decode MediaStreamSource PlayReady DRM XNA framework sound effect API Supportspolyphony and looping MediaElement Only supports one MediaElement for page VideoBrush is not supported
XNA for Windows Phone 7 Using XNA audio capabilitiesisneeded UsingnamespaceMicrosoft.Xna.Framework.Audio TogetherwithSoundEffect and SoundEffectInstance AddingtheWavsoundfile as a contentelementtotheproject. // Audio SoundEffectsoundEffect;  string soundName = "kaboom";  // Loading and playing audio soundEffect = contentManager.Load<SoundEffect>(soundName); soundEffect.Play();

More Related Content

Viewers also liked

The ant and the corporation - 2nd Edition
The ant and the corporation - 2nd EditionThe ant and the corporation - 2nd Edition
The ant and the corporation - 2nd EditionFrances Kazan
 
Hawai'i Workshop
Hawai'i WorkshopHawai'i Workshop
Hawai'i WorkshopLen Edgerly
 
Úkranía Janus
Úkranía JanusÚkranía Janus
Úkranía Janusjanusg
 
Свой среди чужих
Свой среди чужихСвой среди чужих
Свой среди чужихGrigoriy Pechenkin
 
A vilag het_termeszeti_csodaja
A vilag het_termeszeti_csodajaA vilag het_termeszeti_csodaja
A vilag het_termeszeti_csodajabara1
 
Ground Water Surface Water Interaction
Ground Water Surface Water InteractionGround Water Surface Water Interaction
Ground Water Surface Water InteractionJan Gregersen
 
Future World Giving - Recognising the potential of middle class giving
Future World Giving - Recognising  the potential of middle class givingFuture World Giving - Recognising  the potential of middle class giving
Future World Giving - Recognising the potential of middle class givingIDIS
 
Edf Ht 42 01 016 A Programme Mecazir RéSultats Des Essais D
Edf Ht 42 01 016 A  Programme Mecazir RéSultats Des Essais DEdf Ht 42 01 016 A  Programme Mecazir RéSultats Des Essais D
Edf Ht 42 01 016 A Programme Mecazir RéSultats Des Essais Dguestc31bf2d
 
Asociatividad globalizacion
Asociatividad globalizacionAsociatividad globalizacion
Asociatividad globalizacionsmpchiclayo
 
Персональные риски аналитика
Персональные риски аналитикаПерсональные риски аналитика
Персональные риски аналитикаGrigoriy Pechenkin
 
Qliktechcorporateoverview
QliktechcorporateoverviewQliktechcorporateoverview
Qliktechcorporateoverviewivango1
 
Colongate E
Colongate EColongate E
Colongate Ellarboix
 

Viewers also liked (20)

The ant and the corporation - 2nd Edition
The ant and the corporation - 2nd EditionThe ant and the corporation - 2nd Edition
The ant and the corporation - 2nd Edition
 
Hawai'i Workshop
Hawai'i WorkshopHawai'i Workshop
Hawai'i Workshop
 
Welcome to an asynchronous world 1.29s
Welcome to an asynchronous world 1.29sWelcome to an asynchronous world 1.29s
Welcome to an asynchronous world 1.29s
 
Lokacii
LokaciiLokacii
Lokacii
 
Úkranía Janus
Úkranía JanusÚkranía Janus
Úkranía Janus
 
Свой среди чужих
Свой среди чужихСвой среди чужих
Свой среди чужих
 
A vilag het_termeszeti_csodaja
A vilag het_termeszeti_csodajaA vilag het_termeszeti_csodaja
A vilag het_termeszeti_csodaja
 
Ground Water Surface Water Interaction
Ground Water Surface Water InteractionGround Water Surface Water Interaction
Ground Water Surface Water Interaction
 
Base New Berlin
Base New BerlinBase New Berlin
Base New Berlin
 
Future World Giving - Recognising the potential of middle class giving
Future World Giving - Recognising  the potential of middle class givingFuture World Giving - Recognising  the potential of middle class giving
Future World Giving - Recognising the potential of middle class giving
 
Bezugly
BezuglyBezugly
Bezugly
 
Edf Ht 42 01 016 A Programme Mecazir RéSultats Des Essais D
Edf Ht 42 01 016 A  Programme Mecazir RéSultats Des Essais DEdf Ht 42 01 016 A  Programme Mecazir RéSultats Des Essais D
Edf Ht 42 01 016 A Programme Mecazir RéSultats Des Essais D
 
Formación sociocultural ii intro
Formación sociocultural ii introFormación sociocultural ii intro
Formación sociocultural ii intro
 
Dubrovsky
DubrovskyDubrovsky
Dubrovsky
 
Asociatividad globalizacion
Asociatividad globalizacionAsociatividad globalizacion
Asociatividad globalizacion
 
Персональные риски аналитика
Персональные риски аналитикаПерсональные риски аналитика
Персональные риски аналитика
 
Qliktechcorporateoverview
QliktechcorporateoverviewQliktechcorporateoverview
Qliktechcorporateoverview
 
Back to the future
Back to the futureBack to the future
Back to the future
 
Gallery
GalleryGallery
Gallery
 
Colongate E
Colongate EColongate E
Colongate E
 

Similar to Md2010 jl-wp7-sl-dev

SLUGUK BUILD Round-up
SLUGUK BUILD Round-upSLUGUK BUILD Round-up
SLUGUK BUILD Round-upDerek Lakin
 
Windows Phone 7 and Silverlight
Windows Phone 7 and SilverlightWindows Phone 7 and Silverlight
Windows Phone 7 and SilverlightGlen Gordon
 
Wp7 geek night intro developers - saschac
Wp7 geek night   intro developers - saschacWp7 geek night   intro developers - saschac
Wp7 geek night intro developers - saschacAberla
 
Create The Internet of Your Things example of a real system - Laurent Ellerbach
Create The Internet of Your Things example of a real system - Laurent EllerbachCreate The Internet of Your Things example of a real system - Laurent Ellerbach
Create The Internet of Your Things example of a real system - Laurent EllerbachITCamp
 
Windows phone7 By Subodh
Windows phone7 By Subodh Windows phone7 By Subodh
Windows phone7 By Subodh Prashant Singh
 
A lap around mango
A lap around mangoA lap around mango
A lap around mangoAndy Chiang
 
Windows Phone 7 Architecture Overview
Windows Phone 7 Architecture OverviewWindows Phone 7 Architecture Overview
Windows Phone 7 Architecture OverviewBhavya Siddappa
 
Developing Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelDeveloping Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelSpiffy
 
Introduction to WSO2 Data Analytics Platform
Introduction to  WSO2 Data Analytics PlatformIntroduction to  WSO2 Data Analytics Platform
Introduction to WSO2 Data Analytics PlatformSrinath Perera
 
Windows Phone Development
Windows Phone DevelopmentWindows Phone Development
Windows Phone DevelopmentPuja Pramudya
 
Mix 2010 twilight
Mix 2010 twilightMix 2010 twilight
Mix 2010 twilightIntergen
 
DODN2009 - Jump Start Silverlight
DODN2009 - Jump Start SilverlightDODN2009 - Jump Start Silverlight
DODN2009 - Jump Start SilverlightClint Edmonson
 
Windows Presentation Foundation
Windows Presentation FoundationWindows Presentation Foundation
Windows Presentation FoundationTran Ngoc Son
 
What is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays FinlandWhat is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays FinlandMaarten Balliauw
 
Runtime 8 and Windows Phone 8
Runtime 8 and Windows Phone 8Runtime 8 and Windows Phone 8
Runtime 8 and Windows Phone 8Damir Dobric
 
FreezePro Software Company Presentation: Software Development, Mobile apps
FreezePro Software Company Presentation: Software Development, Mobile apps FreezePro Software Company Presentation: Software Development, Mobile apps
FreezePro Software Company Presentation: Software Development, Mobile apps Oleh Mykhaylovych
 
Windows Phone 7: Silverlight
Windows Phone 7: SilverlightWindows Phone 7: Silverlight
Windows Phone 7: SilverlightRishu Mehra
 
Introducing Windows Phone 7 Development
Introducing Windows Phone 7 DevelopmentIntroducing Windows Phone 7 Development
Introducing Windows Phone 7 DevelopmentMatt Lacey
 

Similar to Md2010 jl-wp7-sl-dev (20)

SLUGUK BUILD Round-up
SLUGUK BUILD Round-upSLUGUK BUILD Round-up
SLUGUK BUILD Round-up
 
Windows Phone 7 and Silverlight
Windows Phone 7 and SilverlightWindows Phone 7 and Silverlight
Windows Phone 7 and Silverlight
 
Wp7 geek night intro developers - saschac
Wp7 geek night   intro developers - saschacWp7 geek night   intro developers - saschac
Wp7 geek night intro developers - saschac
 
Create The Internet of Your Things example of a real system - Laurent Ellerbach
Create The Internet of Your Things example of a real system - Laurent EllerbachCreate The Internet of Your Things example of a real system - Laurent Ellerbach
Create The Internet of Your Things example of a real system - Laurent Ellerbach
 
Silverlight Training
Silverlight TrainingSilverlight Training
Silverlight Training
 
Windows phone7 By Subodh
Windows phone7 By Subodh Windows phone7 By Subodh
Windows phone7 By Subodh
 
A lap around mango
A lap around mangoA lap around mango
A lap around mango
 
Windows Phone 7 Architecture Overview
Windows Phone 7 Architecture OverviewWindows Phone 7 Architecture Overview
Windows Phone 7 Architecture Overview
 
Silverlight
SilverlightSilverlight
Silverlight
 
Developing Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris IsmaelDeveloping Applications for Windows Phone 7 - Chris Ismael
Developing Applications for Windows Phone 7 - Chris Ismael
 
Introduction to WSO2 Data Analytics Platform
Introduction to  WSO2 Data Analytics PlatformIntroduction to  WSO2 Data Analytics Platform
Introduction to WSO2 Data Analytics Platform
 
Windows Phone Development
Windows Phone DevelopmentWindows Phone Development
Windows Phone Development
 
Mix 2010 twilight
Mix 2010 twilightMix 2010 twilight
Mix 2010 twilight
 
DODN2009 - Jump Start Silverlight
DODN2009 - Jump Start SilverlightDODN2009 - Jump Start Silverlight
DODN2009 - Jump Start Silverlight
 
Windows Presentation Foundation
Windows Presentation FoundationWindows Presentation Foundation
Windows Presentation Foundation
 
What is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays FinlandWhat is going on - Application diagnostics on Azure - TechDays Finland
What is going on - Application diagnostics on Azure - TechDays Finland
 
Runtime 8 and Windows Phone 8
Runtime 8 and Windows Phone 8Runtime 8 and Windows Phone 8
Runtime 8 and Windows Phone 8
 
FreezePro Software Company Presentation: Software Development, Mobile apps
FreezePro Software Company Presentation: Software Development, Mobile apps FreezePro Software Company Presentation: Software Development, Mobile apps
FreezePro Software Company Presentation: Software Development, Mobile apps
 
Windows Phone 7: Silverlight
Windows Phone 7: SilverlightWindows Phone 7: Silverlight
Windows Phone 7: Silverlight
 
Introducing Windows Phone 7 Development
Introducing Windows Phone 7 DevelopmentIntroducing Windows Phone 7 Development
Introducing Windows Phone 7 Development
 

Md2010 jl-wp7-sl-dev

  • 1.
  • 2. Developing WP7 Appswith Silverlight José Luis Latorre Microsoft MVP, UX Specialist & Brainsiders CEO http://silverlightguy.com
  • 3.
  • 4. Generalni sponzori: Organizatori: Glavni sponzori: Generalni medijski sponzor: Sponzori: Medijski sponzori: Strateški partneri: Službena PR agencija:
  • 5. Application Framework details Windows Phone Frameworks Camera Device Integration Launchers & Choosers Windows Phone Controls PhoneApplicationPage PushNotification WebBrowserControl Sensors PhoneApplicationFrame Silverlight Presentation and Media XNA Frameworks for Games Controls Drawing IsolatedStorage Drawing GamerServices Navigation Shapes Markup Media Audio Media Graphics Content Input Application Object Common Base Class Library Diagnostics Reflection IO Runtime Resources Globalization Text Location Net Collections ComponentModel Configuration Security Threading ServiceModel Linq
  • 6. Whatis Silverlight? Powerful Development Platform Engaging, Interactive User Experiences
  • 7.
  • 9. XML
  • 12. Mouse
  • 13. Touch
  • 14.
  • 17.
  • 19. Text
  • 20.
  • 22. SOAP
  • 24.
  • 25. Whatmakes Silverlight so Special? M X A L eXtensible Application Markup Language XML Declarative Markup <Grid> <TextBlockFontSize="48" Text="Hello world" /> </Grid>
  • 26. Whatmakes Silverlight so Special? Code XAML XAML maps to code Anything in XAML can be done in code
  • 27. SilverligthAppModel - What’s a XAP? myapp.xap Tools Common format for all Windows Phone apps & games Declarative, manifest-based installation Integrated into security model of phone
  • 28. Anoverview of a Silverlight appfor WP7
  • 29. Windows Phone application Application Frame Page 3 Page 1 Page 2
  • 30. Silverlight Controls Conformingto Metro DesignGuidelines. Consistent Look & Feel. Familiar toexisting Silverlight developers. TheyadapttothecurrentTheme.
  • 32. Media Media support H/W decode MediaStreamSource PlayReady DRM XNA framework sound effect API Supportspolyphony and looping MediaElement Only supports one MediaElement for page VideoBrush is not supported
  • 33. XNA for Windows Phone 7 Using XNA audio capabilitiesisneeded UsingnamespaceMicrosoft.Xna.Framework.Audio TogetherwithSoundEffect and SoundEffectInstance AddingtheWavsoundfile as a contentelementtotheproject. // Audio SoundEffectsoundEffect; string soundName = "kaboom"; // Loading and playing audio soundEffect = contentManager.Load<SoundEffect>(soundName); soundEffect.Play();
  • 34. Vibration Makesthephonevibrateduring a specificduration Useful for giving a tactile response totheuser. Tonotifyusers of anupdate. VibrateControllervc = VibrateController.Default; vc.Start(TimeSpan.FromSeconds(3)); Microsoft.Devices.Sensors
  • 35. Input
  • 36. SIP I SIP Stands for Software Input Panel. TheTextBox Silverlight control integrateswith SIP SIP supportsaround 60 differentInputScopes:
  • 37. SIP II SIP can bepersonalizedwithseveralversions of thekeyboardthattheuser can selectbetween. Buttheapplication can also show theoptimumkeyboard. We use InputScopeto do that, for example: <TextBoxGrid.Row="1" Name="tbNombre" Text=""> <TextBox.InputScope> <InputScope> <InputScopeNameNameValue="PersonalGivenName"></InputScopeName> </InputScope> </TextBox.InputScope> </TextBox>
  • 38. A Silverlight “Hello World” for WP7 (link to demo)
  • 39. Accelerometer Measures force applied on each axis over time. +Y -Z -X +X +Z -Y
  • 40. Accelerometer I Getting data fromtheAccelerometer Add a refferencetoMicrosoft.Devices.Sensors Addthecorrespondingusing Declare the variable AccelerometerSensor Getaninstance of theAccelerometerSensor +Y usingMicrosoft.Devices.Sensors; -Z AccelerometerSensoraccelerometer; -X +X if (accelerometer == null) { sensor accelerometer = new AccelerometerSensor(); } +Z -Y
  • 41. Accelerometer II +Y Getting data fromtheAccelerometer Suscribe totheeventReadingChanged Createtheeventhandler Initializetheaccelerometer accelSensor.ReadingChanged += new EventHandler<AccelerometerReadingAsyncEventArgs>(AccelerometerReadingChanged); -Z publicvoidAccelerometerReadingChanged(objectsender, AccelerometerReadingAsyncEventArgs e) { accelReading.X = (float)e.Value.Value.X; accelReading.Y = (float)e.Value.Value.Y; accelReading.Z = (float)e.Value.Value.Z; } -X +X +Z -Y Accelsensor.Start();
  • 43. ApplicationBar & ContextMenu The «Application Bar» is a control systemthatprovides a quickaddition of a tool bar for our WP7 application. ApartfromtheApplication Bar, applications can provideadditionaloptionslikeshowingoneor more menuelements. Microsoft.Phone.Shell
  • 44. ApplicationBar & ContextMenu By default wehave a sample XAML Code for quicklyenablingthisfeaturesonourapplications: <phone:PhoneApplicationPage.ApplicationBar> <shell:ApplicationBarIsVisible="True" IsMenuEnabled="True"> <shell:ApplicationBarIconButtonIconUri=“/appbar_button1.png" Text="Button 1"/> <shell:ApplicationBarIconButtonIconUri=“/appbar_button2.png" Text="Button 2"/> <shell:ApplicationBar.MenuItems> <shell:ApplicationBarMenuItemText="MenuItem 1"/> <shell:ApplicationBarMenuItemText="MenuItem 2"/> </shell:ApplicationBar.MenuItems> </shell:ApplicationBar> </phone:PhoneApplicationPage.ApplicationBar>
  • 45. Navigation: Frame and Page Frame Isthetopmostcontainer control. PhoneApplicationFrameclass. Containsthe page control and sytsemelements, likeSystemTray, app bar, etc.. Page Fillstheentirecontentregion of theFrame. Derives fromtheclassPhoneApplicationPage. Contains a title. Can haveitsownapplication bar.
  • 46. Orientation In VS2010 we can add a Landscape Page or a Portrait Page. TheonlydifferenceisonthepropertySupportedOrientationwhich can be: Portrait Landscape PortraitOrLandscape Wecan’tchangethe page orientation in code. Butwe can reacttoitschangesthroughtheOrientationChangedevent.
  • 48.