public ColorPresenter(string title, Color foreground, int width) : base(width, 1) { textSurface.DefaultForeground = foreground; Clear(); _title = title; _popup = new Windows.ColorPickerPopup(); _popup.Closed += (o, e) => { if (_popup.DialogResult) SelectedColor = _popup.SelectedColor; }; }
public ColorPresenter(string title, Color foreground, int width) : base(width, 1) { textSurface.DefaultForeground = foreground; Clear(); _title = title; _popup = new Windows.ColorPickerPopup(); _popup.Closed += (o, e) => { if (_popup.DialogResult) { SelectedColor = _popup.SelectedColor; } }; }