private void ClearEdgeBluePrint() { if (edgeBlueprint == null) { return; } graphArea.RemoveCustomChildControl(edgeBlueprint.EdgePath); edgeBlueprint.Dispose(); edgeBlueprint = null; }
/// <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); }