The ControlDesigner.OnBehaviorAttached method is obsolete. Use the IControlDesignerTag.SetAttribute(string, string) and IControlDesignerTag.GetAttribute(string) methods on the ControlDesigner.Tag property for equivalent control designer functionality.