Hello,
I'm currently working with WPF and C# for the first time, and I've found a really annoying problem that I've spent the last few hours trying to solve.
I have a WPF user control which I host inside a Windows form. That all works very well (I was actually becoming a WPF fan...), but I want the child control to fill the entire host control. In Windows.Forms I can normally just call Dock = DockStyle.Fill, but there doesn't seem to be any WPF equivalent.
I'm faced with the extremely boring notion of having to programmatically resize an extremely complex control every time the window is resized.
Surely Microsoft must have made a solution to this issue?
Thanks.
I'm currently working with WPF and C# for the first time, and I've found a really annoying problem that I've spent the last few hours trying to solve.
I have a WPF user control which I host inside a Windows form. That all works very well (I was actually becoming a WPF fan...), but I want the child control to fill the entire host control. In Windows.Forms I can normally just call Dock = DockStyle.Fill, but there doesn't seem to be any WPF equivalent.
I'm faced with the extremely boring notion of having to programmatically resize an extremely complex control every time the window is resized.
Surely Microsoft must have made a solution to this issue?
Thanks.