I\'m trying to make a WPF user control that includes two group boxes and two ListViews in each group box. Here is the XAML code for the user control:
İf You Use a ViewBox and a Canvas on your user control will fix all the mainwindow sizes
<Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform">
<canvas>
--- all your controls --
</Canvas>
</Viewbox>
You're specifying the Height and Width properties as fixed values in the UserControl. Remove those properties, and set the HorizontalAlignment and VerticalAlignment properties of the control instance in the main window to Stretch. That should take care of it.