The ReadWriteControlDesigner.OnBehaviorAttached method is obsolete. Use the members of the ControlDesigner.Tag property instead. For example, use the IControlDesignerTag.SetAttribute(string, string) and IControlDesignerTag.GetAttribute(string) methods on the ControlDesigner.Tag property to map properties to styles.