-
I'm trying to implement a flyout that will appear on the screen by some shortcuts, similar to new virtual desktop indicator in 23H2. Currently my idea is using a window with the title bar and all UI buttons removed, so it would appear like a flyout. However, the window class doesn't seem to support adjusting its size automatically to fit the content. Is there any suggestions on what would be the best way to implement a flyout in WinUI? |
Beta Was this translation helpful? Give feedback.
Answered by
dotMorten
Nov 14, 2023
Replies: 1 comment 5 replies
-
Why can't you adjust the size of the window to the size of your content? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can make your own control that overrides measure and arrange and looks at the desired size of a textblock. Use the desired size to make an informed decision about how large you want your window parent to be. This is a bit beyond what this discussion forum is about though.