Exemple #1
0
 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();
 }
Exemple #2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     fontChooser fc = new fontChooser(this, false);
     fc.ShowDialog();
 }