You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Consider a grid with 3 columns and 2 splitters as following:
<GridVerticalAlignment="Stretch"BorderBrush="{ThemeResource SystemControlHighlightChromeHighBrush}"BorderThickness="0,0,1,1">
<Grid.ColumnDefinitions>
<ColumnDefinitionWidth="300*"MinWidth="100" />
<ColumnDefinitionWidth="Auto"MinWidth="6" />
<ColumnDefinitionWidth="300"MinWidth="32" />
<ColumnDefinitionWidth="Auto"MinWidth="6" />
<ColumnDefinitionWidth="300"MinWidth="32" />
</Grid.ColumnDefinitions>
<Border
Grid.Row="0"
Grid.Column="0"Background="MidnightBlue">
<TextBlockText="This text is in a column with 1* Width - This is what causes the second splitter not to work."TextWrapping="Wrap" />
</Border>
<Border Grid.Row="0" Grid.Column="2">
<TextBlockText="This column resizes properly, and if it's the only one after the 1* column, it also resizes properly."TextWrapping="Wrap" />
</Border>
<Border
Grid.Row="0"
Grid.Column="4"Background="DarkRed">
<TextBlockText="This text Is not resizing - Grid.Column.Width = 300 - ResizeBehavior=PreviousAndNext"TextWrapping="Wrap" />
</Border>
<!-- Column Grid Splitter -->
<controls:GridSplitter
Grid.Column="1"Width="16"ResizeBehavior="PreviousAndNext"ResizeDirection="Auto" />
<!-- Row Grid Splitter -->
<controls:GridSplitter
Grid.Column="3"Width="16"ResizeBehavior="PreviousAndNext"ResizeDirection="Auto" />
</Grid>
Splitter at Column 1 works fine, but splitter at Column 3 does not resize Column 4 as expected.
Describe the bug
"CommunityToolkit.WinUI.Controls.Sizers" Version="8.0.240109"Consider a grid with 3 columns and 2 splitters as following:
Splitter at Column 1 works fine, but splitter at Column 3 does not resize Column 4 as expected.
Steps to reproduce
Run the attached sample.
GridSplitterBug.zip
Expected behavior
Given that the splitter is configured to resize PreviousAndNext, it is supposed to resize both columns.
Screenshots
GridSplitter.Bug.2024-02-19.222346.mp4
Code Platform
Windows Build Number
Other Windows Build number
Any version of windows
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
latest
Device form factor
Desktop
Additional context
Help us help you
Yes, I'd like to be assigned to work on this item.