From the course: Xamarin.Forms Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Prepare for custom renderers - Xamarin Tutorial
From the course: Xamarin.Forms Essential Training
Prepare for custom renderers
- In addition to using native controls, like we just saw, we can also write our own renderers. And what that means is we can define a control in our shared project, and then have a renderer for each platform that knows how to render that control on that particular platform. So for example, we have our entry here for the quantity, I'm going to go ahead and copy that, paste it here. And then we'll go ahead and simply toggle the comments on that, so we comment that out. Let's go ahead and collapse this. Now what I want to do is have my own control, because I want, in a quantity field, if the keyboard pops up on screen, for that to be a numeric keyboard. And so I want to be able to type local:Entry, and have that be my own control. You remember from before, those name spaces, that we declare these up here. So we have XML name space local equals, And there's our HplusSports. And we can add the assembly, and that's…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.