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

Fix: Buttons no longer work on the TreeView element when the element is selected. #158

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Tadelsucht
Copy link

@Tadelsucht Tadelsucht commented Apr 18, 2024

Buttons no longer work on the TreeView element when the element is selected.
For example, if Node0 is not selected in the DragAndDropSample application, the collapse arrow will work.
However, if Node0 is selected, it no longer works.
Other buttons that are added to the element will also no longer work.

As a fix, I have added the following line locally in the AssociatedObject_PointerPressed method in the ContextDragBehavior class at the end of the method:
e.Handled = false;
Drag and drop still works and the buttons still work with a selected element.

@Tadelsucht
Copy link
Author

@dotnet-policy-service agree

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

Successfully merging this pull request may close these issues.

1 participant