Grid not resizing its child elements WPF
https://pastebin.com/MqM8XZCH
As seen in the image i want the elements to proportionally adapt in size when the window is resized
14 Replies
you need to stop using margins as a way of positioning controls
and instead use rows/columns that adapt to the grids size
does that mean i need to create rows and columns for each element ?
not necessarily
A
ViewBox
may helpfor columns (to start with)
for rows (to start with)
that slider maybe needs it's own column
Hmm
whys that, doesnt it come under row 1 column 1?
Ah yes it fixed it, tysm but now im wondering why are there more ways of achieving responsive layout if viewbox does the job so easily
It depends what you want to achieve
I see
If you have a list showing 10 rows it will even show 10 rows when maximized with a viewbox
sooo, isnt that a good thing
It depends
oo