Group: Forum Members
Last Active: 12 Years Ago
Posts: 71,
Visits: 1
|
By using the code below, I try to remove the visibility of the rotation point when users try to rotate a shape. However when I try to do that, the program keep crashing. I wonder is there another way to do that?
private void EventSinkService_NodeBoundsChanged(NNodeEventArgs args) { NShape myShape = args.Node as NShape;
if (myShape == null) { return; } if (myShape.Name == "test") { if (myShape.Transform.IsRotate == true) { MessageBox.Show("test");
NInteractionStyle interactionStyle = myShape.InteractionStyle; interactionStyle.Rotation = false; myShape.InteractionStyle = interactionStyle; } } }
|