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

How to keep order of LayoutAnchorable after setting IsVisible #476

Open
xiazeyi opened this issue Mar 16, 2024 · 1 comment
Open

How to keep order of LayoutAnchorable after setting IsVisible #476

xiazeyi opened this issue Mar 16, 2024 · 1 comment

Comments

@xiazeyi
Copy link

xiazeyi commented Mar 16, 2024

Given several LayoutAnchorables in LayoutDocumentPane (Using laOne, laTwo, laThree to represent them), the original order of them is: laOne, laTwo, laThree.
Set their IsVisible to False one by one from laOne to laThree, they are all hidden.
Then set their IsVisible to True one by one from laOne to laThree, they are all shown, but the order is changed to: laThree, laTwo, laOne.
Their PreviousContainerIndex is all 0 after they are hidden one by one, as a result the order is changed after inserting them back to LayoutDocumentPane to show them.
Is there a way to keep the order of them, such as ordering by ContentId?
Thanks.

@xiazeyi
Copy link
Author

xiazeyi commented Mar 18, 2024

I can fix it by specifying a customized DockingManager.LayoutUpdateStrategy, but same issue happens after floating them one by one and then docking them back.

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