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); } }
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); } }