I started serving some poorly written XAML. I am relatively new to XAML.
One thing I need: grid columns should automatically adjust width for text content.
The MSDN documentation on GridViewColumn.Width says - set the Auto parameter to Auto-sizing. However, although the code is read as follows, the width of the columns remains the same regardless of the content text.
<ListView.View>
<GridView>
<GridViewColumn x:Name="lstColName" Width="200">Name</GridViewColumn>
<GridViewColumn x:Name="lstColPath" Width="Auto">Path</GridViewColumn>
</GridView>
</ListView.View>
Salil
source
share