Add a [System.ComponentModel.DesignerCategory("")] attribute before a UI class to avoid designer activation on double-click.
Note that including System.ComponentModel at the top of the file and then just adding the attribute as [DesignerCategory("")] will not work (at least not in Visual Studio 2010/2013). You must use the full, namespace-qualified attribute type name.