Creating Desktop Apps with UWP (G2B TechEd, Brno 2017)

Creating Desktop Apps with UWP (G2B TechEd, Brno 2017)

How to best support both WPF and UWP, and move from WPF to UWP

4736273aed82148d9d3c3ca192c1cd61?s=128

Christian Nagel

February 06, 2017
Tweet

Transcript

  1. Christian Nagel @christiannagel www.cninnovation.com Creating Desktop Apps with UWP PLATINUM

    PARTNER
  2. Goals  When & how to use UWP for Data-Driven

    Business Applications  Moving from WPF to UWP  Introducing important concepts for UWP
  3. Non-Goals  A complete application  UI Styles  Desktop

    Bridge for UWP  No Crashes (using Visual Studio 2017 RC)
  4. Agenda WPF or UWP? Sharing Code UWP XAML Features

  5. Christian Nagel  Training  Coaching  Consulting  Microsoft

    MVP  thinktecture  www.cninnovation.com
  6. None
  7. WPF OR UWP? 1

  8. All your users upgraded to Windows 10

  9. Why not always WPF?  Use New Features  Modern

    Styling and APIs  Different Devices  Windows 10 uses UWP  Performance
  10. UWP Features  Easy Deployment/Updates  New Controls  Data

    Sharing  Tile Updates, Notifications
  11. Windows 7 Users  WPF is necessary  Desktop Bridge

    to add UWP Features for Win10 Users  Write the UI multiple times  Just the UI
  12. SHARING CODE 2

  13. Libraries  .NET Libraries only for WPF/.NET Framework  .NET

    Core Libraries only for .NET Core  Portable Libraries for …  .NET Standard makes sharing easier
  14. MVVM Pattern View View-Model Model INotifyPropertyChanged INotifyPropertyChanged Data Binding, Binding

    to Commands XAML
  15. Dependency Injection

  16. What you’ve seen  Portable Libraries  MVVM removes strong

    dependencies  DI Container makes DI easy
  17. UWP XAML FEATURES 3

  18. Assigning Commands

  19. Compiled Binding

  20. Controls

  21. What you’ve seen  AppBar  Compiled Binding  Enhanced

    TextBox  SplitView  RelativePanel  Adaptive Trigger
  22. Summary  Use MVVM and DI with XAML  Portable

    / .NET Standard Library  XAML Features
  23. Questions?

  24. More Information (1)  https://blogs.windows.com  https://github.com/Microsoft  Sample Code:

     https://github.com/CNinnovation
  25. More Information (2)  https://github.com/ProfessionalCSharp  https://csharp.christiannagel.com  https://www.cninnovation.com 

    Training & Coaching
  26. Thank you!

  27. Images Copyright  Decision Time © Steve Woods  Old

    Library © Photogl  Diversity workers © Vladimir Mucibabic  Injection © Maybe123  Spousal Abuse Humor © Ken Hurst  Communication © Fantasista  Pilots in the plane © Nikolai Sorokin  Fireworks over Brno © Olga Langerova  http://www.dreamstime.com
  28. Děkuji za pozornost. www.gopas.cz www.G2BTeched.cz www.TechEd.cz