Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Publicité
Chargement dans…3
×

Consultez-les par la suite

1 sur 38 Publicité

Plus De Contenu Connexe

Diaporamas pour vous (20)

Publicité

Similaire à Windows 7 mobile (20)

Plus récents (20)

Publicité

Windows 7 mobile

  1. 1. Pablo Alejandre del Rio<br />Jeremy Cripps<br />Dan Evett<br />a developer guide<br />introducingWindows 7 Mobile<br />
  2. 2. What we are covering today:<br />1<br />3<br />2<br />Introduction to W7<br />XNA Demonstration<br />Silverlight & Demo<br />A great introduction to Window 7 Mobile<br />
  3. 3. Introduction to Windows 7 Mobile<br />Jeremy Cripps<br />1<br />
  4. 4. <ul><li>Successor to the flagging Windows Mobile OS
  5. 5. Launched in Autumn 2010
  6. 6. Microsoft opted to aim the new operating system at the consumer market instead of the enterprise sector.
  7. 7. User Interface Completely re-designed with a clean looking Metro Design Language
  8. 8. Feature set limited at release, but has been extended by Mango release.</li></ul>WikiIntroduction<br />(Wiki,2011) <br />
  9. 9. <ul><li>The Interface was dated, and was based on Windows Computers (but without all the functionality)
  10. 10. Competitors such as the iPhone OS released many large updates in the time Windows took for the small transition from Mobile 6.0 to 6.5
  11. 11. Not Touchscreen enabled
  12. 12. Slow Browser</li></ul>Windows Mobile Criticisms<br />
  13. 13. Metro UI<br />Samsung <br />Taylor<br />
  14. 14. <ul><li>Application multitasking for background processing, audio and file transfer, and fast application switching.
  15. 15. Deeper phone integration so apps can, for example, take better advantage of the versatility of Live Tiles (home screen tiles)
  16. 16. Access to the camera and Motion Sensor library so developers can build apps that incorporate device hardware and build augmented reality experiences
  17. 17. Custom Ringtones </li></ul>Mango! Windows Phone 7.5<br />
  18. 18. <ul><li>The App store for Windows phone.
  19. 19. ~£63 per year for Membership to AppHub</li></ul>Windows Marketplace<br />(Msdnb,2011) <br />
  20. 20. Windows Marketplace App Restrictions<br />Pillars<br />Applications are reliable. <br />Applications make efficient use of resources.<br />Applications do not interfere with the phone functionality.<br />Applications are free of malicious software.<br />The maximum size of the XAP package file is 225 MB. <br />An application must not exceed 90 MB of RAM usage, except on devices that have more than 256 MB of memory. <br />The application must render the first screen within 5 seconds after launch, and must be responsive to user inputafter 20 seconds.<br />The application must not call any APIs in the Microsoft.Xna.Framework.Game assembly or the Microsoft.Xna.Framework.Graphics assembly when using any methods from the System.Windows.Controls namespace.<br />The application must run on any Windows Phone device, regardless of model, screen size, keyboard hardware, and manufacturer.<br />
  21. 21. <ul><li>Development Experience is very similar to .net
  22. 22. Visual Studio can be used to program apps
  23. 23. Integrated emulator for Windows Phone
  24. 24. Silverlight and XNA are available to use.
  25. 25. XAML Views with C# or VB.net for logic</li></ul>Developing for Windows Phone<br />
  26. 26. <ul><li>Powered by .NET Compact Framework with most* namespaces intact
  27. 27. Silverlight and XNA both use reduced frameworks
  28. 28. WP Silverlight Toolkit available for extra controls and functionality
  29. 29. No Direct File Structure Access (Isolated Storage)</li></ul>Windows Phone Compact Framework<br />
  30. 30. Windows Phone Compact Framework<br />(Abhinaba, 2011) <br />
  31. 31. <ul><li>Hubs provide an interface to interact with the system software or storage</li></ul>People Hub<br />Office Hub – Sharepoint and OneNote<br />Pictures Hub<br />Music + Video Hub<br />Marketplace Hub<br />Game Hub<br />Windows Phone Hubs<br />
  32. 32. Isolated Storage<br />App 1<br />App 2<br />App 3<br />Applications<br />Virtualised File System<br />Hardware<br />Physical File System<br />
  33. 33. Other Features Limitations<br />Applications can use a variety of hardware such as GPS, accelerometer or Microphone<br />Not including Light and Proximity Sensors<br />Each application can have an App bar with buttons to navigate the App.<br />The phone itself must have the same buttons as all Windows Phones<br />No Flash support for Browser.. Yet.<br />Emulator cannot play videos and has other limitations.<br />No Copy and Paste in the initial version of Windows Phone 7<br />Cant change Message tone.<br />
  34. 34. 2<br />Developing Apps:Silverlight<br />Pablo Alejandre del Rio<br />
  35. 35. <ul><li>Combination of XAML and C#
  36. 36. XAML: It defines what you can see on the phone (It is declarative)
  37. 37. C#: It defines the behaviour
  38. 38. Modern Application UI Framework
  39. 39. Rapid Creation of visually apps
  40. 40. Integrated theme controls
  41. 41. Html/JavaScript integration.
  42. 42. W7 metro relies on a modified edition of Silverlight 3
  43. 43. W7 Mango: Standard Silverlight 4.
  44. 44. Plus integration with XNA
  45. 45. Full Integration in VS 2010</li></ul>Silverlight Introduction<br />(Msdn,2010) <br />
  46. 46. Advantages Disadvantages<br />Input data integration<br />Hardware device access integration<br />HardwareStandardisedand optimized for this platform<br />Great resources online<br />Mix Technologies: Silverlight with XNA together <br />No too many devices yet.<br />No too many users yet.<br />(Fenlon,2011)<br />
  47. 47. Developing Real Applications<br />Good but, can you show me the money ?<br />
  48. 48. Video of real Applications<br />With Silverlight: http://www.youtube.com/watch?v=CgW-p0PxdtQ<br />What can you achieve with Silverlight + XNA ? a lot morehttp://www.youtube.com/watch?v=9LsaQcCAdEU<br />With XNA: Any Game you dream of : http://www.youtube.com/playlist?list=PLA3E6EEC3C0EE5611<br />
  49. 49. What you need ?<br /><ul><li>Windows Phone Developer Tools
  50. 50. Visual Studio 2010 Express for Windows Phone
  51. 51. Windows Phone Emulator
  52. 52. Silverlight for Windows
  53. 53. Expression Blend SDK for Windows Mobile</li></ul>YES, ALL TOOLS ARE FREE !!!<br />
  54. 54. Lifecycle<br />(Field, 2010)<br />
  55. 55. Lifecycle: Deactivated Event<br />(mslearn.net,2011)<br />
  56. 56. Architecture Design: Model-View-ViewModel<br />There are specific patterns for W7.<br />Model-View-ViewModel<br />A Way to separate data from user interface <br />Similar to previous models:<br />Model-View-Controller<br />Model-View-Presenter<br />
  57. 57. Model-View-ViewModel (2) <br />(Hill, 2009)<br />
  58. 58. Model-View-ViewModel(3) <br />(nikhilk.net , 2009)<br />
  59. 59. Model-View-ViewModel (4) <br />Model:<br />Object Class or Data Access Class<br />Implements INotifyPropertyChanged & Property Change event<br />When property change, then view can update user interface<br />Interface<br />Link between Model and View<br />It is a collection that contains objects from the model<br />It uses an ObservableCollection<br />It allows to notify its views when items in the collection change,and views can update user interface<br />View:<br />ViewModel:<br />(Microsoft,2011)<br />
  60. 60. Model-View-ViewModel(5) <br />(Shifflett, 2011)<br />
  61. 61. Building Interface: XAML<br />Defines the visuals of the app<br />WYSIWYG design<br />In addition, it allows data binding, connection between controls and underlying data <br />For more complex interface: Expression Blend <br />Similar to XML<br />Is a declarative language (although arithmetic is not allowed )<br />Older patterns do not work<br />Integration with system’s theme<br />Interface restructuration according to resolution <br />(Agilitrain ,2010)<br />
  62. 62. <ul><li>Border
  63. 63. Canvas
  64. 64. ContentControl
  65. 65. ContentPresenter
  66. 66. Control
  67. 67. Grid
  68. 68. HyperlinkButton
  69. 69. InkPresenter
  70. 70. ListBox
  71. 71. MediaElement
  72. 72. ListBox
  73. 73. MultiScaleImage</li></ul>Controls<br />NEWCONTROLS<br /><ul><li>ToggleControlSwitch
  74. 74. WebBrowser
  75. 75. PhoneApplicationFrame
  76. 76. PhoneApplicationPage
  77. 77. Choosers & Launchers
  78. 78. Application Bar
  79. 79. Date & PickTimers
  80. 80. Pivot Panorama
  81. 81. PasswordBox
  82. 82. Slider
  83. 83. PasswordBox
  84. 84. ProgressBar
  85. 85. ScrollViewer
  86. 86. StackPanel
  87. 87. TextBlock
  88. 88. UserControl</li></ul>(Lamas ,2010)<br />
  89. 89. <ul><li>Limited release of beta application (100 users)
  90. 90. In Visual Studio:
  91. 91. Breakpoints
  92. 92. Setting Variables
  93. 93. Executing individual methods
  94. 94. Silverlight Unit Test Framework
  95. 95. Silverlight Port of NUnit
  96. 96. In Blend:
  97. 97. Dummy data generation</li></ul>Testing<br />
  98. 98. Resources<br />Basics:<br /><ul><li>Anything you need
  99. 99. Just in one click
  100. 100. How to start</li></ul>Beginning:<br /><ul><li>Microsoft video Course
  101. 101. Pluralsight-training</li></ul>In Depth:<br /><ul><li>Programming Windows Phone 7 by Charles Petzold
  102. 102. Windows Phone 7 Application Development. Building Applications and Games Using Visual Studio, Silverlight and XNA. Nick Randolph & Christopher Fairbairn. Wiley Publishing Inc, Indianapolis, 2011
  103. 103. Beginning Windows Phone 7 Development. Henry Lee & Eugene Chuvyrov. Apress USA 2010</li></li></ul><li><ul><li>Abhinaba (2011)
  104. 104. http://blogs.msdn.com/blogfiles/abhinaba/WindowsLiveWriter/WindowsPhone7SeriesProgrammingModel_11AC8/image_6.png
  105. 105. Agilitrain (2010)
  106. 106. http://www.slideshare.net/shawnwildermuth/arch-mvvm
  107. 107. Fenlon (2011)
  108. 108. http://www.tested.com/news/windows-phone-7-mango-bringing-multitasking-and-new-hardware-this-fall/2178/
  109. 109. Field (2010)
  110. 110. http://blog.ian-field.co.uk/2010/10/windows-phone-7-application-lifecycle.html
  111. 111. Microsoft (2011)
  112. 112. http://msdn.microsoft.com/enus/library/gg521153(v=vs.92).aspx
  113. 113. Hill (2009)
  114. 114. http://blogs.msdn.com/b/dphill/archive/2009/01/31/the-viewmodel-pattern.aspx</li></ul>References<br />
  115. 115. <ul><li>Msdn(2010)
  116. 116. http://create.msdn.com/en-US/education/catalog/article/wp7_jump_start
  117. 117. Msdnb(2011)
  118. 118. http://create.msdn.com/en-us/home/membership
  119. 119. mslearn.net (2011): http://borntolearn.mslearn.net/wp7/m/crsept2010/60137.aspx
  120. 120. Lamas (2010)
  121. 121. http://www.slideshare.net/ei99070/construir-aplicaes-silverlight-para-windows-phone-7
  122. 122. nikhilk.net (2009)
  123. 123. http://www.nikhilk.net/Silverlight-ViewModel-MVC.aspx
  124. 124. Wiki (2011)
  125. 125. http://en.wikipedia.org/wiki/Windows_phone_7
  126. 126. Shifflett (2011)
  127. 127. http://karlshifflett.wordpress.com/mvvm/wpf-line-of-business-introduction/</li></ul>References<br />
  128. 128. <ul><li>Introduction and tools
  129. 129. Controls
  130. 130. XAML and relative positions
  131. 131. Application Bar
  132. 132. MVVM
  133. 133. Isolated Storage
  134. 134. Testing </li></ul>Demonstration<br />We will try to show its potential, summarizing all described previously. <br />
  135. 135. 3<br />XNA Demostration<br />Dan<br />
  136. 136. ?<br />Any furtherQuestions ?<br />Please Feel to Ask Any Questions<br />
  137. 137. We hope you enjoyed it <br />We invite you to join the open discussion<br />

×