Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900