protected override void OnElementChanged(VisualElementChangedEventArgs e)
        {
            base.OnElementChanged(e);

            xamarinView                 = e.NewElement as PickerColorSelectorView;
            picker                      = InfColorPickerController.ColorPickerViewController;
            picker.View.Frame           = new CGRect(0, 50, View.Frame.Width, NativeView.Frame.Height - 50);
            xamarinView.BackgroundColor = picker.View.BackgroundColor.ToColor();
            NativeView.Add(picker.View);
        }
Ejemplo n.º 2
0
        protected override void OnElementChanged(ElementChangedEventArgs <Page> e)
        {
            base.OnElementChanged(e);

            xamarinView = e.NewElement as PickerColorSelectorView;

            ColorPickerDialog colorPickerDialog = CreateColorPickerDialog(_context);

            colorPickerDialog.SetOnColorPickedListener(this);
            colorPickerDialog.SetOnClosedListener(this);

            colorPickerDialog.Show();
        }