How to get the application window size in WinUI platform? #10897
Unanswered
karthikraja-arumugam
asked this question in
General
Replies: 1 comment
-
Use Winui library like https://github.com/dotMorten/WinUIEx to get windows size, or you can try get Page size, page size always not infinity. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
In my app I measure my custom layout using parent view's size constraints, but while the parent is VerticalStackLayout or ScrollView the size values are infinity in such cases I had to calculate the size of my layout.
So I'm using
DeviceDisplay.Current.MainDisplayInfo
details but in the windows platform, it returns full screen size. I need only the size of my application window. Is there any approach to get the application window size?Beta Was this translation helpful? Give feedback.
All reactions