Exemplo n.º 1
0
 void fontWeightTextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     // If user enters weight text, select weight in list if matching item found
     if (FontPropertyLists.CanParseFontWeight(this.fontWeightTextBox.Text))
     {
         this.FontWeight = FontPropertyLists.ParseFontWeight(this.fontWeightTextBox.Text);
     }
 }
Exemplo n.º 2
0
 void fontStyleTextBox_TextChanged(object sender, TextChangedEventArgs e)
 {
     // If user enters style text, select style in list if matching item found
     if (FontPropertyLists.CanParseFontStyle(this.fontStyleTextBox.Text))
     {
         this.FontStyle = FontPropertyLists.ParseFontStyle(this.fontStyleTextBox.Text);
     }
 }