itemprop = "text">
I have a list view and I automatically need the width of the first column (hence the width is measured properly) and the second column
How can I do this?
My XML looks like this now:
& lt; ListView HorizontalAlignment = "Stretch" ItemsSource = "{Binding List ViewItemsSource}" margin = "5,0,5,5" dock panel. Doc = "top" ScrollViewer.HorizontalScrollBarVisibility = "disabled" & gt; & Lt; ListView.View & gt; & Lt; GridView & gt; & Lt; GridViewColumn Header = "Plugin" DisplayMemberBinding = "{Binding Plugin}" /> & Lt; GridViewColumn Header = "Message" & gt; & Lt; GridViewColumn.CellTemplate & gt; & Lt; DataTemplate x: name = "call1timple" & gt; & Lt; TextBlock TextWrapping = "WrapWithOverflow" Text = "{Binding Message}" /> & Lt; / DataTemplate & gt; & Lt; /GridViewColumn.CellTemplate> & Lt; / GridViewColumn & gt; & Lt; / GridView & gt; & Lt; /ListView.View> & Lt; / ListView & gt;
Thanks!
This behavior does not exist in it List view - If the width is left empty, Will try best at it because it can be initially (often without data => as per header). If you need it badly - you can try a datagrid instead, which has full support for shaping columns.
Comments
Post a Comment