Interaction logic for WindowColorPicker.xaml
Inheritance: System.Windows.Window
Exemplo n.º 1
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;
                }
            };
        }
Exemplo 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;
                }
            };
        }