Profile Picture

Disable Rotation Exception

Posted By Volvick Derose 14 Years Ago
Author
Message
Volvick Derose
Posted 14 Years Ago
View Quick Profile
Forum Guru

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
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;
}
}
}



Similar Topics


Reading This Topic