这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@TheBobFella

Description

@TheBobFella

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions