using visual studio to build xaml universal apps

13
Pranav Ainavolu Thomson Reuters http://pranavon.net | @a_pranav Using Visual Studio to build XAML universal apps

Upload: pranav-ainavolu

Post on 24-May-2015

330 views

Category:

Technology


5 download

DESCRIPTION

Building XAML Universal Apps using Visual Studio 2013

TRANSCRIPT

Page 1: Using Visual Studio to build XAML Universal Apps

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

Using Visual Studio to build XAML universal apps

Page 2: Using Visual Studio to build XAML Universal Apps

Overview of universal apps

Demos

Q&AAgenda

Page 3: Using Visual Studio to build XAML Universal Apps

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

Page 4: Using Visual Studio to build XAML Universal Apps

DEMO – Universal apps

Page 5: Using Visual Studio to build XAML 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

Page 6: Using Visual Studio to build XAML Universal Apps

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

Page 7: Using Visual Studio to build XAML Universal Apps

Intellisense warnings for platform specific APIs

Switch project context using navbar

Code editing experience

Page 8: Using Visual Studio to build XAML Universal Apps

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

Page 9: Using Visual Studio to build XAML Universal Apps

DEMO - Class Libraries for universal apps

Page 10: Using Visual Studio to build XAML 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!

Page 11: Using Visual Studio to build XAML Universal Apps

DEMO – XAML authoring for Windows Phone 8.1

Page 12: Using Visual Studio to build XAML Universal Apps

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

Page 13: Using Visual Studio to build XAML Universal Apps

Questions

Pranav AinavoluTechnology [email protected] @a_pranav