Disable Rotation Exception


Author
Message
Volvick Derose
Volvick Derose
Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)Forum Guru (71 reputation)
Group: Forum Members
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;
}
}
}
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search