This question is locked. New answers and comments are not allowed.
I have a class inheriting from ObservableGraphSourceBase, and there is inconsistent behavior between the RemoveLink and RemoveItem (override) methods when items on the diagram are deleted.
RemoveLink appears to work (get hit) in all cases when a connector is deleted. This works in all scenarios (single item or multiple selection). This even works if a multiple selection includes both nodes & connectors.
RemoveItem is never hit, no matter how many nodes are deleted (single item or multiple selection).
...
Thanks
RemoveLink appears to work (get hit) in all cases when a connector is deleted. This works in all scenarios (single item or multiple selection). This even works if a multiple selection includes both nodes & connectors.
RemoveItem is never hit, no matter how many nodes are deleted (single item or multiple selection).
public class ObservableGraphSource : ObservableGraphSourceBase<DiagramTask, DiagramConnector> {...
public override bool RemoveLink(DiagramConnector link) {// Deleted Link
return base.RemoveLink(link); } public override bool RemoveItem(DiagramTask node) {// This is not being called
return base.RemoveItem(node); }
...
Thanks