Creating Custom Controls
Just like any other development platform, it is also possible to create custom views/controls that look, behave, and render differently compared to out-of-the-box Xamarin.Forms controls. However, creating a custom control doesn't mean that the complete Xamarin.Forms render infrastructure needs to be implemented for target platforms along with the shared domain. Depending on the UX and platform requirements, the following can occur:
- Custom controls can be created solely as a composition of other Xamarin.Forms controls.
- Existing Xamarin.Forms controls can be modified with custom renderers on different platforms.
- Custom Xamarin.Forms controls can be created with custom renderers.
Creating a Xamarin.Forms control
A Xamarin.Forms control can be created for various reasons, one of which is to decrease the clutter in your XAML tree and create reusable view blocks. Let's begin.
First, we will take a step back and look at the validatable...