Active page change detection from custom C # programs

I am developing a custom C # .Net program on SpotFire.

It is assumed that this program is always running while SpotFire is running.

If a user changes the active page on SpotFire, we want to detect it with this program. Is there a way to do this?

According to our research, we hope that we can catch the change of "ActivePageReference", but I don't know how to do it.

Also, the following page describes how to create an event trigger, but it is unknown how to apply this to "ActivePageReference"

Would you tell me if anyone knows you?

Thank you.

(1) Answer