Filling the Gaps: How To Build a Custom Control in Xamarin.Forms
Xamarin.Forms provides a wide variety of basic cross-platform native mobile controls, but sometimes you need to step out of the box and build your own. At ComponentOne, that’s our gig: we create custom controls. Soon you will, too.
Extend your Xamarin controls and your development
ComponentOne Studio for Xamarin's product manager will walk you through basic, intermediate, and advanced methods of custom control development, Xamarin structure, and platform-specific requirements.
Start building cross-platform native mobile apps today!
In this white paper, you'll learn:
- How to extend basic, out-of-the-box Xamarin controls and create advanced controls like custom color pickers and numeric text boxes
- How to get more functionality in Xamarin.Forms by creating controls with custom renderers and dependency services for iOS and Android
- How to create your own native custom control from the ground up and use it in Xamarin.Forms
You'll also get:
- Step-by-step instructions on writing XAML, code-behind, classes, and more
- Understanding of the limitations of each method
- iOS and Android implementations of each example
The relationship hierarchy of Xamarin.Forms, the Xamarin.Platforms, and the native platforms. The basic approach is applied at the Xamarin.Forms level, written entirely in C#. The intermediate approach is applied at the Xamarin.Platform level, written in C# with some knowledge of the native platform’s API. The advanced approach is applied at the pure native level, and is written in the appropriate native platform language.
Tell us where to send the white paper!
About the Author
Kelley Ricker, product manager of ComponentOne Studio for Xamarin, leads MESCIUS' line of cross-platform native mobile UI controls, focusing primarily on the Xamarin platform. He develops roadmaps, works with developers, and develops blogs, code samples, and sample applications. He’s worked in Developer Relations for MESCIUS, and before that, at an Apple Store around the first boom in mobile devices.