Reputation: 15347
How can I automatically (or maybe using a recalculate method) to automatically resize the width of a listview in WPF after items have been changed (e.g. using a new source, filter or just added or changed items manually) in such a way that the width of each column accomodates exactly the width of the largest item length (or column name length)?
Upvotes: 2
Views: 410
Reputation: 2284
Perhaps you could bind the width property to the "largest" item in the list? Guess you could use a custom converter for it...
Cheers --Jocke
Upvotes: 1