Is it possible to get the items placed inside of a ListView Control to
automatically expand to the full width of the Control? If I place them inside of
a StackPanel they expand but don't when placed inside of a ListView. Here's some
XAML that shows the problem.
<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/interactivedesigner/2006"
mc:Ignorable="d"
Background="#FFFFFFFF"
x:Name="DocumentRoot"
x:Class="UntitledProject1.Scene1"
Width="640" Height="480">
<ListView Margin="0,0,0,0" x:Name="ListView"
IsSynchronizedWithCurrentItem="True" VerticalAlignment="Top" Height="58">
<ComboBox Width="Auto" Height="Auto" x:Name="ComboBox"
IsSynchronizedWithCurrentItem="True">
<Label Width="Auto" Height="Auto" x:Name="Label" Content="Label"/>
<Label Width="Auto" Height="Auto" x:Name="Label1" Content="Label1"/>
<Label Width="Auto" Height="Auto" x:Name="Label2" Content="Label2"/>
<Label Width="Auto" Height="Auto" x:Name="Label3" Content="Label3"/>
</ComboBox>
</ListView>
<StackPanel VerticalAlignment="Top" Margin="0,200,0,0" Height="82"
x:Name="StackPanel">
<ComboBox Width="Auto" Height="Auto" x:Name="ComboBox1"
IsSynchronizedWithCurrentItem="True">
<Label Width="Auto" Height="Auto" x:Name="Label4" Content="Label4"/>
<Label Width="Auto" Height="Auto" x:Name="Label5" Content="Label5"/>
<Label Width="Auto" Height="Auto" x:Name="Label6" Content="Label6"/>
<Label Width="Auto" Height="Auto" x:Name="Label7" Content="Label7"/>
</ComboBox>
</StackPanel>
</Grid>
Thanks-
John


