Επεξεργασία

Κοινή χρήση μέσω


IControlDesignerBehavior.OnTemplateModeChanged Method

Definition

Provides an opportunity to perform processing when the designer enters or exits template mode.

public:
 void OnTemplateModeChanged();
public void OnTemplateModeChanged ();
abstract member OnTemplateModeChanged : unit -> unit
Public Sub OnTemplateModeChanged ()

Remarks

Note

The IControlDesignerBehavior interface is obsolete. Use the IControlDesignerTag and IControlDesignerView interfaces for equivalent control designer functionality.

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnTemplateModeChanged method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Implementers

When overriding OnTemplateModeChanged() in a derived class, be sure to call the base class's OnTemplateModeChanged() method so that registered delegates receive the event.

Applies to

See also