GraphView and inherit from GraphElement

Hey there,

I’m getting some experience with GraphView and I’m curious if I can do the following with it:

  • I want to use a different UI element instead of Node. As Node inherits from GraphElement I decided to do so. I only want to draw a rectangle somewhere on the GraphView but I can’t get it done. What is the proper way to draw a simple shape on it? Can I derive my class from GraphElement and define its own look (like a rectangle)?

  • I am using GridBackground in GraphView. Is it possible to SNAP the mouse on a grid’s corner? If yes then how can I achieve that?

  • How can I keep track of the position of the mouse on GraphView? is it possible to do so?

I might misunderstand the whole concept of GraphView as I don’t really want to create nodes but custom shapes on it with snapping to GridBackground. The reason is that because I can use manipulators to zoom and drag and select shapes, I also don’t have to deal with the grid background… Is it possible with GraphView or is it only for creating nodes and stuff…?