title: WPF: Can i set the width of an element by percentages?
body: <p>Say I have 2 buttons in an Element and I want to set the 2 elements to always fill up  1/2 width of its containing element each, can i do that?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>why cant i do something like</p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal" Grid.Row="0"&gt;
      &lt;Button Content="Click me" Command="{Binding ClickCommand}" Width="1*" /&gt;
      &lt;Button Content="Exit" Command="{Binding CloseCommand}" Width="1*" /&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>why doesnt the 1* work in this context? i get the error </p>
  
  <blockquote>
    <p>Cannot convert "1*"</p>
  </blockquote>