windows 8 and phone app development
DESCRIPTION
This will be a hands-on lab to show you how to create a multi-platform app using the XPlatformCloudKit framework (https://github.com/winappkits/XPlatformCloudKit). The XPlatformCloudKit was built by Paul DeCarlo (http://pjdecarlo.com/) and the team behind webappkits (https://github.com/winappkits). In this presentation, you will be shown how to build a Windows 8 and Windows 8 Phone app which can retrieve data from any combination of RSS feeds, local XML files, or Azure mobile Services. This will be an interactive presentation demonstrating the power of the XPlatformCloudKit and how you might use a portable class library to build both a Windows 8 and Windows 8 Phone app.TRANSCRIPT
Windows 8 and Phone App Development
Paul Gower
@paulmgower
http://blog.paulgower.me
http://lunamark.com
Image credit: Jason Emprey
Share As Much As Possible
Real-world stocks - example
Design
What is common?
Windows Phone
Windows
Windows
What is different?
Windows Phone
GridView Panorama
GridView
Demo
AppBar
On screen
Develop
PCL –Visual Studio Support
Cross-Platform Development with the Portable Class Library on MSDN - http://msdn.microsoft.com/en-us/library/gg597391(v=vs.110).aspx
Portable Class Library
Demo
What is Windows Azure Mobile Services?
Key ScenariosWindows Azure Mobile Services are ideal for:
Image credit: http://quickmeme.com
Linked files
Linked files
Hold Alt and drag a folder to link multiple files at once!
Windows Phone Windows
Linked Files
Demo
#if NETFX_CORE
Dispatcher.RunAsync(CoreDispatcherPriority.Normal, myAction);
#endif
#if WINDOWS_PHONE
Deployment.Current.Dispatcher.BeginInvoke(myAction);
#endif
Windows
Windows phone
Compiler Directives
Demo
Comparison
Sharing an assembly (PCL)
+
Code remains clean and single purpose
Build, test, compile once
-
Limited API access
Can’t reference non-PCL assemblies
Won’t work with Express SKUs (until VS2013)
+
-
Architecture
Portable Class Library
CoreViewModels
Services
Models
Windows
App Startup / Lifecycle
Views
Controls
Converters
ViewModels
Windows Phone
App Startup / Lifecycle
Views
Controls
Converters
ViewModels
Demo
Summary –What to share?
✋
✋
✋
✋
XPlatformCloudKit
Demo
• Stuart Lodge (creator of MvvmCross) – http://slodge.blogspot.com
• MvvmCross GitHub - http://github.com/MvvmCross/MvvmCross
• Paul DeCarlo (creator of XPlatformCloudKit) – http://pjdecarlo.com
• XPlatformCloudKit GitHub – http://github.com/winappkits/XPlatformCloudKit
• Azure Mobile Services – http://azure.microsoft.com/en-us/develop/mobile
• Portable Class Library – http://msdn.microsoft.com/en-us/library/gg597391(v=vs.110).aspx
• Xamarin Studio – http://www.xamarin.com
Resources