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

LayoutAnchorable not restored as maximized on second monitor when layout is restored from page constructor #489

Open
TheBobFella opened this issue Sep 18, 2024 · 1 comment

Comments

@TheBobFella
Copy link

My application performs an automatic layout restoration during launch.
The call is done from the page constructor.

To produce the issue, we perform the following:

  1. Drag a LayoutAnchorableFloatingWindow to a second monitor
  2. Maximize it
  3. Save layout
  4. Restart application
    When this is done, the LayoutAnchorableFloatingWindow is not restored to maximized state.

After some testing it seems this is caused by a small piece of the restoration logic being run in the wrong thread.

Specifically, the Show call is being done via Dispatcher.BeginInvoke() while WindowState property is set outside of this.

I have made changes to correct the behavior by moving the setting of WindowState to within the same scope as Show(), and will create a pull request.

@TheBobFella
Copy link
Author

Pull Request #490 has been created to address this issue. I am unsure how to link this issue to the pull request.

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