C
C#•2mo ago
GrowingGnar

Dynamicly scaling objects to window size in Wpf

Is ther a way to dynamicly scale objects to the window size? Right now, I am creating like grids inside of grids to get an object to be at a specific location and make it resize to the window size. But is ther an easier way, that doesn't involve creating like 10 grids?
1 Reply
MikMad
MikMad•2mo ago
@GrowingGnar, I'm not sure if this is what you're looking for and some people more experienced than me are more than welcome to call me out, if I'm wrong but:
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch" />
Should dynamically scale your grid to the window size, but I am not sure. I might not understand your problem correctly 🙂
Want results from more Discord servers?
Add your server