Share via


HtmlControlDesigner.OnBehaviorAttached 方法

定義

警告

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

當行為與項目關聯時呼叫。

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 ()
屬性

備註

注意

方法 OnBehaviorAttached 已過時。 SetAttribute使用 屬性上的 TagGetAttribute 方法,將屬性對應至樣式。 GetDesignTimeCssAttributes使用 類別上的 ContainerControlDesigner 方法,在設計階段設定控制項的樣式。 Initialize覆寫 方法,以在設計階段操作控制項的初始樣式。

給繼承者的注意事項

OnBehaviorAttached()方法可以覆寫並實作,以在行為附加至設計工具時執行其他處理。

適用於

另請參閱