Прочитај на енглеском Уреди

Делите путем


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.

C#
protected virtual void OnBehaviorAttached();
C#
[System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
protected virtual void OnBehaviorAttached();
Attributes

Remarks

Напомена

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

Производ Верзије (Застарело)
.NET Framework 1.1 (2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)

See also