MVVM in Windows Phone 7
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,406
On Slideshare
4,360
From Embeds
46
Number of Embeds
6

Actions

Shares
Downloads
86
Comments
0
Likes
1

Embeds 46

http://www.extofer.com 15
http://twitc.com 14
http://www.verious.com 8
http://extofer.blogspot.com 5
http://www.uxmagic.com 2
http://feeds.feedburner.com 2

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. Chris Koenig
    Senior Developer Evangelist
    Microsoft Corporation
    MVVM in Windows Phone 7
  • 2. MVVM – In a nutshell
    2
    “…building UIs that utilize platform enhancements in WPF and Silverlight to provide good separation between UI and business logic in order to make those UIs easier to maintain by developers and designers.”
    - Glenn Block
  • 3. Key elements of MVVM
    3
  • 4. MVVM toolkits for WP7
    4
    View
    Model
    ViewModel
    HomegrownShips with template
    MVVM Lighthttp://mvvmlight.codeplex.com
    NRoutehttp://nroute.codeplex.com
    Caliburnhttp://caliburn.codeplex.com
    Messages
    Data Binding
    Commands
  • 5. MVVM toolkits for WP7
    ViewModelLocator
    ViewModel
    DispatcherHelper
    RelayCommand
    EventToCommand
    Messenger
    5
    “Blendability”
  • 6. Demo - Getting Started
  • 7. Relay Command
    Used to send messages from the View to the ViewModel
    Bind actions on View to Commands on ViewModel
    Based on the familiar Command pattern
    ICommand
    Command Parameters
    CanExecute
    Attached Properties
    7
  • 8. EventToCommand
    Blend Behavior for wiring up RelayCommands
    8
  • 9. Demo - Commands
  • 10. Messaging
    10
    View
    View
    View
    Messages
    ViewModel
    ViewModel
    ViewModel
    Messages
    + callback
    © 2010 IdentityMine Inc. Used with permission
  • 11. Demo – Messaging
  • 12. Please read (hidden slide)
    This template is designed for use with Office PowerPoint 2007 and 2010. The charts and graphics can be edited with PowerPoint 2007 and 2010, but not with PowerPoint 2003.
    This template uses Microsoft’s corporate font, Segoe Light.
    Segoe is not a standard font included with Windows, so it has been embedded in this template.
    For Live Meeting situation, please use Segoe Regular
    More resources:
    Learn how to use this PowerPoint template by referring to the Windows Phone 7 Guidelines.
    Find more pre-designed layouts by referring to the Windows Phone 7 Additional Layouts.
  • 13. Q&A
  • 14. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
    The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation.
    MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.