Another technique that can sometimes be used to find otherwise hidden lapsed listeners is preventing a given listener object from being registered twice with a given event source.
另外一项可以用来找到隐藏失效侦听器的技术是:防止指定侦听器对象在指定事件源上登记两次。
The GridView also exposes a RowUpdating event that allows you to modify the values being passed to the data source object.
GridView也公开一个RowUpdating事件,允许您修改正在传递到数据源对象的值。
The source object does not expose '0' event interface.
源对象不公开“0”事件接口。
According to the requirements of the model, listener class and it's object will be created to register to the event source and realize the specific method in interface.
根据模型要求,要创建监听器类及其对象,完成向事件源的注册并实现接口中的特定方法。
Whenever the source object lifetime extends beyond the object lifetime of the listener, the normal event pattern leads to a memory leak: the listener is kept alive longer than intended.
如果源对象生存期超出了侦听器的对象生存期,则常规事件模式会导致内存泄漏:侦听器保持活动状态的时间比预期要长。
The weak event pattern can also be used whenever the object lifetime of the source exceeds the useful object lifetime of the listener.
当源的对象生存期超出侦听器的有用对象生存期时,也可以使用弱事件模式。
For a routed event, it is possible that the source of the event is a different object than the object where the handler is attached.
对于路由事件,事件来源可能不同于附加处理常式的物件。
For a routed event, it is possible that the source of the event is a different object than the object where the handler is attached.
对于路由事件,事件来源可能不同于附加处理常式的物件。
应用推荐