title: How to stretch in width a WPF user control to its window?
body: <p>I have a Window with my user control and I would like to make usercontrol width equals window width. How to do that?</p>
  
  <p>The user control is a horizontal menu and contains a grid with three columns:</p>
  
  <pre><code>&lt;ColumnDefinition Name="LeftSideMenu" Width="433"/&gt;
  &lt;ColumnDefinition Name="Middle" Width="*"/&gt;
  &lt;ColumnDefinition Name="RightSideMenu" Width="90"/&gt;
  </code></pre>
  
  <p>That is the reason I want the window width, to stretch the user control to 100% width, with the second column relative.</p>
  
  <p>EDIT:</p>
  
  <p>I am using a grid, there is the code for Window:</p>
  
  <pre><code>&lt;Window x:Class="TCI.Indexer.UI.Operacao"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:tci="clr-namespace:TCI.Indexer.UI.Controles"
      Title=" " MinHeight="550" MinWidth="675" Loaded="Load" ResizeMode="NoResize" WindowStyle="None" WindowStartupLocation="CenterScreen" WindowState="Maximized" Focusable="True"
      x:Name="windowOperacao"&gt;
      &lt;Canvas x:Name="canv"&gt;
          &lt;Grid&gt;
              &lt;tci:Status x:Name="ucStatus"/&gt; &lt;!-- the control which I want to stretch in width --&gt;
          &lt;/Grid&gt;
      &lt;/Canvas&gt;
  &lt;/Window&gt;
  </code></pre>