WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

[Feature]Allow ConstrainedBox to have a maximum size

Open TyJOrtiz opened this issue 2 years ago • 1 comments

Describe the problem

Currently, the constrained box is set at a specified aspect ratio. Depending on screen size and aspect ratio, this could cause the control to become too small, image

or too large (filling up or going past the screen)

image

Describe the solution

Allow devs to specify a minimum and/or maximum height without messing with width. This will allow devs to have a control that follows an aspect ratio but also control behavior at certain sizes.

For example, I used the control as a header to display music artist artwork. with the current control, my desired aspect ratio is 16:9 but on widescreen devices, the header often takes up the entire window height. with the control I created, I can have that aspect ratio but with the max height I set (of 500), it will stop increasing in height when it gets wider, allowing the rest of the page's content to remain on screen. msedge_0LMKvLuqlu

Alternatives

No response

Additional info

No response

Help us help you

Yes, but only if others can assist.

TyJOrtiz avatar Jan 01 '23 10:01 TyJOrtiz

Hello, 'TyJOrtiz! Thanks for submitting a new feature request. I've automatically added a vote 👍 reaction to help get things started. Other community members can vote to help us prioritize this feature in the future!

ghost avatar Jan 01 '23 10:01 ghost