title: Make WPF TextBox Margins Clickable/Selectable
body: <p>I have a WPF <code>TextBox</code> with a white background. I've given it some <code>Padding</code> so that the text has a "margin" around it (akin to the margins in, say, MS Word).</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;TextBox x:Name="MyTextBox" Padding="25" /&gt;
  </code></pre>
  
  <p>Unlike in Word, however, this blank area around the text is not "active" (see color-coded illustration below). Clicking within it (the red section) doesn't move the textbox's caret, nor will it begin a selection. Note, however, that the <em>entire</em> green area <em>is</em> active - even the blank space below the text (meaning you can click within it to move the caret or start a selection)...</p>
  
  <p><a href="https://i.stack.imgur.com/amK8h.png" rel="noreferrer"><img src="https://i.stack.imgur.com/amK8h.png" alt="textbox with colored alive/dead zones"></a></p>
  
  <p>So, my question is this: Is there any way to add space around a<code>TextBox</code> that is blank but is also part of the editable area (so that it will react to clicks/selections, like the blank area of the green section does)?</p>
  
  <p>Thanks!</p>
  
  <p>p.s. The closest I've come in my search for an answer was this: <a href="https://stackoverflow.com/questions/19979523/how-to-set-the-margin-on-a-internal-textboxview-in-wpf/28650200#28650200">How to set the margin on a internal TextBoxView in wpf</a>... However, while increasing the <code>Margin</code> of the inner <code>TextBoxView</code> does increase the space around the text, that space still doesn't seem to be "active" in any way... And it seems like the <code>TextBoxView</code> doesn't have a <code>Padding</code> property, so I can't try that (though I imagine <code>Padding</code> is more likely to be the solution than a <code>Margin</code>)...</p>