M
mp
the following xaml gives me a form with 4 listboxes
the listboxes resize horizontally correctly as the form is stretched
they do not resize vertically as the form is stretched
the margins above/below the listboxes and the top/bottom edge of form
increases as the form is stretched larger in height
how do i make the bottom edge of the listboxes stick to the bottom edge of
the form?
i tried
<Grid Height="568*" >
thinking the * told a control to follow it's container but it gives an error
Error 1 '568*' string cannot be converted to Length.
thanks
mark
<Window x:Class="LispViewer.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="590" Width="1106" Loaded="Window_Loaded">
<Grid Height="568" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="375*" />
<ColumnDefinition Width="375*" />
<ColumnDefinition Width="375*" />
</Grid.ColumnDefinitions>
<ListBox Name="lbOrig" Margin="50,25,0,0" />
<ListBox Name="lbComments" Margin="0,25,0,0" />
<ListBox Name="lbStripped" Margin="0,25,0,0" />
<Button Height="23" Name="button1" VerticalAlignment="Top"
Click="button1_Click" HorizontalAlignment="Left" Width="91">Button</Button>
<ListBox HorizontalAlignment="Left" Margin="1,25,0,0" Name="listBox1"
Width="52" />
</Grid>
</Window>
the listboxes resize horizontally correctly as the form is stretched
they do not resize vertically as the form is stretched
the margins above/below the listboxes and the top/bottom edge of form
increases as the form is stretched larger in height
how do i make the bottom edge of the listboxes stick to the bottom edge of
the form?
i tried
<Grid Height="568*" >
thinking the * told a control to follow it's container but it gives an error
Error 1 '568*' string cannot be converted to Length.
thanks
mark
<Window x:Class="LispViewer.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="590" Width="1106" Loaded="Window_Loaded">
<Grid Height="568" >
<Grid.ColumnDefinitions>
<ColumnDefinition Width="375*" />
<ColumnDefinition Width="375*" />
<ColumnDefinition Width="375*" />
</Grid.ColumnDefinitions>
<ListBox Name="lbOrig" Margin="50,25,0,0" />
<ListBox Name="lbComments" Margin="0,25,0,0" />
<ListBox Name="lbStripped" Margin="0,25,0,0" />
<Button Height="23" Name="button1" VerticalAlignment="Top"
Click="button1_Click" HorizontalAlignment="Left" Width="91">Button</Button>
<ListBox HorizontalAlignment="Left" Margin="1,25,0,0" Name="listBox1"
Width="52" />
</Grid>
</Window>