Your SlideShare is downloading. ×
MVVM in Windows Phone 7
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

MVVM in Windows Phone 7

3,318

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,318
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
86
Comments
0
Likes
1
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. 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.

×