Reputation: 483
I have an extension idea, but I don't know where the first step is. I know that using design view, in conjunction with properties, I can get an event list for a control.
I want to write something that would show me a context menu in source view on something like OnClick="Button1_Click" and generate an empty event method in code behind complete with args. (the equivalant of double clicking a button in design view)
I've never coded against the IDE itself, and I'm not having any luck finding a jumping off point, but I relly want some info that relates to that 'events' section of the properties box.
EDIT: why am I getting negative numbers for asking a question, am I asking it wrong?
Upvotes: 0
Views: 107
Reputation: 483
Ok, so admittedly, I did not ever figure out how to do this. However, I've just read the VS11 will be doing this. I am happy to see that M$ has added this functionality going forward. They've also added smart tags to the html view, which means maybe never having to go to design view again!
More Details Here:
Upvotes: 0
Reputation: 4334
MSDN will help :) See these pages on how to provide a custom properties window.
However, it won't be just as easy as your example, unfortunately. There's quite a bit of infrastructure to deal with when programming VS extensions. I'd recommend reading up on VS Integration on MSDN.
Upvotes: 3