In the markups, sometimes I may want to specify a particular control should have a method to handle an event.
Is there a way, that Visual Studio 2010 can automatically generate the event for me. I find it sometimes is hard for me to remember the signature.
I know I can hit the designer, but it takes ages to load开发者_JS百科 and I find it a bit cumbersome.
I am not sure, I understand. You can simply type in the name of a non-existing method, right click on it and choose "Navigate to event handler".
Or, even faster: Just type in the Event name followed by an equal sign and then hit TAB, when it shows the text <New event handler>
.
精彩评论