bringing existing managed code into metro style apps n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Bringing existing managed code into Metro style apps PowerPoint Presentation
Download Presentation
Bringing existing managed code into Metro style apps

Loading in 2 Seconds...

play fullscreen
1 / 16

Bringing existing managed code into Metro style apps - PowerPoint PPT Presentation


  • 198 Views
  • Uploaded on

TOOL-790C. Bringing existing managed code into Metro style apps. Daniel Plaisted SDET Microsoft Corporation. Windows 8 introduces a new app development platform for Metro style apps. You can use your existing .NET skills to write Windows Metro style apps.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Bringing existing managed code into Metro style apps' - Lucy


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
the viewmodel pattern
The ViewModel Pattern

Presentation logic

ViewModel

Binding

Design w/ XAML

View

Model

XAML

Code

Data and Business Logic

view to viewmodel binding
View to ViewModel Binding

ViewModel

View

  • <!– HomeView.xaml-->
  • <ListBoxItemsSource=
  • "{BindingLists}"/>
  • <!-- ListBoxItemTemplate -->
  • <Image Source="{Binding Image}"/>
  • <TextBlock Text="{Binding Name}"/>

// HomeViewModel.cs

publicList<FlashCardListViewModel>

Lists{ get; privateset; }

// FlashCardListViewModel.cs

publicImageSourceImage

{ get; privateset; }

publicstring Name

{ get; privateset; }

View

ViewModel

ways to move your code
Ways to move your code
  • Start from scratch
  • Copy everything
  • Shared code and conditional compilation
  • Portable Class Library
differences we ll see
Differences we’ll see
  • UI namespace is different
  • WinRTvs .NET types
    • INotifyPropertyChanged
    • ICommand
  • Behavioral differences
    • URIs
    • Navigation
  • Platform differences
    • App startup and lifecycle model
    • File APIs
    • Picture chooser
differences we saw
Differences we saw
  • UI namespace is different
  • WinRTvs .NET types
    • INotifyPropertyChanged
    • ICommand
  • Behavioral differences
    • URIs
    • Navigation
  • Platform differences
    • App startup and lifecycle model
    • File APIs
    • Picture chooser
further information
Further Information
  • [TOOL-515T] Tips and tricks for developing Metro style apps using XAML
  • [TOOL-531T] Using the Windows Runtime from C# and Visual Basic
  • [APP-737T] Metro style apps using XAML: what you need to know
  • [TOOL-810T] Async made simple in Windows 8, with C# and Visual Basic
  • [TOOL-930C] A .NET developer's view of Windows 8 app development
  • Documentation: .NET for Metro style apps overview

Contact Info: daplaist@microsoft.com Twitter: @dsplaisted

call to action
Call to Action

Go make great Windows Metro style apps!

feedback and q uestions http forums dev windows com session f eedback http bldw in sessionfeedback
thank you

Feedback and questions http://forums.dev.windows.com

Session feedbackhttp://bldw.in/SessionFeedback

slide15

© 2011 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.