Beispiel #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var window = new BrushPickerWindow();

            if (window.ShowDialog() == true)
            {
                wrapPanel.Background = window.NowBrush;
            }
        }
Beispiel #2
0
        public MainWindow()
        {
            InitializeComponent();

            var window = new BrushPickerWindow();

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