How do I set the font of a TextBox
from a string
in the code behind?
// example txtEditor.FontFamily = "Consolas";
txtEditor.FontFamily = new FontFamily("Consolas"); // the Media namespace
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With