Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Block of TreeViewItem expanding #161

Open
NOoBODDY opened this issue May 28, 2024 · 0 comments
Open

Block of TreeViewItem expanding #161

NOoBODDY opened this issue May 28, 2024 · 0 comments

Comments

@NOoBODDY
Copy link

NOoBODDY commented May 28, 2024

When using ContextDragBehavior on a TreeViewItem, a problem arises. If an item is selected, you can't collapse/expand it by clicking on the toggle.
Apparently the problem is in this code https://github.com/AvaloniaUI/Avalonia.Xaml.Behaviors/blob/d62d2aa68e3943b26b8f33cc120f2e8cc707e038/src/Avalonia.Xaml.Interactions.DragAndDrop/ContextDragBehavior.cs#L140C17-L140C27
I tried to find the reason for its occurrence, but found nothing. The comment next to it suggests some sort of selection problem with drop. But if I remove this code, nothing like this is observed.
Is there any way to fix it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant