Customizing native domains
Native customizations of UI controls can vary from simple platform-specific adjustments to creating a completely custom native control to replace the existing platform renderer. In this section, we will implement customizations on quadrant III, departing from the platform-agnostic domain. We will take a closer look at platform specifics and Xamarin effects.
Platform specifics
While the UI controls offered by Xamarin.Forms are customizable enough for most UX requirements, additional native behaviors might be needed. For certain native control behaviors, a platform-specific configuration can be accessed using the IElementConfiguration
interface implementation of the target control. For instance, in order to change the UpdateMode
picker (that is, Immediately
or WhenFinished
), you can use the On<iOS>
method to access the platform-specific behavior:
var picker = new Xamarin.Forms.Picker(); picker.On<iOS>().SetUpdateMode(UpdateMode.WhenFinished...