Example #1
0
 internal void SetVisualLines(ICollection <VisualLine> visualLines)
 {
     foreach (VisualLineDrawingVisual v in visuals)
     {
         if (v.VisualLine.IsDisposed)
         {
             RemoveVisualChild(v);
         }
     }
     visuals.Clear();
     foreach (VisualLine newLine in visualLines)
     {
         VisualLineDrawingVisual v = newLine.Render();
         if (!v.IsAdded)
         {
             AddVisualChild(v);
             v.IsAdded = true;
         }
         visuals.Add(v);
     }
     InvalidateArrange();
 }