Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Exception is raised while draw an item. (Read 3795 times)
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Exception is raised while draw an item.
Jan 22nd, 2013 at 8:28am
Print Post  
I am working with Mindfussion.diagramming diagram. I can draw an node on diagram. when i trying to draw node with using mouse left button and immediately click right button from mouse it opens context menu and raises an exception as

{System.NullReferenceException: Object reference not set to an instance of an object.
   at MindFusion.Diagramming.Silverlight.InteractionState.Start()
   at MindFusion.Diagramming.Silverlight.BehaviorBase.OnMouseMove(MouseEventArgs e)
   at MindFusion.Diagramming.Silverlight.Diagram.x2c5d1da1234c3a6a(Object xe0292b9ed559da7d, MouseEventArgs xfbf34718e704c6bc)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)}


I cann't  understand what's the problem. Please help me.



Thank in advance.  Wink
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Exception is raised while draw an item.
Reply #1 - Jan 22nd, 2013 at 10:40am
Print Post  
Call diagram.CancelDrag() before showing the context menu.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Yogendra
Junior Member
**
Offline


I Love MindFusion!

Posts: 68
Joined: Dec 27th, 2012
Re: Exception is raised while draw an item.
Reply #2 - Jan 24th, 2013 at 10:23am
Print Post  
Thanks Stoyan but  it didn't work.  Sad
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint