How do I set the font of a TextBox from a string in the code behind?
TextBox
string
// example txtEditor.FontFamily = "Consolas";
One simple way to do it globally, programmatically:
public MainWindow() { this.FontFamily = new FontFamily("Segoe UI"); }