How to disable default DraggingTool?

Hi,

How can I disable default dragging tool?
I have already set DraggingTool="{x:Null}" in diagram, but even it’s active.
When I click in backgroud & drah, then all nodes are dragged.

Have a look of my diagram:

<

go:Diagram Grid.Column=“1”


x:Name=“xDiagram”


BorderBrush=“Blue” BorderThickness=“1”


HorizontalContentAlignment=“Stretch”


VerticalContentAlignment=“Stretch”


ScrollViewer.VerticalScrollBarVisibility=“Disabled”

DragSelectingTool="{x:Null}"

DraggingTool="{x:Null}"

NodeTemplateDictionary="{StaticResource NodeTemplates}"

LinkTemplateDictionary="{StaticResource LinkTemplates}">

<go:Diagram.DefaultTool>

<go:ToolManager WheelBehavior="None"/>

</go:Diagram.DefaultTool>

<go:Diagram.PartManager>

<local:CustomPartManager />

</go:Diagram.PartManager>

</go:Diagram>

If there’s no Diagram.DraggingTool, the user is definitely not moving the Parts. If you look at the Node.Location of one of the Nodes, you will see that the value has not changed.

What the user is doing is panning – changing the Diagram.Panel.Position. If you don’t want to allow panning, you can remove the Diagram.PanningTool.

BTW, you can disable a tool by setting its MouseEnabled property to false.

Hi,

Thanks for your solution. It worked.