Skip to content

Instantly share code, notes, and snippets.

@pictos
Created March 12, 2019 18:40
Show Gist options
  • Save pictos/52fc0c65e67e4c638737d7bca9e14dc3 to your computer and use it in GitHub Desktop.
Save pictos/52fc0c65e67e4c638737d7bca9e14dc3 to your computer and use it in GitHub Desktop.
using VisualTest.iOS;
using Xamarin.Forms;
using Xamarin.Forms.Platform.iOS;
[assembly: ExportRenderer(typeof(Xamarin.Forms.Picker), typeof(MyPicker), new[] { typeof(VisualTest.TestVisual) })]
namespace VisualTest.iOS
{
public class MyPicker : PickerRenderer
{
protected override void OnElementChanged(ElementChangedEventArgs<Picker> e)
{
base.OnElementChanged(e);
Control.BackgroundColor = Xamarin.Forms.Color.Yellow.ToUIColor();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment