Hello,
I have a listview and I need to have width of first column automatic (so the width is properly measurized) and second column that will take the rest of space in the head of listview.
How can I do that?
My XAML looks like this right now:
<ListView HorizontalAlignment="Stretch" ItemsSource="{Binding ListViewItemsSource}"
Margin="5,0,5,5" DockPanel.Dock="Top" ScrollViewer.HorizontalScrollBarVisibility="Disabled">
<ListView.View>
<GridView>
<GridViewColumn Header="Plugin" DisplayMemberBinding="{Binding Plugin}" />
<GridViewColumn Header="Message">
<GridViewColumn.CellTemplate>
<DataTemplate x:Name="col1Template">
<TextBlock TextWrapping="WrapWithOverflow" Text="{Binding Message}" />
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
</GridView>
</ListView.View>
</ListView>
Thank you!