Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Xamarin, X marks the spot by Roman Rudyak

GDG Ternopil
September 15, 2015

Xamarin, X marks the spot by Roman Rudyak

Xamarin, X marks the spot by Roman Rudyak

GDG Ternopil

September 15, 2015
Tweet

More Decks by GDG Ternopil

Other Decks in Programming

Transcript

  1. using Xamarin.Forms; var profilePage = new ContentPage { Title =

    "Profile", Icon = "Profile.png", Content = new StackLayout { Spacing = 20, Padding = 50, VerticalOptions = LayoutOptions.Center, Children = { new Entry { Placeholder = "Username" }, new Entry { Placeholder = "Password", IsPassword = true }, new Button { Text = "Login", TextColor = Color.White, BackgroundColor = Color.FromHex("77D065") }}} }; var settingsPage = new ContentPage { Title = "Settings", Icon = "Settings.png", (...) }; var mainPage = new TabbedPage { Children = { profilePage, settingsPage } }; Author your UI in C# or XAML. Xamarin.Forms pages represent single screens within an app. Pages contain layouts, buttons, labels, lists, and other common controls. Connect these controls to shared backend code and you get fully native iOS, Android, and Windows Phone apps built entirely with shared C#.
  2. Xamarin.Forms is best for: Data entry apps Prototypes and proofs-of-concept

    Apps that require little platform-specific functionality Apps where code sharing is more important than custom UI Xamarin.iOS & Xamarin. Android are best for: Apps that require specialized interactions Apps with highly polished design Apps that use many platform-specific APIs Apps where custom UI is more important than code sharing
  3. IDE Mac OS Xamarin Studio for iOS and Android Windows

    Xamarin Studio for iOS, Android and Windows Phone Visual Studio for iOS, Android and Windows Phone For iOS requires Mac OS machine for compilation and run Linux Not supported
  4. Community & Libraries Xamarin.Forms: • binding out of the box

    • XAML Xamarin could be used: • MVVMCross • MVVMLight • Prism • Unity