Ejemplo n.º 1
0
        public static Adorner[] GetConnectors(this ActivityDesigner designer)
        {
            var element  = VisualTreeHelper.GetParent(designer) as FrameworkElement;
            var parentUI = designer.Parent as UIElement;
            var layer    = designer.GetAdornerLayer();

            if (parentUI == null || layer == null)
            {
                return(Empty);
            }

            if (parentUI.Equals(element))
            {
            }

            var adorners = layer.GetAdorners(parentUI);

            return(adorners ?? Empty);
        }