Adornments appears over another node

Hi,

I have node(node 1 ) whose zorder is set as 1 and another node(node 2) whose Part.LayerName is set to foreground.
my implementation is if I hover over a node 1, node 2 should appear and its appearing on top of node 1 as expected.

But when I select node 1 the adornments of node 1 appear over node 2. image .

I want node 2 should appear over the adornments too…

As you can read at GoXam for WPF 2.2.4, the “Tool” and “Adornment” Layers are in front of the “Foreground” Layer. This is what most applications would want, since normally one would not want Adornments to be obscured by any Nodes.

But if you do want that, are you sure that node 2 is a regular node? Is it representing model data and is it interactive in the usual way that nodes are in your app?

If it is, perhaps you want to add a special Layer that is in last in the list of the DiagramPanel.Children. Or if you are not using the “Foreground” Layer for anything else, just re-order the standard Layers there, removing the “Foreground” Layer and then immediately adding it back to the Children.

If it is not really a normal Node, perhaps you want to make it an Adornment.