I wish to attach click events to VLabels and VEdges as I can with VNode in WpfGraphControl
graphViewer.MouseDown += (s, ev) =>
{
if (graphViewer.ObjectUnderMouseCursor is VNode node)
{
Do.Stuff(node) // Works
}
else if (graphViewer.ObjectUnderMouseCursor is VLabel label
{
Do.Stuff(label) // does not work because we cannot check if class is VLabel above.
}
};
However VLabel and Vedge being internal means we cannot use them in the graphViewer.ObjectUnderMouseCursor is VLabel check.
How can we enable mouse clicking on VLabel and VEdge ?
I wish to attach click events to
VLabels
andVEdges
as I can withVNode
in WpfGraphControlHowever
VLabe
l andVedge
being internal means we cannot use them in thegraphViewer.ObjectUnderMouseCursor is VLabel
check.How can we enable mouse clicking on
VLabel
andVEdge
?