protected override void OnClick() { base.OnClick(); if (_onShowDialogListener != null) { _onShowDialogListener.OnShowColorPickerDialog(Title, _color); } else if (_showDialog) { var dialog = ColorPickerDialog.NewBuilder() .SetDialogType(_dialogType) .SetDialogTitle(_dialogTitle) .SetColorShape(_colorShape) .SetPresets(_presets) .SetAllowPresets(_allowPresets) .SetAllowCustom(_allowCustom) .SetShowAlphaSlider(_showAlphaSlider) .SetShowColorShades(_showColorShades) .SetColor(_color) .Create(); dialog.SetColorPickerDialogListener(this); var activity = (Activity)Context; dialog.Show(activity.FragmentManager, GetFragmentTag()); } }