共用方式為


EventBindingService.OnEventHandlerGenerated 方法

引發 EventHandlerGenerated 事件。

命名空間:  Microsoft.Windows.Design.Services
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Protected Overridable Sub OnEventHandlerGenerated ( _
    modelEvent As ModelEvent, _
    methodName As String _
)
protected virtual void OnEventHandlerGenerated(
    ModelEvent modelEvent,
    string methodName
)
protected:
virtual void OnEventHandlerGenerated(
    ModelEvent^ modelEvent, 
    String^ methodName
)
abstract OnEventHandlerGenerated : 
        modelEvent:ModelEvent * 
        methodName:string -> unit 
override OnEventHandlerGenerated : 
        modelEvent:ModelEvent * 
        methodName:string -> unit 
protected function OnEventHandlerGenerated(
    modelEvent : ModelEvent, 
    methodName : String
)

參數

  • methodName
    型別:System.String
    與 modelEvent 關聯的方法處理常式。

.NET Framework 安全性

請參閱

參考

EventBindingService 類別

Microsoft.Windows.Design.Services 命名空間

EventHandlerGenerated

EventHandlerGeneratedEventArgs

其他資源

WPF 設計工具擴充性架構