Cursor for Rotation

Hi Walter,

I change Part.RotateAdornmentTemplate of a Node(the Cursor is set to a custom cursor to indidate rotation.) and the custom icon is shown perfectly.
My problem is when I use mouse to rotate the node, the Cursor is changed back to an arrow. Is there a way to keep the custom cursor when the Node is rotated?
Thanks a lot!

Did you set the Cursor on your template element?

Not in the DataTemplate for the node.

When I try to resize the node, the cursor also change back to arrow. It's better to show the resizing cursor.

Here’s the default template in Silverlight:

<DataTemplate x:Key="DefaultRotateAdornmentTemplate"> <Path go:NodePanel.Figure="Ellipse" Width="6" Height="6" Fill="Yellow" Stroke="Black" StrokeThickness="1" Cursor="Hand" /> </DataTemplate>
You can see all of the templates in docs\GenericSilverlight.xaml.

If you want to set the cursor in code, you can override DoActivate to set the Diagram.Cursor and in DoDeactivate to reset it to null.

The RotateAdornmentTemplate is fine.
My problem is when I use mouse to rotate the node, the Cursor changes back to an arrow although the Cursor is set to a custom one in the RotateAdornmentTemplate.
I'd like to keep the custom cursor during the whole rotation operation.
Is there a way to do that?
Thanks!

That’s why I suggested trying to set the Cursor in the override of DoActivate.