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