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

UI Stack panels in Visual Tree not updating order #2324

Open
TranquilAbyss opened this issue Jun 12, 2024 · 0 comments
Open

UI Stack panels in Visual Tree not updating order #2324

TranquilAbyss opened this issue Jun 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TranquilAbyss
Copy link

Release Type: Official Release/GitHub (please choose appropriate option)
Official Release

Version: Version number and/or git branch
Stride Game Studio 4.2.0.2149
.NET 8.0.2

Platform(s): Does the problem occur on Windows, Android...?
Windows 10

Describe the bug
In the UI Editor using a UILibrary the StackPanel's visual tree order does not control the order the UI elements are displayed in the UI visual editor.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new StackPanel in a UILibrary, no setting changes required
  2. Drag two TextBlocks onto the StackPanel in the Visual Tree
  3. Change the text of the TextBlocks to distinct values, like "1" and "2"
  4. In the Visual Tree drag the first TextBlock above the second TextBlock
    At this point the first TextBlock in the Visual Tree will be the second value in the preview window.

The work around for this is to use the Visual Tree to select and drag all elements out of the StackPanel and then drag and drop all elements back into the StackPanel

Expected behavior
The UI elements in the Visual Tree get drawn to visual UI editor in the same order that a StackPanel would display it's children elements

Screenshots
Here is the end result of the Reproduced steps
image

Log and callstacks
N/A

Additional context
This was done an an existing project, have not tried it on a new project. I have tested in a new UILibrary.

@TranquilAbyss TranquilAbyss added the bug Something isn't working label Jun 12, 2024
@TranquilAbyss TranquilAbyss changed the title UI Stack pannels in Visual Tree stop updating order UI Stack panels in Visual Tree not updating order Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant