加入适当的程序码至事件处理常式。
将事件处理常式方法名称当做值使用。
事件处理常式就是透过委派叫用的方法。
Event handlers are nothing more than methods that are invoked through delegates.
在属性值中,输入事件处理常式的名称。
自订事件允许事件非同步呼叫它的事件处理常式。
Custom events allow the event to call its event handlers asynchronously.
您也可以加入任何对话方块控制项的事件处理常式。
You can also add an event handler for any dialog box control.
为非同步页面,注册开始与结束事件处理常式委派。
Registers beginning and ending event handler delegates for an asynchronous page.
传回用来将事件处理常式委派加入事件来源的方法。
Returns the method used to add an event handler delegate to the event source.
输入事件处理常式名称,或保留空白以使用预设名称。
Type the event handler name or leave it blank to use the default name.
列出在继承的元件中事件处理常式会发生的常见问题。
Lists common issues that occur with event handlers in inherited components.
当事件引发时,接收到该事件的事件处理常式便会执行。
When an event is raised, the event handler or handlers that receive the event are executed.
在[设计]检视中,选取您要建立事件处理常式的控制项。
In Design view, select the control that you want to create an event handler for.
借由选取物件然后选取事件,即可建立新的事件处理常式。
You can create a new event handler by selecting the object and then selecting the event.
本范例显示如何使用程序码,将事件处理常式加入到项目中。
This example shows how to add an event handler to an element by using code.
在原本剖析的XAML页面中加入事件处理常式要简单许多。
Adding an event handler in the initially parsed XAML page is much simpler.
除非移除委派,否则每次发生事件时都会呼叫事件处理常式。
Unless you remove the delegate, the event handler is called whenever the event occurs.
在您移除该委派之前,每当事件发生,就会呼叫事件处理常式。
The event handler is called whenever the event occurs, until you remove the delegate.
除非您移除委派,否则每当事件发生时就会呼叫事件处理常式。
The event handler is called whenever the event occurs, unless you remove the delegate.
这项服务会实作“事件堆叠”,其中包含目前的事件处理常式集。
This service implements an "event stack" that contains the current set of event handlers.
以下程序码范例示范如何宣告不使用事件资料的事件处理常式委派。
The following code example demonstrates the declaration of an event handler delegate that does not use event data.
一般是由事件处理常式组成,但是可以包含您需要的任何方法或属性。
This typically consists of event handlers, but can include any methods or properties that you need.
为非同步页面,注册不需要状态资讯的开始与结束事件处理常式委派。
Registers beginning and ending event handler delegates that do not require state information for an asynchronous page.
示范如何定义事件处理常式,并将它加入到另一个类别中引发的事件。
Shows how to define an event handler and add it to an event raised in another class.
从HTML文件物件模型(DOM)上的具名事件移除事件处理常式。
Adds an event handler for a named event on the HTML Document Object Model (DOM).
事件处理常式是一个程序,但是事件本身则是必须引发和处理的信号装置。
An event handler is a procedure, but the event itself is a signaling device, which must be raised and handled.
例如,您可以建立事件处理常式,将所有错误输出行存入指定的错误记录档。
For example, you might create an event handler that stores all error output lines into a designated error log file.
在要加入事件处理常式的物件项目内,加入名称与要处理的事件相符的属性。
Within the object element where you want to add the event handler, add an attribute that matches the name of the event that you want to handle.
如果发生这种事件,而且关联的事件处理常式中有程序码,就会叫用此程序码。
If one of these events occurs and there is code in the associated event handler, that code is invoked.
若要保留此物件的参照,请在您实作方案事件处理常式的类别中宣告私用变数。
To retain a reference to this object, declare a private variable in the class in which you implement the solution event handlers.
集合类别必须提供方法,根据事件索引键来设定、存取和撷取事件处理常式委派。
The collection class must provide methods for setting, accessing, and retrieving the event handler delegate based on the event key.
应用推荐