Upraviť

Zdieľať cez


HtmlControlDesigner.OnBehaviorAttached Method

Definition

Caution

The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202

Called when a behavior is associated with the element.

protected:
 virtual void OnBehaviorAttached();
protected virtual void OnBehaviorAttached ();
[System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void OnBehaviorAttached ();
abstract member OnBehaviorAttached : unit -> unit
override this.OnBehaviorAttached : unit -> unit
[<System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")>]
abstract member OnBehaviorAttached : unit -> unit
override this.OnBehaviorAttached : unit -> unit
Protected Overridable Sub OnBehaviorAttached ()
Attributes

Remarks

Note

The OnBehaviorAttached method is obsolete. Use the SetAttribute and GetAttribute methods on the Tag property to map properties to styles. Use the GetDesignTimeCssAttributes method on the ContainerControlDesigner class to set styles for the control at design time. Override the Initialize method to manipulate the initial styles for the control at design time.

Notes to Inheritors

The OnBehaviorAttached() method can be overridden and implemented to perform additional processing when a behavior is attached to the designer.

Applies to

See also