상속: Android.Views.View
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            var cPickerView = new RoundColorPickerView(Context, _initialColor);
            cPickerView.ColorChanged += delegate(object sender, ColorChangedEventArgs args)
                                        {
                                            if (ColorChanged != null)
                                                ColorChanged(this, args);

                                            Dismiss();
                                        };
            SetContentView(cPickerView);
            SetTitle("Pick a Color");
        }
예제 #2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            var cPickerView = new RoundColorPickerView(Context, _initialColor);

            cPickerView.ColorChanged += delegate(object sender, ColorChangedEventArgs args)
            {
                if (ColorChanged != null)
                {
                    ColorChanged(this, args);
                }

                Dismiss();
            };
            SetContentView(cPickerView);
            SetTitle("Pick a Color");
        }