I have several very similar TreeViews in my app.
I have problems sharing Listeners because I have no way to retrieve the TreeView which originated the event from TreeItem (available inside events).
I can walk up the TreeItem chain to the root node, but there's no connection to TreeView.
My current workaround is to store TreeView in root TreeItem Value, but that's not very robust (and I might need to set value even on root TreeItem).
I have problems sharing Listeners because I have no way to retrieve the TreeView which originated the event from TreeItem (available inside events).
I can walk up the TreeItem chain to the root node, but there's no connection to TreeView.
My current workaround is to store TreeView in root TreeItem Value, but that's not very robust (and I might need to set value even on root TreeItem).