microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.27k stars 6.55k forks source link

XAML: let's use ShouldConstrainToRootBounds="False" #22930

Closed Jay-o-Way closed 11 months ago

Jay-o-Way commented 1 year ago

The XAML property ShouldConstrainToRootBounds allows a Flyout to not be constrained to the parent window. This will make UI much prettier. It can be applied to:

https://learn.microsoft.com/uwp/api/windows.ui.xaml.controls.primitives.flyoutbase.shouldconstraintorootbounds

Examples

Settings (before)

image

PowerRename (before)

image

Environment Variables (before/after)

image image

stefansjfw commented 1 year ago

Not sure if we can do anything about this. I believe this is how it works. @niels9001 ?

Jay-o-Way commented 1 year ago

True. At least, in v1.4(peview) there's a new property: ShouldConstrainToRootBounds https://learn.microsoft.com/uwp/api/windows.ui.xaml.controls.primitives.flyoutbase.shouldconstraintorootbounds?view=winrt-22621#windows-ui-xaml-controls-primitives-flyoutbase-shouldconstraintorootbounds

Jay-o-Way commented 1 year ago

Note: broadened the issue to use ShouldConstrainToRootBounds

Jay-o-Way commented 1 year ago

@niels9001 looks easy, by itself. Want me to look into this, or somebody else?

niels9001 commented 1 year ago

@niels9001 looks easy, by itself. Want me to look into this, or somebody else?

Feel free to pick it up! Yeah, should be an easy tweak now that it's supported in 1.4! Thanks!

stefansjfw commented 11 months ago

The work associated with this issue has been released as part of the 0.76 sprint. Please update PowerToys to the latest. https://github.com/microsoft/PowerToys/releases