Click here to Skip to main content
14,640,713 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a listview control whose width is based on its items width.
Here columns are generated dynamically in code behind and header cannot be code in xaml. When header content is longer and attached items is short, header content gets clipped. When header is short and item is long, header is clearly visible. Hence header content is not clearly visible.
Can you please help ?

What I have tried:

Setting Width as fixed value, but its hardcoding and I want width to be based on its content.
On internet , everywhere solution is given for System.Windows.Forms.ListView , hence I cannot use AutoSize options. Mine is System.Windows.Controls.ListView

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100