How do I set the font of a TextBox from a string in the code behind?
TextBox
string
// example txtEditor.FontFamily = "Consolas";
txtEditor.FontFamily = new FontFamily("Consolas"); // the Media namespace