I want to have a listbox which contains two items a Checkbox and a WebBrowser control.
I have the listbox appearing in the center cell on my WPF Window. However if there are more then one item then it exceeds the cell and drops to the cell below.
What I for the whole listbox not to exceed its middle cell. However the visual to stretch horizontally. Any additional content would then have a horizontal scroll bar.
Vertically however for the web control it would grow vertically to take as much space as needed but not exceed the bounds of the cell.
I have posted the XAML I have plus what the output looks like now. and an image to try to show what I am after. You can see from the image how the second item exceeds it bounds.
Current XAML Code:
How it looks now:
Idea on how to look mockup: