private void MenuItem_KolorTła_Click(object sender, RoutedEventArgs e) { Color kolorTła = Colors.White; if (textBox.Background is SolidColorBrush) { kolorTła = (textBox.Background as SolidColorBrush).Color; } if (WindowsFormsHelper.ChooseColor(ref kolorTła)) { textBox.Background = new SolidColorBrush(kolorTła); } }