Skip to content

Clicking on VEdges and VLabels? #261

@rurounijones

Description

@rurounijones

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions