Top Banner
NET
62

NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools Build your first

Jun 09, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

NET

Page 2: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 3: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 4: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Where’s the difference?

Classic App Modern App

Installed from anywhere Installed from the store or via sideloading

Does anything during

installation/update/deinstallation.

Defined installation/update/deinstallation

routine.

Can access the whole system during runtime. Limited access to limited number of APIs.

Explicitly declares capabilities.

Can run as admin. Limited permissions. No admin mode.

No-Supsend-Lifecycle Running/Suspended/Terminated

Full communication with other processes. Sandbox.

Page 5: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Install latest Windows 10 OS (10.0.10075.0)

insider.windows.com

Install VS 2015 RC w/ Universal Windows SDK & Tools

www.visualstudio.com

Build your first Universal Windows

App

Page 6: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 7: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Windows 10 Windows Server 2012 R2 *Windows 7

Windows 8.1

• Best developer experience for building Universal Windows apps

• Deploy/Debug/Profile

• Simulator

• Local Machine

• Mobile Emulators

• Remote Machine

• Device

• XAML Designer/Intellisense

All other features work at parity with Windows 10, except:

• Deploy/Debug/Profile

• Remote Machine

• Device

• XAML Intellisense

All other features work at parity with Windows 10, except:

• Deploy/Debug/Profile

• Mobile Emulators

• Remote Machine

• Device

• XAML Intellisense

• No WACK (Server R2)

*will be supported at RTM

Page 8: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 9: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Easy for users to get & stay current

Unified core and app platform

Windows 10

ConvergedOS kernel

Convergedapp model

Page 10: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

One app platform

One Store +One Dev Center

Full Support for Existing Code

SDK +Services

Adaptive User Interface

NaturalUser Inputs

Page 11: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

One Package

Page 12: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

XboxIoT

Page 13: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Windows Kernel Services

Windows Universal Platform

JavaScript

HTML / CSS

C / C++C# / VB

XAML DirectX

Page 14: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Target a version of UAPnot the Operating System

Page 15: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 16: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

<TargetPlatform

Name="Microsoft.Universal"

minVersion="2.0.0.0"

maxVersionTested="3.5.0.0" />

Page 17: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Extension SDKs

• Extends the UAP

• Targets specific platforms

• Updates at a separate cadence

• Enabled on every device

Page 18: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 19: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

Page 20: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

UAP

Windows Core Windows Core Windows Core Windows Core

UAP UAP UAP

Desktop Mobile Xbox More…

Page 21: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 22: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

One Common source

One Windows kernel

One File I/O stack

One App model

One Binary

Page 23: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Shared Projects

Windows

Binary Phone

Binary

Page 24: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

Page 25: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Compilation directives C# Syntax

#if WINDOWS_PHONE_APP

Windows.Phone.UI.Input.HardwareButtons

.BackPressed += this.HardwareButtons_BackPressed;#endif

C++ Syntax

#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP_backPressedEventToken = HardwareButtons

::BackPressed += ref new EventHandler<BackPressedEventArgs^> (this,

&NavigationHelper::HardwareButton_BackPressed);#endif

Page 26: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

Feature Detection

Page 27: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Testing for capabilities

IsApiContractPresentIsEnumNamedValuePresentIsEventPresentIsMethodPresentIsPropertyPresentIsReadOnlyPropertyPresentIsTypePresentIsWriteablePropertyPresent

Windows.Foundation.Metadata.ApiInformation

Page 28: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 29: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 30: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 31: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

Page 32: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

720epx

720epx

Breakpoints

320epx

1024epx

Page 33: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

Page 34: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

Scaling algorithm & effective pixelsTakes viewing distance and pixel density into account to optimize for perceived size rather than physical size

Page 35: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

SplitView

Page 36: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

Relative Panel is a XAML layout control. It arranges

children by declaring relationships between them.

Introducing the Relative Panel

Windows XAML layout controls

GridStack

PanelCanvas

Scroll

ViewerBorder View Box

Wrap

GridRelative

Panel

Page 37: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

<RelativePanel>

<Rectangle x:Name="BlueRect" Height="100" Width="100" Fill="Blue" />

<Rectangle x:Name="RedRect" Height="100" Width="100" Fill="Red"

RelativePanel.RightOf="BlueRect"RelativePanel.AlignVerticalCenterWith="BlueRect" />

</RelativePanel>

Page 38: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

<Grid>

<StackPanel>

<StackPanel>

<TextBlock />

<TextBlock />

</StackPanel>

<StackPanel>

<TextBlock />

<TextBlock />

</StackPanel>

</StackPanel>

</Grid>

<RelativePanel>

<TextBlock />

<TextBlock />

<TextBlock />

<TextBlock />

</RelativePanel >

Page 39: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

Visual State Triggers

<VisualStateGroup x:Name="WindowSizeStates">

<VisualState x:Name="WideState">

<VisualState.StateTriggers>

<AdaptiveTrigger MinWindowWidth="720" />

</VisualState.StateTriggers>

<!– - more - - !>

</VisualState>

</VisualStateGroup>

Page 40: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

<VisualState x:Name="Pressed">

<Storyboard>

<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid"

Storyboard.TargetProperty="Background">

<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResourceSystemControlBackgroundBaseMediumLowBrush}" />

</ObjectAnimationUsingKeyFrames>

<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"

Storyboard.TargetProperty="BorderBrush">

DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResourceSystemControlHighlightTransparentBrush}" />

</ObjectAnimationUsingKeyFrames>

<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter"

Storyboard.TargetProperty="Foreground">

<DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResourceSystemControlHighlightBaseHighBrush}" />

</ObjectAnimationUsingKeyFrames>

</Storyboard>

</VisualState>

Page 41: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

DEMO

Relative Panel

Page 42: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 43: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 44: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 45: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 46: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

Enhanced App to App in Windows 10

Send file token, send data

Launch a *specific* app

App Services

Launch for Results

Shared Folder

Drag & Drop

Page 47: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

http://windows.Microsoft.com

App Services

Client App A

Client App B Background Task

App with App Service

Page 48: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 49: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 50: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Web Site

• Discoverable and

presented through a

browser

Hosted Web App

• Majority of app hosted on

a web server

• Access to native APIs

• Distributed through a

Store

Packaged Web App

• Content inside app

package

• Can use Cordova or

WebView

• Distributed through a

Store

Bring Web Apps to the Windows Store

Page 51: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

DEMO

Hosted Web App

Page 52: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Bring Android Apps to the Windows Store for Phones

+

Your Android Code(Project Astoria SDK & App analysis)

+

Your app in the

Windows Store

Your IDE(Project Astoria Plugins)

Your dev

machine

+

Windows

Magic

Live tiles

IntelliJ

Android

Studio

Eclipse

Windows

Mac

Page 53: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Bring iOS Apps to the Windows Store

Compile Objective-C for Windows in Visual Studio

Xcode projects imported to Visual Studio

Integrated language support: syntax highlighting, autocomplete

Full debugging: breakpoints, stack traces, …

Universal API Interop

Page 54: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Bring Classic Windows Applications to the Windows Store

Test

UpdateConvert

AppXMSI

Page 55: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

IoTHoloLens

Surface Hub

Windows Desktop

Windows Mobile

Xbox

ONE CORE OS

ONE APP PLATFORM

ONE STOREWindows 10

Page 56: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Store Ecosystem

Westminster- Web apps

(HTML/CSS/JS)

Astoria - Android apps

(Java/C++)

Existing store apps/games

(C++/C#/JS)

Universal windows apps

(C++/C#/JS)

Music Movies & TV

Centennial - Classic

windows apps

(C/C++/.NET/Win32 API)

Islandwoods - IOS apps

(Objective-C/C++)

Page 57: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 58: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Hidden apps

Per market pricing

Independent IAP

publishing

Betas

Time based trials

App discounts

Scheduled publish

Page 59: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first
Page 60: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

TOUR

Windows 10 at a Glance

Windows Store

• Modern apps

• Sign in with MSA

• Pay with credit card, gift card,

PayPal, Alipay, INICIS, mobile

operators

Business Store “Company Portal”

• Modern apps

• Leverages Azure Active Directory for

administration, some scenarios

• Private organization store for the

org’s preferred or LOB apps

• Pay with credit card or PO/invoice

• Deploy modern apps offline, in

images, and more

• Modern app license management

• Sideload line-of-business modern

apps

• Deploy apps from the Windows Store

(even when the Store UI is disabled)

as well as uploaded LOB apps

through Business Store integration

using MDM

Page 61: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Preview available now!DEV.WINDOWS.COM

Page 62: NET · Install latest Windows 10 OS (10.0.10075.0) insider.windows.com Install VS 2015 RC w/ Universal Windows SDK & Tools  Build your first

Daniel MeixnerTechnical Evangelist

Microsoft Deutschland GmbH

@DanielMeixner

DevelopersDevelopersDevelopersDevelopers.NET

Download Visual Studio 2015https://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx

Samples

https://github.com/Microsoft/Windows-universal-samples

https://github.com/DanielMeixner/w10demoking

https://github.com/Windows-XAML/201505-MVA

Blog

http://blogs.msdn.com/b/dmx

Free Training

http://www.microsoftvirtualacademy.com