using visual studio to build xaml universal apps

Post on 24-May-2015

330 Views

Category:

Technology

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

Building XAML Universal Apps using Visual Studio 2013

TRANSCRIPT

Pranav AinavoluThomson Reutershttp://pranavon.net | @a_pranav

Using Visual Studio to build XAML universal apps

Overview of universal apps

Demos

Q&AAgenda

Universal apps enable building applications on the converged Windows 8.1 and Windows Phone 8.1 platforms

Supported for C#, C++ and JavaScript

Create universal apps using project templates, migrating Windows 8.1 / Windows Phone 8.1 apps

Universal apps

DEMO – Universal apps

Allow sharing source between converged apps

Don’t have any binary output

Supports all item types Code files .cs, .js, .cpp, .h XAML Images .png, .jpg… RESW XML etc…

Shared projects

C#: WINDOWS_APP and WINDOWS_PHONE_APP

#if WINDOWS_PHONE_APP

Windows.Phone.UI.Input.HardwareButtons.BackPressed += this.HardwareButtons_BackPressed;

#endif

C++: WINAPI_FAMILY_PC_APP and WINAPI_FAMILY_PHONE_APP

#if WINAPI_FAMILY==WINAPI_FAMILY_PHONE_APP_backPressedEventToken = HardwareButtons::BackPressed += ref new EventHandler<BackPressedEventArgs^>(this,&NavigationHelper::HardwareButton_BackPressed);

#endif

Use conditional constants

Intellisense warnings for platform specific APIs

Switch project context using navbar

Code editing experience

Quick and easy way to change startup projects using debug target dropdown

Supported for all Store platforms

Enabled if you have more than one application project in the solution

Switching startup projects

DEMO - Class Libraries for universal apps

PortableClass

Libraries

Sharing one binarybetween projects

I compile just onceand know it works

on all platforms

call WinRT APIsinclude code and .xaml files

SharedProjects

Sharing source codebetween projects

I can easily include platform-specific code under #if or partial classes

Code reuse options for universal apps

New! Improved!

DEMO – XAML authoring for Windows Phone 8.1

IntelliSense for Data bindings and resources

F12 support for types, binding and resources

Design for different display sizes, themes and high contract using Device Panel

Behaviors

Rulers and guides

XAML authoring features

Questions

Pranav AinavoluTechnology Enthusiasta.pranav@hotmail.com @a_pranav

top related