H
hufaunder
I have a grid. In one of the cells I want to show a list box that has
a lot of entries. The problem is that as soon as I put the list box in
a stack panel the list has its full length, i.e. not vertical scroll
bar. As a consequence it extends beyond the window. How do I limit the
size of the list box so everything fits into the cell/stack panel.
<StackPanel Height="Auto" Name="StackPanelFunctions" Grid.Column="0"
Grid.Row="0">
<ListBox Height="Auto" Width="Auto" />
<TextBox>My Text Box</TextBox>
</StackPanel>
a lot of entries. The problem is that as soon as I put the list box in
a stack panel the list has its full length, i.e. not vertical scroll
bar. As a consequence it extends beyond the window. How do I limit the
size of the list box so everything fits into the cell/stack panel.
<StackPanel Height="Auto" Name="StackPanelFunctions" Grid.Column="0"
Grid.Row="0">
<ListBox Height="Auto" Width="Auto" />
<TextBox>My Text Box</TextBox>
</StackPanel>