prism for windows 8.1 (building maintainable windows store apps)

25

Upload: aiyana-burriss

Post on 14-Dec-2015

222 views

Category:

Documents


6 download

TRANSCRIPT

Prism for Windows 8.1(Building maintainable Windows Store Apps)

Blaine Wastell and Francis Cheung

DEV-B350

• Prism Overview• Business app requirements• New in Windows 8.1• Create a new app using Prism

Agenda

Prism OverviewWindows Store Business App Guidance• Windows Dev Center• PDF• AdventureWorks

Shopper RI• Quickstarts• Prism Library on NuGet

Windows Store App

DataAccess

View

AdventureWorks Logical Architecture

Cloud or On-Premises

Domain Model

DI C

onta

iner

(opti

onal)

View Models

Model

View Base

View Model Base

Validation

Service Proxies

Repositories

Services

Domain Object

Provided by PrismProvided by Developer

Legend

View ModelLocator

Infrastructure

App Lifecycle

Management

NavigationService

BootstrapApp Base

Delegate Comman

d

App Views

App View Models

App

Event Aggregator

Model

Domain Object

Domain Object

Repositories

Business App Requirements (LOB)

UX

Validate user input for correctness

Can you do

anything right?

Validation

Characteristics of business appsBuilt to Last Built to Change

Business App DemoValidationBuilt to last and for change

MVVMUnit Testing

Extended splash screen

New in Windows 8.1SearchBox controlSettingsFlyout, MenuFlyout, and Flyout controlsWindows.Web.HttpClientUX changes

Landscape: scroll horizontallyPortrait: scroll verticallyMinimal: (snap)

Large grids & listsContainerContentChanging eventIncrementalUpdateBehavior (Blend Behavior)

Blend Behaviors

Prism.PubSubEvents.NET 4 and upSilverlight 5Windows Phone 8Windows Store apps 8 and up.

Prism.Mvvm.NET 4.5 and upWindows Phone8Windows Store apps 8 and up

Available via NuGet

PCL Support

Demo for 8.1

AdventureWorksSearchBoxAutorotationScroll position

Create new app using Prism

1. Bootstrap App using MvvmAppBase & Unity2. Create view using VisualStateAwarePage3. Create view model using ViewModel4. Wire view & view model using

ViewModelLocator5. Store view model state using

RestoreableStateAttribute

Universal Windows apps supportMigration guidance for WPF Prism apps to Universal Windows app?

Modularity?Regions?

Occasionally connected apps

Prism Futures (need feedback)

Where to Get GuidanceCommunity: http://prismwindowsruntime.codeplex.com

Documentation: http://aka.ms/prism-winrt-doc

Source: http://aka.ms/prism-winrt-code

Quickstarts: NuGet: Search Prism.StoreApps and Prism.PubSubEventsFrancis: http://blogs.msdn.com/francischeung [email protected]

Blaine: http://blogs.msdn.com/blaine [email protected]

Visit the Developer Platform & Tools BoothHaving a friend buy your coffee?Yea, it’s kind of like that.

MSDN Subscribers get up to $150/mo in Azure credits.

Stop by the Developer Platform and Tools booth and visit the MSDN Subscriptions station to activate your benefits and receive a gift!

http://aka.ms/msdn_teched

3 Steps to New Gear! With Application Insights

1. Create a Visual Studio Online account http://visualstudio.com

2. Install Application Insights Tools for Visual Studio Online http://aka.ms/aivsix

3. Come to our booth for a t-shirt and a chance to win!

VSIP QR Tag Contests Visit our booth to join the hunt for cool prizes!

ResourcesMicrosoft Engineering Stories

How Microsoft Builds Softwarehttp://aka.ms/EngineeringStories

Visual Studio Industry Partner Program

Meet Our New Visual Studio Online Partners or Join Now.http://vsipprogram.com

Visual Studio | Integrate

Create Your Own Dev Environmenthttp://integrate.visualstudio.com

Development tools & services for teams of all sizeshttp://www.visualstudio.com

Complete an evaluation and enter to win!

Evaluate this session

Scan this QR code to evaluate this session.

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, 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.