开发者

quick way to generate methods to handle events in Visual Studio 2010 from markup?

开发者 https://www.devze.com 2023-03-12 02:59 出处:网络
In the markups, sometimes I may want to specify a particular control should have a method to handle an event.

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>.

0

精彩评论

暂无评论...
验证码 换一张
取 消