TemplatedControlDesigner.OnBehaviorAttached 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202
提供将行为附加到设计器时进行附加处理的机会。
protected:
 override void OnBehaviorAttached();protected override void OnBehaviorAttached();[System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")]
protected override void OnBehaviorAttached();override this.OnBehaviorAttached : unit -> unit[<System.Obsolete("The recommended alternative is ControlDesigner.Tag. http://go.microsoft.com/fwlink/?linkid=14202")>]
override this.OnBehaviorAttached : unit -> unitProtected Overrides Sub OnBehaviorAttached ()- 属性
注解
注意
方法 OnBehaviorAttached 已过时。 SetAttribute使用 属性上的 Tag 和 GetAttribute 方法将属性映射到样式。