Share via


EventBindingService.CreateMethod Method

When overridden in a derived class, creates a method that handles an event.

Namespace:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustOverride Function CreateMethod ( _
    modelEvent As ModelEvent, _
    methodName As String _
) As Boolean
public abstract bool CreateMethod(
    ModelEvent modelEvent,
    string methodName
)
public:
virtual bool CreateMethod(
    ModelEvent^ modelEvent, 
    String^ methodName
) abstract
abstract CreateMethod : 
        modelEvent:ModelEvent * 
        methodName:string -> bool 
public abstract function CreateMethod(
    modelEvent : ModelEvent, 
    methodName : String
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the method is successfully created; otherwise, false.

Remarks

If the method name is not unique, the method cannot be created.

.NET Framework Security

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace

ModelEditingScope

ModelEventCollection

Other Resources

WPF Designer Extensibility Architecture