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

MVVM in Windows Phone 7

on

  • 4,290 views

 

Statistics

Views

Total Views
4,290
Views on SlideShare
4,244
Embed Views
46

Actions

Likes
1
Downloads
86
Comments
0

6 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

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution-NonCommercial LicenseCC Attribution-NonCommercial License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

MVVM in Windows Phone 7 MVVM in Windows Phone 7 Presentation Transcript

  • Chris Koenig
    Senior Developer Evangelist
    Microsoft Corporation
    MVVM in Windows Phone 7
  • 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
  • Key elements of MVVM
    3
  • 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
  • MVVM toolkits for WP7
    ViewModelLocator
    ViewModel
    DispatcherHelper
    RelayCommand
    EventToCommand
    Messenger
    5
    “Blendability”
  • Demo - Getting Started
  • 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
  • EventToCommand
    Blend Behavior for wiring up RelayCommands
    8
  • Demo - Commands
  • Messaging
    10
    View
    View
    View
    Messages
    ViewModel
    ViewModel
    ViewModel
    Messages
    + callback
    © 2010 IdentityMine Inc. Used with permission
  • Demo – Messaging
  • 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.
  • Q&A
  • © 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.