Share via


EventBindingService.SetClassName Method

When overridden in a derived class, identifies the methods that the binding service is referring to as belonging to the specified class.

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

Syntax

'Declaration
Public MustOverride Sub SetClassName ( _
    className As String _
)
public abstract void SetClassName(
    string className
)
public:
virtual void SetClassName(
    String^ className
) abstract
abstract SetClassName : 
        className:string -> unit 
public abstract function SetClassName(
    className : String
)

Parameters

  • className
    Type: System.String
    The name of the class that the methods belong to.

Remarks

The event binding service should record the name and not report any errors until the class is modified by calling one of the following methods:

AddEventHandler

RemoveHandle

CreateMethod

RemoveMethod

For XAML, this method is called with the value of the x:Class or x:Subclass attribute, and is called again whenever that value changes. Since the value can be in a transitional state while the user is updating it, it should not be generated until it is used.

.NET Framework Security

See Also

Reference

EventBindingService Class

Microsoft.Windows.Design.Services Namespace

ModelEditingScope

ModelEvent

ModelEventCollection

Other Resources

WPF Designer Extensibility Architecture