title: Limit maximum width of "Auto" column in WPF data grid
body: <p>I have a standard WPF grid with 2 columns defined as:</p>
  
  <pre><code>&lt;Grid&gt;
      &lt;Grid.ColumnDefinitions&gt;
          &lt;ColumnDefinition Width="*" MinWidth="200" /&gt;
          &lt;ColumnDefinition Width="Auto" /&gt;
      &lt;/Grid.ColumnDefinitions&gt;
      ...
  &lt;/Grid&gt;
  </code></pre>
  
  <p>What I want to achieve is that the second column is automatically sized based on its content and the first column gets all remaining space. However I also want the first column to never have less than 200 pixels. The problem is that with this configuration my auto column will be cut off instead of being resized.</p>
  
  <p>What I really want is WPF to first assign 200 pixels to the first columns, then take all remaining space and ask the content of the second column to size itself with a maximum size restriction of the remaining width. If the content needs less space, it should assign the remaining space to the first column (making it bigger than the 200 pixel).</p>
  
  <p><strong>Use case:</strong> My second column is an image with a fixed aspect ratio, so that for a given height there is an optimal width. I also have a first column with some controls that should always be visible. If there is more space available than needed I would like to assign the space to the first column instead of the second.</p>
  
  <p>Is there a way to achieve this with default WPF controls or do I need to write my own Grid for this?</p>