public void UpdateVisual()
        {
            Offset = ElementDrawing.Offset;

            using (DrawingContext dc = RenderOpen())
            {
                GuidelineSet guidelines = new GuidelineSet();
                guidelines.GuidelinesX.Add(Offset.X);
                guidelines.GuidelinesY.Add(Offset.Y);
                dc.PushGuidelineSet(guidelines);

                var dr = new DrawingRenderer(dc);

                dc.DrawRectangle(HighlightBrush, null, ElementDrawing.ContentBounds);

                dr.Dispose();
            }
        }
        public void UpdateVisual()
        {
            using (DrawingContext dc = RenderOpen())
            {
                GuidelineSet guidelines = new GuidelineSet();
                guidelines.GuidelinesX.Add(Offset.X);
                guidelines.GuidelinesY.Add(Offset.Y);
                dc.PushGuidelineSet(guidelines);

                var dr = new DrawingRenderer(dc);

                renderer.RenderComponent(CircuitElement, dr);

                if (IsHighlighted)
                {
                    DrawResizeHandles(dc);
                }

                dr.Dispose();
            }
        }