Visual Studio diagnostics tools for XAML-based Windows Store apps
Using Visual Studio to build XAML Universal Apps
-
Upload
pranav-ainavolu -
Category
Technology
-
view
330 -
download
5
description
Transcript of Using Visual Studio to build XAML Universal Apps
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 [email protected] @a_pranav