C#C
C#3y ago
Dawnbomb

What WPF Treeview trigger happens after a user selects something?

In winforms treeviews have a trigger called AfterSelect that occurs...after the user selects something. It doesn't trigger if something is unselected, only if a new thing is selected.

In WPF, AfterSelect doesn't exist. i looked through then and found SelectedItemChanged but it triggers when something is unselected. This causes my program to error / crash because i am using the name of the selected item as part of a filepath search. Theres a lot of triggers and a lot of google to figure out what one triggers only after a user selects something, so i thought i would just make a post asking if anyone knows what trigger occurs only after a user selects something in a treeview.
Screenshot_2023-01-07_131513.png
Was this page helpful?