Interaction logic for WindowColorPicker.xaml
Inheritance: System.Windows.Window
コード例 #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;
                }
            };
        }
コード例 #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;
                }
            };
        }