Certain scenarios inherently lend themselves to the application of the weak event pattern.
某些方案本质上适合应用弱事件模式。
Many aspects of WPF data binding already have the weak event pattern applied in how the events are implemented.
WPF数据绑定的许多方面在实现事件的方式上已应用了弱事件模式。
To implement the weak event pattern, you typically create a manager class with a 1:1 relationship to the event.
若要实现弱事件模式,通常需要按照与该事件1:1的关系创建一个管理器类。
The weak event pattern can also be used whenever the object lifetime of the source exceeds the useful object lifetime of the listener.
当源的对象生存期超出侦听器的有用对象生存期时,也可以使用弱事件模式。
Who Should Implement the Weak Event Pattern?
谁应实现弱事件模式?
Who Should Implement the Weak Event Pattern?
谁应实现弱事件模式?
应用推荐