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