I\'m used from windows forms, that I create a panel, place controls inside it and give them DockStyle.Fill
to max out their size to the surrounding panel.
I
I was try many method here but can't solve my problem. (Fill other control in control)
Until i found it
//default
//HorizontalAlignment="Stretch"
//VerticalAlignment="Stretch"
Example:
//UserControl:
//Grid:
//Code:
Grid_test.Children.Add(UC_Test);
For easy design
//Code
Grid_test.Children.Add(UC_Test);
UC_Test.Width = Double.NaN;
UC_Test.Height = Double.NaN;