Thanks
Basically what I do too.
I’ll take this offline rather than hijack this thread further.
Back on topic, I found that having the handlers in the window made it tricky to ensure that RemoveHandler was being called reliably and in pairs.
(Add twice = error.
Remove when there is no active handler = error.
There is no ‘alreadyhashandler’ method or similar)
So I have placed it in the App Open/Close events as per the example, and my handler now refers to document window references. All working.