I've got 2 Columns
that are divided by a GridSplitter
. And I want to set the MaxWidth of the columns in percentage (e.g. 5*
) but it doesn't work. Is there any other way to do it?
<Grid.ColumnDefinitions>
<ColumnDefinition Width="6*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<GridSplitter ResizeDirection="Columns"
Grid.Column="0"
HorizontalAlignment="Right"
VerticalAlignment="Stretch"
Height="auto"
Background="#c1c1c1"
BorderBrush="#c1c1c1"
BorderThickness="1"/>