Note that there are some explanatory texts on larger screens.

plurals
  1. POColumnDefinition MinWidth doesn't work correctly
    primarykey
    data
    text
    <p>I'm using a Grid in WPF (xaml) and I'm have some strange effect when using the MinWidth property in a ColumnDefinition. For example, when I use 9 ColumnDefinition and every ColumnDefinition has the 'Width="*"' property and one of the middle columns also has a MinWidth property then the size of the other columns is wrong.</p> <p>Well, it's hard to discribe but this xaml code illustrates it nicely:</p> <pre><code> &lt;Grid Width="500"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*" MinWidth="250"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;ColumnDefinition Width="*"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Border Grid.Column="0" Background="Green"/&gt; &lt;Border Grid.Column="1" Background="Blue"/&gt; &lt;Border Grid.Column="2" Background="Red"/&gt; &lt;Border Grid.Column="3" Background="Yellow"/&gt; &lt;Border Grid.Column="4" Background="Purple"/&gt; &lt;Border Grid.Column="5" Background="Orange"/&gt; &lt;Border Grid.Column="6" Background="Azure"/&gt; &lt;Border Grid.Column="7" Background="LightBlue"/&gt; &lt;Border Grid.Column="9" Background="LightGreen"/&gt; &lt;/Grid&gt; </code></pre> <p>When you run this xaml code you'll see that the first 3 columns have a different width than the last 5 columns. Where I expected all of those to have the same width.</p> <p>Does anyone know if this is a bug. And if there is a way to do this correctly.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload