Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Cross-Platform Native User Interfaces with Xama...
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Mauricio Contreras
December 06, 2016
Programming
34
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Cross-Platform Native User Interfaces with Xamarin.Forms
Mauricio Contreras
December 06, 2016
Transcript
32 slides
None
None
Enfoque tradicional de Xamarin Con Xamarin.Forms: compartes más código, todo
nativo ☺ iOS C# UI Windows C# UI Android C# UI Backend C# Compartido Código UI Compartido Backend C# Compartido
✓ 40+ Páginas, layouts, y controles (Constrúyelos desde code behind
o con XAML) ✓ Two-way data binding ✓ Navegación ✓ API de animaciones ✓ Dependency Service ✓ Messaging Center Backend C# Compartido Código UI compartido
Layouts Pages Stack Absolute Relative Grid ContentView ScrollView Frame Content
MasterDetail Navigation Tabbed Carousel
ActivityIndicator BoxView Button DatePicker Editor Entry Image Label ListView Map
OpenGLView Picker ProgressBar SearchBar Slider Stepper TableView TimePicker WebView EntryCell ImageCell SwitchCell TextCell ViewCell
Ecosistema Xamarin.Forms
Windows Xamarin.Forms StackPanel StackLayout TextBox Entry ListBox ListView CheckBox Switch
ProgressBar ActivityIndicator Grid Grid Label Label Button Button Image Image Date/TimePicker Date/TimePicker
Windows Xamarin.Forms DataContext BindingContext {Binding Property} {Binding Property} ItemsSource ItemsSource
ItemTemplate ItemTemplate DataTemplate DataTemplate
None
<?xml version="1.0" encoding="UTF-8"?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="MyApp.MainPage"> <TabbedPage.Children> <ContentPage Title="Profile"
Icon="Profile.png"> <StackLayout Spacing="20" Padding="20" VerticalOptions="Center"> <Entry Placeholder="Username" Text="{Binding Username}"/> <Entry Placeholder="Password" Text="{Binding Password}" IsPassword="true"/> <Button Text="Login" TextColor="White" BackgroundColor="#77D065" Command="{Binding LoginCommand}"/> </StackLayout> </ContentPage> <ContentPage Title="Settings" Icon="Settings.png"> <!-- Settings --> </ContentPage> </TabbedPage.Children> </TabbedPage>
None
None
Xamarin.Forms es Open Source! open.xamarin.com
None
✓ Mejora el rendimiento al hacer scrolling ✓ El comportamiento
antiguo está por defecto (pero cambiará en un futuro cercano)
XAML Parsed and inflated Parsed & turned into IL XAMLC
✓ Carga más rápido ✓ Disminuye el peso de la
app ✓ Ver errores XAML en tiempo de compilación (build-time)
None
None
• Embeddable Carousel • ItemTemplate & DataTemplates • Altamente customizable
✓ Custom renderer “lite” ✓ Cambia propiedades en los controles
nativos ✓ Opcional ✓ “stringly-typed” X Sin métodos o eventos X Sin reemplazar el control
entry.Effects.Add (Effect.Resolve("Xamarin.BorderEffect"));
None
None
None
https://developer.xamarin.com/guides/xamarin-forms/datapages/
https://developer.xamarin.com/guides/xamarin-forms/themes/
Embedding Nativo
None
Preguntas. Mauricio Andrés Contreras Microsoft MVP Xamarin Certified Mobile Developer
[email protected]
maurodev.ninja @mauroDevNinja
http://mva.microsot.com http://channel9.microsoft.com http://university.xamarin.com https://developer.xamarin.com/guides/xamarin- forms/ https://aka.ms/XamarinIntermediate
More Decks by Mauricio Contreras
See All by Mauricio Contreras
Azure DevOps para Desarrolladores .NET
maurocon3ras
0
32
Deployments and DevOps with AKS and Azure DevOps
maurocon3ras
0
88
Cómo desplegar aplicaciones de manera más rápida y segura
maurocon3ras
0
26
Introducción a Azure DevOps
maurocon3ras
0
140
Graph <3 Azure Functions
maurocon3ras
0
41
De Dev a DevOps con Visual Studio App Center
maurocon3ras
0
28
De Dev a DevOps - NETConf v18
maurocon3ras
0
34
Desarrollo nativo para Android, iOS y Windows con Xamarin
maurocon3ras
0
87
Aprovecha al máximo tu web app con PWA en Windows
maurocon3ras
0
39
Other Decks in Programming
See All in Programming
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
2
520
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
3
1.1k
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1.1k
マルチプロダクトSaaSの アプリ一覧を速くする——複数プロダクトにまたがる「権限行脚」を減らすまで #techramen26conf
mktakuya
1
260
Canvas 2D Context Next
petamoriken
0
720
Debian JP Projectのサーバー構成
uwabami
1
190
The Cost of the DOM
ypresto
3
1.1k
なぜ私たちは「現時点では」KMPの導入を見送ったのか
chigichan24
1
650
Spec-driven Development with AI
simas
PRO
0
2.3k
[DroidKnights 2026] Workflow AX 적용기 — 자동 정책 정리부터 E2E까지
dayeon
0
130
Stage 3でも仕様は変わる。アプリケーション開発者のためのTC39プロセスの読み方
bicstone
1
980
Featured
See All Featured
Reflections from 52 weeks, 52 projects
jeffersonlam
356
22k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
830
Automating Front-end Workflow
addyosmani
1370
210k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.6k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
480
Building AI with AI
inesmontani
PRO
1
1.4k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Visualization
eitanlees
153
17k
A Modern Web Designer's Workflow
chriscoyier
699
190k
GraphQLとの向き合い方2022年版
quramy
50
15k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k