Interaction logic for WindowColorPicker.xaml
Inheritance: System.Windows.Window
        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;
                }
            };
        }
Esempio n. 2
0
        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;
                }
            };
        }