I have a GroupBox inside it a DockPanel and it contain two listviews. There are 2 buttons, On each button click one listview will visible and other will collapse. But the listview will not adjust the width to make it fit inside the groupbox.
How can I make the listview fit inside the groupbox?