Sending custom event to WPF window from code-behind
I’m trying to subscribe to a custom event fired from code-behind in an EventTrigger
element. All the examples I can find are for events triggered by the front-end, but I want to do it the other way around. Here is some example code, which is intended to trigger the animation every second:
Is there a sort of “PreviewAddItem” event for ListBox?
Here’s my ListBox
: