Пример #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var window = new BrushPickerWindow();

            if (window.ShowDialog() == true)
            {
                wrapPanel.Background = window.NowBrush;
            }
        }
Пример #2
0
        public MainWindow()
        {
            InitializeComponent();

            var window = new BrushPickerWindow();

            if (window.ShowDialog() == true)
            {
                wrapPanel.Background = window.NowBrush;
            }
        }