private void SetConnectorDecoratorTemplate(DesignerItem item)
 {
     if (item.ApplyTemplate() && item.Content is UIElement)
     {
         ControlTemplate template  = DesignerItem.GetConnectorDecoratorTemplate(item.Content as UIElement);
         Control         decorator = item.Template.FindName("PART_ConnectorDecorator", item) as Control;
         if (decorator != null && template != null)
         {
             decorator.Template = template;
         }
     }
 }
        private void SetConnectorDecoratorTemplate()
        {
            var item = DesignerItem;
//            if (item.ApplyTemplate() && item.Content is UIElement)
//            {
            ControlTemplate template  = DesignerItem.GetConnectorDecoratorTemplate(item.Content as UIElement);
            Control         decorator = item.Template.FindName("PART_ConnectorDecorator", item) as Control;

            if (decorator != null && template != null)
            {
                decorator.Template = template;
            }
            //}
            item.IsSelected = true;
        }