MSDN Live: Windows Presentation Foundations Line of Business Apps

  • 514 views
Uploaded on

Best pratices when developing LOB with WPF!

Best pratices when developing LOB with WPF!

More in: Technology , Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
514
On Slideshare
0
From Embeds
0
Number of Embeds
2

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Forretningsapplikasjoner med WPF Gøran Hansen Senior Consultant, Capgemini http://blog.goeran.no [email_address]
  • 2. Agenda
    • WPF Recap
    • Utvikling av GUI
    • Prinsipper
    • Presentation Model
    • Testing
  • 3. WPF Recap!
    • Det av .NET 3*
    • Platform
      • Hard 2/3D
      • Vektorbasert
      • Video og Lyd
  • 4. WPF Recap!
    • Rammeverk
      • Rik komposisjonsmodell
      • Styles and Templates
      • Databinding
    • XAML
  • 5. Utvikling av GUI
    • Team med flere utviklere
    • Endringer er garantert
  • 6. Dette skjer!
    • Høy kobling
    • Vanskelig å legge til ny funksjonalitet eller erstatte eksisterende
    • Vanskelig å teste og deploye
    • Monolitisk
  • 7.  
  • 8.  
  • 9.  
  • 10.  
  • 11.  
  • 12.  
  • 13. Hmmm...
    • Hvordan lage løsere kobling?
    • Hvordan dekomponere GUI koden?
    • Hvor kommer WPF inn i bildet?
  • 14.
    • Prinsipper!
    • Design Patterns
  • 15. Prinsipper
    • ” Program to an interface, not an implementation”
    • Separation Of Concerns
  • 16.
    • Design Patterns
  • 17. Presentation Model Presentation Model Represents the state and the behavior of the presentation independently of the GUI controls used in the interface. Martin Fowler Design Pattern Guru
  • 18. Presentation Model Presentation Model is a pattern that pulls presentation behavior from a view .
  • 19. Presentation Model It's useful for allowing you to test without the UI, support for some form of multiple view and a separation of concerns which may make it easier to develop the user interface.
  • 20. View (XAML) Data Binding Change notification “ It is easier to consider Presentation Model as an abstract of the view that is not dependent on a specific GUI framework.” “ A view then simply projects the state of the presentation model onto the glass.” Presentation Model State Name, Description, Estimate, IsSaveButtonEnabled Operations Save, Delete Data Model WS DB FS
  • 21. Probably the most annoying part of Presentation Model is the synchronization between Presentation Model and view.
  • 22. Presentation Model Ideally some kind of framework could handle this, which I'm hoping will happen some day with technologies like .NET's data binding .
  • 23.
    • WPF Data Binding!
  • 24. View (XAML) Data Binding Change notification Presentation Model State Name, Description, Estimate, IsSaveButtonEnabled Operations Save, Delete Data Model WS DB FS Designer Developer Integration/Database developer
  • 25. Testing
  • 26. Oppsummering
    • WPF + Presentation Model = Godt design!
    • Separation Of Concerns
    • ” Program to an interface, not an implementation”
  • 27. Hvorfor WPF
    • Kunnskap er portabel til Web (Silverlight 2)
    • Designer <-> Dev vennlig
    • Rik databinding støtte!
  • 28. Tools
    • CompositeWPF (CAB)
  • 29. Forretningsapplikasjoner med WPF Gøran Hansen Senior Consultant, Capgemini http://blog.goeran.no [email_address]