Loaded event handler choice is presented

There is no “Window1_Loaded” event as a choice in the popup. I’m pretty sure it used to be the first one there and then the rest in alphabetical order or something. And now, it isn’t ANYWHERE. There is a Loaded in the list, but my recollection is that when you selected the handler, it created the stub interface in the class definition and an empty stub method implementation. Now when I selected Loaded, nothing happens.

I particularly liked the automatic generation of the stubs because it had the necessary arguments all there and with the proper types so I didn’t have to look it up and do all that manually.

Was that whole mechanism dropped somewhere along the way? Or is it supposed to still do that and doesn’t?

As I mentioned earlier, the OnLoaded event handler is there as a choice, and THAT does create the method implementation stub, but doesn’t create anything, private or public, in the interface section.

Also, if I wanted another method to temporarily hook to the same event, if I add another Loaded += OnLoaded, it creates ANOTHER method with the exact same event handler name “OnLoaded”. I think that is why it used to create different names for the handler. So if my method that I wanted to hook the event was called “MyMethod”, I thought it used to create something like “MyMethod_Loaded”.

There is also a method… choice, but that creates a little inline method. But I want a proper method in the class like it used to do.

Of course, it has been a long time since I’ve done these things and maybe recommendations and the way to do this has changed. Or maybe it only did it in Silverlight which was primarily what I coded. And now I don’t even think I can create a Silverlight app to test how that used to work. (Thanks Microsoft! not)

p.s.
The title of this question was supposed to be “Loaded event handler choice is NOT present”, but I don’t know how to change it. Hopefully it was clear the rest of my comments.

Also, I asked about this same sort of thing way back in 2014 which I think is when I switched from the Borland Prism to RemObjects. I see Carlo was going to look into it back then. I think he must have fixed it after that because I seem to recall using that a lot in Silverlight with RemObject’s Oxygene.

The previous, first time I asked about this sort of stuff was in:
https://talk.remobjects.com/t/how-do-i-make-the-event-handler-method-auto-generate-the-code/3746