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

Block of TreeViewItem expanding #161

@NOoBODDY

Description

@NOoBODDY

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions