Change property when diagram is not modifiable


I have a DataTemplate with some Rectangles in it.

I would like to change the Cursor property of these Rectangles when the diagram's model (containing this node) is set to be unmodifiable (Modifiable property = false).

Is there a way to check this diagram property from the datatemplate and bind it to a template property?

Thank you very much

If your node data class has a back-pointer to the Model that it is in, that would be easiest:
{Binding Path=Data.Model.Modifiable …}

But that is an uncommon situation, so perhaps you can get to the model through the node:
{Binding Path=Part.Diagram.Model.Modifiable …}

Thank you, it worked! Thumbs Up