public colorChooser(Window1 w) { w_Cur = w; InitializeComponent(); fc = null; bg = false; setUpColors(); }
private void button1_Click(object sender, RoutedEventArgs e) { fontChooser fc = new fontChooser(this, true); fc.textBlock1.FontSize = w_Cur.fontSize; fc.textBlock1.FontFamily = w_Cur.FontFamily; fc.textBlock1.Foreground = w_Cur.fontColor; Console.WriteLine(w_Cur.FontFamily.ToString()); fc.fontCombo.SelectionMode = SelectionMode.Single; //fc.fontCombo.SetValue(w_Cur.FontFamily.ToString()); fc.ShowDialog(); }
private void button1_Click(object sender, RoutedEventArgs e) { fontChooser fc = new fontChooser(this, false); fc.ShowDialog(); }