Xamarin workshop

953 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
953
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
24
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • Objective C & C# Slide
    XIB
    Xamarin Studio & Visual Studio Compile
  • Helloworld
  • Java vs C#: who developed notice the extreme similarity
    Dalvik: VM for Android App. Limitation for speed. Even Oracle provided VM Hotspot to speed it up
    Sharpen: Xamarin tool for Translating Java to C#. Day to day update
    XobotOS: Xamarin android OS
  • Activity: Page Controller
    Intent: Activity navigation
    Services: Thread, Thread Pool, Java Process
    Resources: Data (Image, Video), Localization, Resource file R for indexing UI components
  • Similar to Windows Phone XAML
  • HelloWorld Android
    TaskyPortable
  • Binding
    INotify
    ObservableCollection
  • Only UI on specific platform project, Everything else in Core C#
  • Book
    Lumia VIP (Location, Localization, ErrorReport Messenger)
  • MPNS - Microsoft Push Notification Service 
    APNS - Apple Push Notification Service
    GCM - Google Cloud Messaging that replaces C2DM – Cloud to Device Messaging
  • Multiplatform implementation
    Nuget
  • CMS – Content Management System
    SB - Storyboard
  • Xamarin workshop

    1. 1. Xamarin workshop Nguyen Nhu Hieu – SMIC Technical Lead - Development
    2. 2. Agenda  Portable Class Library (PCL)  XAMARIN iOS  Objective C & C#  XIB UI  XAMARINAndroid  Java & C#  AXML UI  MVVMCross  MVVM & Data Binding  Multiplatform Extension
    3. 3. Portable Class Library (PCL)  1 Solution  Multiple Platforms
    4. 4. Portable Class Library –Why?  Centralized Code Sharing  Consistent Structure  Seamless Debug  Easy to maintain  Project Sharing (Core)  NuGet  XamarinComponent Store
    5. 5. PCL - Platform IndependentAPIs  Platform – specific libraries cannot be referenced  No Silverlight ControlToolkit  No P/Invoke , pointer, overloading function to C/C++  PCL is a subset of .NET Framework
    6. 6. PCL Diagram
    7. 7. Compilation Flow  iOS: C# > Objective C > APP  Android: C# > Java > APK  WP/ Store: C# > XAP
    8. 8. Xamarin iOS
    9. 9. Xamarin iOS
    10. 10. Xamarin iOS – In Code  100% Components ported to C#  iOS UI can be done without XIB/ StoryBoards
    11. 11. Xamarin iOS - Xcode Designer
    12. 12. Xamarin iOS - Storyboard
    13. 13. Xamarin iOS Demo
    14. 14. Xamarin Android  JavaTranslation via Sharpen  XobotOS
    15. 15. Xamarin Android  Activity  Intent  Resources  Services
    16. 16. Xamarin Android UI
    17. 17. Xamarin Android Demo
    18. 18. Model –View -ViewModel ViewModel Model get/set Properties callCommands notify changes some messaging Whatever C# you like! View View ViewModel ViewModel Model Model
    19. 19. Mvvm Cross PlatformView ViewModel Model SharedPlatform Specific get/set Properties callCommands notify changes some messaging Whatever C# you like! View View ViewModel ViewModel Model Model
    20. 20. MVVMCross – Dev Flow 1. Create Services – ‘Back end’ – PCL .cs 2. CreateViewModels – PCL .cs 3. CreateViews • .AXML - Mono for Android – (tablet and) phone • .XIB and .cs - MonoTouch for iOS – iPad and iPhone • .XAML -WP7 andWinRT
    21. 21. MVVM Cross - Binding
    22. 22. MVVMCross - Converter
    23. 23. MVVMCross - Converter
    24. 24. MVVMCross - Command
    25. 25. MVVMCross Demo
    26. 26. MVVMCross – UI Generics  List  Form
    27. 27. MVVMCross - Generics  Tabs | Pivot | Panorama
    28. 28. Multiplatform Solution - PushSharp
    29. 29. Multiplatform Solution - PushSharp
    30. 30. PushSharp iOS
    31. 31. PushSharpAndroid
    32. 32. PushSharp –Windows Phone
    33. 33. Umbraco CMS SQL Server Custom WebAPI (JSON + REST) Core Logic, including: - REST client - Caching - ViewModels SQLite XAML (Win8) XAML(WP8) AXML(Android) XIB/SB (iOS) Shared Entities Client Apps Server PCL PCL .Net4 .Net4 Xamarin.iOS Xamarin.Android Silverlight WinRT
    34. 34. Demo  Prebuilt  Employee Directory App  Field Service App  Xamarin Store
    35. 35. Xamarin DevelopersVietnam  https://www.facebook.com/groups/860110274003469/  http://www.meetup.com/Xhackers-Vietnam/  XamarinTurns 3 event in June.

    ×