Learn how to use the OnPlatform class in Xamarin.Forms pages to provide OS-specific values for properties on the page's controls.
- [Instructor] As we've seen in the course of building…our application, everything's not gonna render…or work perfectly on all the platforms out of the box.…We should expect that there's going to be times…when you'll need to make small adjustments…based on the platform you're running on…and based on the type of device that you're running on.…This is especially true if we look…at some of the relative layouts and stack layouts…that we've been using.…One of the things I want to show you is…how to make those changes to your user interfaces,…and then we'll start looking at some other tools…that we can use to address those needs to write code…that runs on the native platform,…but still lets us leverage that shared library.…
One of the problems we saw at the end of our last example…was that the button for ordering on our product detail page…didn't quite look right on Android,…that's because our relative constraints look like they need…to be a little different on Android than on iOS.…If we go find our buttons here then,…
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: Using OnPlatform