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

[Question] Bring the selected node on top? #57

Closed
trrahul opened this issue Apr 6, 2023 · 2 comments
Closed

[Question] Bring the selected node on top? #57

trrahul opened this issue Apr 6, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@trrahul
Copy link

trrahul commented Apr 6, 2023

Hi. Is it possible to bring the selected node on top? Currently the last added node comes on top of all other nodes and if you select others they are behind the last added one.

@trrahul trrahul added the question Further information is requested label Apr 6, 2023
@miroiu
Copy link
Owner

miroiu commented Apr 6, 2023

Hi! Yes, it is possible. Here's an example:

<nodify:NodifyEditor.ItemContainerStyle>
    <Style TargetType="{x:Type nodify:ItemContainer}"
           BasedOn="{StaticResource {x:Type nodify:ItemContainer}}">
        <Style.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Panel.ZIndex" Value="1" />
            </Trigger>
        </Style.Triggers>
    </Style>
</nodify:NodifyEditor.ItemContainerStyle>

bringtofront

I'll also add this to be the default for the Playground app.

miroiu added a commit that referenced this issue Apr 6, 2023
@trrahul
Copy link
Author

trrahul commented Apr 7, 2023

Thanks for the quick answer. I tired the code, and it worked.

@miroiu miroiu closed this as completed Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants