Learn about the Xamarin.Forms application model and lifecycle events handling in shared class.
- [Instructor] Xamarin.Forms is gonna have…our user interface, and it's gonna be initialized…from our separate platforms.…As such, when we look in the shared library,…we'll see this app dot xaml file…that represents the Xamarin.Forms application.…Not to be confused with the applications in Android or iOS,…this is a core piece of our shared library in our shared UI.…We can see the xaml file for app dot xaml…allows us to define application-wide resources,…where we might define styles or templates…that we want to reuse, and we can go…into the app dot xaml CS and you'll notice…that as an application, it has a lifecycle.…
We have an OnStart(), an OnSleep(), and an OnResume().…Now, we might want to put some code in here…that loads some data or saves some data…when that happens, so I could use ProductService,…and I'll fix that by adding using statement,…and since we're starting, I might want to load a wishlist,…so one of the things that we'll do in the application…is allow users to tag a particular product as a favorite,…
Author
Released
10/11/2018- Creating a Xamarin.Forms solution
- Navigating between pages
- Screen layouts and controls in Xamarin.Forms
- Data binding
- Adding style to a control
- Using a Xamarin.Essentials package
- Embedding native controls in your shared forms
- Writing custom renderers
Skill Level Beginner
Duration
Views
Related Courses
-
Xamarin Development: Authentication and Identity
with Matt Milner1h 32m Intermediate
-
Introduction
-
What you should know1m 21s
-
1. Xamarin.Forms
-
Xamarin.Forms in context2m 14s
-
Xamarin.Forms Pages4m 22s
-
Navigating between pages2m 44s
-
-
2. Layout and Controls
-
Xamarin.Forms Layouts5m 22s
-
Using relative layouts3m 43s
-
Binding to entry fields5m 38s
-
Adding style to a control2m 16s
-
Using ScrollView1m 30s
-
-
3. Native Platform Integration
-
Using OnPlatform5m 7s
-
Using OnIdiom1m 46s
-
iOS service implementation2m 57s
-
-
4. Native Controls and Renderers
-
Adding an iOS control4m 33s
-
Adding an Android control2m 35s
-
Android renderer2m 47s
-
iOS renderer2m 13s
-
Conclusion
-
Next steps39s
-
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: The Xamarin.Forms Application