Share via


HtmlControlDesigner.OnBehaviorAttached Método

Definição

Cuidado

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

Chamado quando um comportamento está associado ao elemento.

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 ()
Atributos

Comentários

Observação

O OnBehaviorAttached método está obsoleto. Use os SetAttribute GetAttribute métodos e na Tag propriedade para mapear Propriedades para estilos. Use o GetDesignTimeCssAttributes método na ContainerControlDesigner classe para definir estilos para o controle em tempo de design. Substitua o Initialize método para manipular os estilos iniciais para o controle em tempo de design.

Notas aos Herdeiros

O OnBehaviorAttached() método pode ser substituído e implementado para executar processamento adicional quando um comportamento é anexado ao designer.

Aplica-se a

Confira também