public UcColorPreview(Color color) { InitializeComponent(); Color = color; BorderColor_Main.MouseDown += (sender, args) => { var dialog = new WindowColorPicker(Owner, Color); dialog.ShowDialog(); if (dialog.Saved) { Color = dialog.Color; } }; }