Appleshell
Appleshell

Reputation: 7388

How to change the selection in a TreeView on ContextMenu opening

If a right click is performed on a TreeItem in a TreeView, it will be selected. But if a right click is performed on another item while the context menu is open, the selection will not be updated. initial right click second right click

What can be done to update the selection on a second right click?

Upvotes: 1

Views: 546

Answers (1)

Alexander Kirov
Alexander Kirov

Reputation: 3654

consumeAutoHidingEvents

public final BooleanProperty consumeAutoHidingEventsProperty

Specifies whether the event, which caused the Popup to hide, should be consumed. Having the event consumed prevents it from triggering some additional UI response in the Popup's owner window.

Default value: true

Did you try to set it to false?

In common case, all popups can consume event to close inself.

Upvotes: 1

Related Questions