Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fullscreen toogle breaks CanMaximize, CanResize and CanMove #418

Open
1 task done
sn4k3 opened this issue Mar 4, 2025 · 0 comments
Open
1 task done

[Bug] Fullscreen toogle breaks CanMaximize, CanResize and CanMove #418

sn4k3 opened this issue Mar 4, 2025 · 0 comments

Comments

@sn4k3
Copy link
Contributor

sn4k3 commented Mar 4, 2025

Check the following items

  • I have looked up relevant Issue

Description of the issue

Toogle fullscreen on and off, permanently disable CanMaximize, CanResize and CanMove.
Problem:

private void OnWindowStateChanged(WindowState state)
{
if (state == WindowState.FullScreen)
CanMaximize = CanResize = CanMove = false;
if (state == WindowState.Maximized)
Margin = new Thickness(7);
else
Margin = new Thickness(0);
}

Also, title bar is not hidden by default, which should be...

Package Version

6.0

Environment

Windows 11

Expected Behavior

After reverting to any other than Fullscreen to restore CanMaximize, CanResize and CanMove to the old properties.

Reproduction

WindowState = WindowState.FullScreen;
WindowState = WindowState.Normal;

Additional Information

Can be fixed by implementing a cache of previous values and restaure after exit fullscreen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant