Is there a wpf window size to content feature in maui? #30677
Unanswered
ahmed-abdelrazek
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I am not aware of, however you can create Grid x:name="layoutGrid" and then add an event handler, layoutGrid.propertyChanged ... on propertyChanged you check for e.propertyName == "Height" || e.propertyName == "Width", you get the full screen size and you can then set your underlaying image (for example) to this height / width and you fill Grid with image to the full available space. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
wpf windows have this feature SizeToContent https://learn.microsoft.com/en-us/dotnet/api/system.windows.window.sizetocontent?view=windowsdesktop-9.0
does maui or winui 3 have anything similar?
Beta Was this translation helpful? Give feedback.
All reactions