+ 2

How to make a wpf application's layout adaptive, using XAML.

I have made a wpf application. I made the layout but it is not adaptive, so whenever I go into full screen the layout gets a bit messed up. Any suggestions on how to solve this?

1st Jul 2018, 12:26 PM
SiddharthBhandari
SiddharthBhandari - avatar
1 Odpowiedź
+ 1
I don't know if they are available in WPF too, but VariableSizedGrids are also very useful. Then, you can use the Vertical and Horizontal alignment properties to keep you controls in place on resize, the Max/Min width and height properties to prevent them from stretching or shrinking too much and you can use the grid's Column and Rows definitions to arrange the content better (in these definitions you can also use '*' as a value to indicate that the width or height has to be proportional
4th Jul 2018, 5:59 AM
Mante
Mante - avatar