title: Setting up font of TextBox from code behind
body: <p>How do I set the font of a <code>TextBox</code> from a <code>string</code> in the code behind?</p>
  <pre><code>// example
  txtEditor.FontFamily = &quot;Consolas&quot;;
  </code></pre>