C
C#2y ago
mariza

❔ help with maximising screen application

hi!! i'm very new to c# and i'm currently working on the design of an application, but i'm struggling to resize the rest of the contents when the window is made full screen. i've attached photos of the code i thought to be relevant. i'm not quite yet familiar with all the coding terms so i apologise for the poor explanation
13 Replies
Angius
Angius2y ago
Uh, none of those files seem anywhere near working
mariza
marizaOP2y ago
oh god, sorry give me a sec
mariza
marizaOP2y ago
mariza
marizaOP2y ago
mariza
marizaOP2y ago
mariza
marizaOP2y ago
mariza
marizaOP2y ago
Angius
Angius2y ago
You probably set the size of whatever you have there manually or something Use a grid layout, for example, and set the items inside to be stretched to max-width Width="*" IIRC
mariza
marizaOP2y ago
hey so i added a maxheight and maxwidth to the grid layout and this happened? i tried the "width="*"" but it came up with an error saying that it cannot be a string
mariza
marizaOP2y ago
i also tried it on the column and row definitions but that just made my stackpanel on the left wider?
Angius
Angius2y ago
Well, setting width or height to a given number of pixels... will make the thing a given number of pixels in size Same goes for Max- MaxWidth="800" will make sure your grid will never exceed 800px in width Which is the exact opposite of what you want Try just removing those?
mariza
marizaOP2y ago
i didn't have those initially, the images i sent first show the program without them
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server