250 likes | 311 Views
@ johanlindfors. Media Bank and Finance Map and navigation Gaming Photo editing. Successful architecture of Windows Store applications. Johan Lindfors. Coderox. This is a strictly internal approach. Simplify development and maintenance Share code and UI
E N D
Media Bank and Finance Map and navigation Gaming Photo editing
Successful architecture ofWindows Store applications Johan Lindfors Coderox
Simplify development and maintenance Share code and UI Separate UI from application logic Abstract platform specifics
Simplify development and maintenance GOAL Share code and UI MISSION Separate UI from application logic TACTIC Abstract platform specifics OBSTACLE
Simplify maintenance GOAL Share code and UI MISSION Separate UI from application logic TACTIC Abstract platform specifics OBSTACLE
Separate UI and logic Platform abstraction Share code
Separate UI and logic Platform abstraction Share code
Share code (and UI) Portable Class Libraries ”Add as link” UI refactoring
Separate UI and logic Platform abstraction Share code
Separate UI and logic Platform abstraction Share code
UI Application Logic General architectural approach
View Databinds ViewModel References Model Model-View-ViewModel (MVVM)
View Platform specific ViewModel Portable/Common Model
MVVM Existing or BYOF ViewModel-View communication ViewModel-* communication
Separate UI and logic Platform abstraction Share code
Separate UI and logic Platform abstraction Share code
Platform abstractions Singleton vs ”Dependency Injection” Windows Runtime Components (only v8) Action<T> vs async/await
Action<T> vs async/await Create wrapper TaskCompletionSource Exceptions Nuget: install-package Microsoft.Bcl.Async -pre
Separate UI and logic Platform abstraction Share code