@cfarmerga wrote:
I'm trying to handle clicks on a shape in my diagram. In this case, it's the yellow one that contains "25" as its text. That rounded rectangle shape is part of the nearby link. When nothing is currently selected in my diagram, my "click" handler for that shape is called as I expect. However, when the adjacent node (to the left of my yellow rectangle, with the "this is some really very long text" text) is selected, a click on the "25" rectangle seems to pass right through the rectangle and the "this is some really very" text goes into edit mode. In that case my click handler is never called. (Also, strangely, when I click directly on the "25" text, the click handler of that TextBlock seems to be called every time, regardless of the current selection.)
I've intentionally tried putting the links in a higher layer than the nodes to try to solve this, but it doesn't seem to affect anything.
Why might this be happening? I tried to duplicate this in a simple fiddle, but it doesn't seem to happen in my simple case, so I was hoping there might be an obvious reason this happens. My goal is for the yellow rectangle's click handler to get called when it's clicked, regardless of the current node selection.
Posts: 1
Participants: 1