title: Enforce control width or height?
body: <p>I have a control for which I need to enforce a certain <code>Width</code> or <code>Height</code>, depending on a property called <code>Orientation</code>, which, obviously can be <code>Vertical</code> or <code>Horizontal</code>.  </p>
  
  <p>So if the <code>Orientation</code> property is <code>Vertical</code>, then the <code>Width</code> <strong>must</strong> <em>always</em> be 2.<br>
  If the <code>Orientation</code> property is <code>Horizontal</code>, then the <code>Height</code> <strong>must</strong> <em>always</em> be 2.  </p>
  
  <p>I have tried many things including <code>MaximumSize</code>, but none of them seem to work well enough.<br>
  As an example... A single-line <code>TextBox</code> (With <code>Multiline</code> set to <code>False</code>.)?</p>