Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF SharedSizeGroup GridSplitter Issue
    text
    copied!<p>I wish to use a Grid for my top level layout. The Grid will have 1 column and n rows. Each row in the Grid should also contain a Grid which shall have 3 columns and 1 row. In the second column is a GridSplitter and I am trying to use a SharedSizeGroup so that this changes the size of the first column across all of the nested Grids.</p> <p>Here is what i have...and it works!!...well kind of...if you click the splitter and resize without letting go it works...but for some reason if you resize something and let go of the mouse and then attempt to resize using a different row it seems to "stick". </p> <p>Any ideas?</p> <pre><code>&lt;!-- Parent Grid --&gt; &lt;Grid Grid.IsSharedSizeScope="True"&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition&gt;&lt;/RowDefinition&gt; &lt;RowDefinition&gt;&lt;/RowDefinition&gt; &lt;/Grid.RowDefinitions&gt; &lt;!-- First Grid --&gt; &lt;Grid Grid.Row="0"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition SharedSizeGroup="A" Width="Auto"&gt;&lt;/ColumnDefinition&gt; &lt;ColumnDefinition SharedSizeGroup="B" Width="Auto"&gt;&lt;/ColumnDefinition&gt; &lt;ColumnDefinition SharedSizeGroup="C" Width="Auto"&gt;&lt;/ColumnDefinition&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Label Grid.Column="0"&gt;One-Left&lt;/Label&gt; &lt;GridSplitter Grid.Column="1" Width="5" Background="DarkGray"&gt;&lt;/GridSplitter&gt; &lt;Label Grid.Column="2"&gt;One-Right&lt;/Label&gt; &lt;/Grid&gt; &lt;!-- Second Grid --&gt; &lt;Grid Grid.Row="1"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition SharedSizeGroup="A" Width="Auto"&gt;&lt;/ColumnDefinition&gt; &lt;ColumnDefinition SharedSizeGroup="B" Width="Auto"&gt;&lt;/ColumnDefinition&gt; &lt;ColumnDefinition SharedSizeGroup="C" Width="Auto"&gt;&lt;/ColumnDefinition&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Label Grid.Column="0"&gt;Two-Left&lt;/Label&gt; &lt;GridSplitter Grid.Column="1" Width="5" Background="DarkGray"&gt;&lt;/GridSplitter&gt; &lt;Label Grid.Column="2"&gt;Two-Right&lt;/Label&gt; &lt;/Grid&gt; &lt;/Grid&gt; </code></pre>
 

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