After three days I was unable to solve the problem. The problem was solved only when I created a fresh WPF project and migrated all files to the new project. Only then did the event appear in the developer interface.
While solving the problem, I tried several times:
Clean Solution
Manually deleted the bin folder
Rebuilding Solution
All these methods did not allow the event to be displayed in the Visual Studio Event tab.
Image from new WPF project: