예제 #1
0
 private void ClearEdgeBluePrint()
 {
     if (edgeBlueprint == null)
     {
         return;
     }
     graphArea.RemoveCustomChildControl(edgeBlueprint.EdgePath);
     edgeBlueprint.Dispose();
     edgeBlueprint = null;
 }
예제 #2
0
 /// <summary>
 /// Creates a new edge blueprint on the scene
 /// </summary>
 /// <param name="source">Source vertex for a edge bluepting</param>
 public void CreateVirtualEdge(VertexControl source)
 {
     edgeBlueprint = new EdgeBlueprint(source, (SolidColorBrush)resourceDictionary["EdgeArrowBrush"]);
     graphArea.InsertCustomChildControl(0, edgeBlueprint.EdgePath);
 }