Deactivate Nodes

I want to be able set node as deactivated/disabled so user’s actions on it will take no effect (such as drag it, selecting it, edit it’s properties,…)

I’ve tryed using
Mydiagram.SelectedNode.IsEnabled = false

but it’s not working

You are setting UIElement.IsEnabled, which should affect the enablement of controls in the visual tree of the Node, but which does not affect the user operations implemented by GoXam that you care about.

Instead you need to set the particular Part properties that matter to your application. Those include: Copyable, Deletable, Editable, Groupable, Movable, Printable, Reshapable, Resizable, Rotatable, Selectable, and even Visible.