Farkas Blint Technical Evangelist Microsoft Tematika Tbbplatformos appfejleszts

  • Slides: 29
Download presentation
Farkas Bálint | Technical Evangelist | Microsoft

Farkas Bálint | Technical Evangelist | Microsoft

Tematika Többplatformos appfejlesztés Xamarinnal és Visual Studióval 01 | Bevezetés a Xamarinba 02 |

Tematika Többplatformos appfejlesztés Xamarinnal és Visual Studióval 01 | Bevezetés a Xamarinba 02 | Mobilalkalmazás alapok, Windows Universal Apps 03 | Android natív GUI-val 04 | i. OS natív GUI-val 05 | Xamarin Forms, kódosztási technikák 06 | Azure Mobile Services és Xamarin 07 | Xamarin. UITest, Xamarin Cloud

04 | i. OS natív GUI-val Farkas Bálint | Technical Evangelist | Microsoft

04 | i. OS natív GUI-val Farkas Bálint | Technical Evangelist | Microsoft

Module Overview • Hogy működik a Xamarin. i. OS? • i. OS appok életciklusa,

Module Overview • Hogy működik a Xamarin. i. OS? • i. OS appok életciklusa, struktúrája • UITable. View-k használata • Storyboardok használata • A Map. Kit használata

Hogy működik a Xamarin. i. OS?

Hogy működik a Xamarin. i. OS?

Mi a Xamarin? C# Xamarin

Mi a Xamarin? C# Xamarin

Build + Execution Model • Features – Code runs as 100% native app –

Build + Execution Model • Features – Code runs as 100% native app – “Ahead of Time” (AOT) Compiling – Generic Classes from NSObject • Some Limitations – Dynamic Code Generation • Cannot use Reflection. Emit – No Remoting • More Info http: //bit. ly/Zjz. ENy

i. OS Runtime Model App Native Code Mono Runtime . NET BCL Native APIs

i. OS Runtime Model App Native Code Mono Runtime . NET BCL Native APIs Map. Kit UIView. Controller Health. Kit Etc. i. OS

DEMO Xamarin. i. OS beüzemelése (Mac/Mac. In. Cloud, Xamarin Studio, pairing)

DEMO Xamarin. i. OS beüzemelése (Mac/Mac. In. Cloud, Xamarin Studio, pairing)

i. OS appok életciklusa, struktúrája

i. OS appok életciklusa, struktúrája

Not Running Foreground Inactive Active Backgrounded Suspended Xamarin. i. OS notifies us of all

Not Running Foreground Inactive Active Backgrounded Suspended Xamarin. i. OS notifies us of all these states using various overrides in App. Delegate. cs

App. Delegate. cs State Method Not Running On. Activated(UIApplication) Active On. Resign. Activation Inactive

App. Delegate. cs State Method Not Running On. Activated(UIApplication) Active On. Resign. Activation Inactive Did. Enter. Backgrounded Will. Enter. Foreground Suspended Will. Terminate

Views App. Delegate. cs View. Controller. cs App. Delegate UIView. Controller Storyboard

Views App. Delegate. cs View. Controller. cs App. Delegate UIView. Controller Storyboard

Model-View-Controller (MVC) Model Updates UI View User Sees Changes Model Controller Performs Action

Model-View-Controller (MVC) Model Updates UI View User Sees Changes Model Controller Performs Action

DEMO Application Properties, Lifecycle & Structure – Heritage Properties

DEMO Application Properties, Lifecycle & Structure – Heritage Properties

UITable. View-k használata

UITable. View-k használata

Parts of a Table. View UITable. View. Source Data UITable. View. Data. Source UITable.

Parts of a Table. View UITable. View. Source Data UITable. View. Data. Source UITable. View. Delegate UITable. View. Cell

DEMO Loading Data in Table. View – Heritage Properties

DEMO Loading Data in Table. View – Heritage Properties

Storyboardok használata

Storyboardok használata

Storyboards & Segues

Storyboards & Segues

DEMO Navigating to a Details View – Heritage Properties

DEMO Navigating to a Details View – Heritage Properties

A Map. Kit használata

A Map. Kit használata

i. OS Maps - Map. Kit

i. OS Maps - Map. Kit

// in View. Did. Load you can do the following var map = new

// in View. Did. Load you can do the following var map = new MKMap. View (UIScreen. Main. Screen. Bounds); View = map;

// add a pin – called Annotation map. Add. Annotation (new MKPoint. Annotation (){

// add a pin – called Annotation map. Add. Annotation (new MKPoint. Annotation (){ Title=“My Pin", Coordinate = new CLLocation. Coordinate 2 D (-79. 71332, 43. 39523) });

DEMO Loading Data in Map View – Heritage Properties

DEMO Loading Data in Map View – Heritage Properties

Module Recap • Hogy működik a Xamarin. i. OS? • i. OS appok életciklusa,

Module Recap • Hogy működik a Xamarin. i. OS? • i. OS appok életciklusa, struktúrája • UITable. View-k használata • Storyboardok használata • A Map. Kit használata

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U. S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.