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