protected override Control CreatePresenter()
        {
            if (_picker == null)
            {
                _picker = new ColorPicker();
            }

            var pfp = new PickerFlyoutPresenter()
            {
                Content = _picker
            };

            pfp.Confirmed += OnFlyoutConfirmed;
            pfp.Dismissed += OnFlyoutDismissed;

            return(pfp);
        }
 private void OnFlyoutConfirmed(PickerFlyoutPresenter sender, object args)
 {
     OnConfirmed();
 }
 private void OnFlyoutDismissed(PickerFlyoutPresenter sender, object args)
 {
     Hide();
     Dismissed?.Invoke(this, null);
 }