Created
March 12, 2019 18:40
-
-
Save pictos/52fc0c65e67e4c638737d7bca9e14dc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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