Date post: | 25-Jun-2015 |
Category: |
Software |
Upload: | mohamed-emam |
View: | 251 times |
Download: | 0 times |
UNIVERSAL APPSMohamed Emam
MSP, Windows and Windows Phone Developer@mohamedemam0
AGENDA
• Overview
• UI Controls
• Page Navigation
• Data Binding
OVERVIEW
• Write Once, Deploy To All The Windows
• Buy Once For All Of Your Windows
• Universal Apps enable building applications on different converged platforms
• Converged platforms use a single Windows Runtime: Windows 8.1 and Windows Phone 8.1 (future: Xbox, …)
• Converged developer platform, converged App model
UNIVERSAL APP
WHY UNIVERSAL APPS?
• Share up to 90% of the code
• Shared in-app purchases
• Unified ad-units for Windows Phone and Windows apps
• Shared revenue model
Windows Windows Phone
Classes Structs Interfaces
Windows 8.1 SDK 566 119 59
Windows Phone 8.1 SDK 624 131 57
+58 +12 -2
WINDOWS.UI.XAML.*
XAML: WHAT IS COMMON?
• Common Controls (Button, Textbox, …)
• Optimized Controls (DatePicker, TimePicker, …)
• Signature Controls (device specific, Hub, Pivot,…)
CONVERGED CONTROLSwhat’s it really mean?
80% exact same XAML 20% custom
Common SignatureOptimized
DatePicker
TimePickerCommandBar
Button
CheckBox
RadioButton
ProgressBar
Slider
ToggleSwitch Hub
PivotListViewGridViewAppBarSysTray
CODE REUSE
•Shared Projects (Share source code between projects of universal, Allow platform specific code using #if or partial class)
•PCL (Share binary library between universal apps, compile once,
deploy on different platforms)
UI CONTROLS
• Button
• Grid
• Appbar
• Stackpanel
• Gridview
• Textbox
• Button > Flyout > Grid > Button
• Flipview
• Datepicker
• Combobox
• Radio Buttons/Check Box
UI CONTROLS
DEMO
PAGE NAVIGATION
• Navigate to a page.
• Navigate with a parameter.
• Navigate to URI
PAGE NAVIGATION
DEMO
DATA BINDING
• One Way
• Two Way
DATA BINDING
DEMO
SUMMARY
• Overview
• UI Controls
• DEMO
• Page Navigation
• DEMO
• Data Binding
• DEMO
TIME TO GET ANSWERED
Q&A
Common Control
Optimized Control