When i resize the Viewitem with the MaximizeSelectedViewItem command it does not resize my ViewItemWpfUserControl or the camera.
IS it any command that can resize everything?
When i resize the Viewitem with the MaximizeSelectedViewItem command it does not resize my ViewItemWpfUserControl or the camera.
IS it any command that can resize everything?
So you’ve created your own ViewItemWpfUserControl which DOES maximize, but it has child elements which do not resize with the parent control?
If so, that sounds like a WPF design issue. Please correct me if I’m wrong.
Most WPF containers will handle resizing well, unless you’ve disabled resizing or used fixed dimensions.
As an example, I wrote a control to emulate the LPR camera view item with a camera view and a control on the side which shows some data as it arrives. I placed the camera control and the custom list control inside a grid with two columns with a fixed width for the list and a “*” for the camera column.
When resizing the viewitem, the grid resizes automatically and the controls within the grid grow/shrink to fit within their containers with no additional code required to handle that.
There are some WPF containers which do not automatically “dock” child controls and resize them dynamically. How have you organized your WPF control - what containers are you using? Grids? Stack panels? Canvas? WrapPanel?
I am using Grids. The buttons, labels and boxes do not resize in the ViewItemWpfUserControl. Not sure if the ViewItemWpfUserControl maximizes since the buttons, labels and boxes is the only thing I can see in the ViewItemWpfUserControl.