Object refernce exception on Mouse Over a shape in Symbol Palet

Hi,
I m using Diagram control .. i m creating my custom symbol pallete..i have added a shape in it..when i move mouse on the shape, i get object reference exception.. kindly help me how can i overcome this issue.. i need to create my custom symbol pallete where i have to add, decision-flow chart, connector and one my custom shape.. attached is the sample



Regards,
Maria



DiagramSample_8e4d8ad3.rar

1 Reply

RT Ramya Thirugnanam Syncfusion Team January 30, 2012 06:39 AM UTC

Hi Maria,
Sorry for the delay in getting back to you.
Getting the “get object reference exception” while Mouse move on SymbolPaletteItem:

When hover the Mouse on SymbolPaletteItem(content as Node), the mouse operation of Node begins to search the DiagramPage(Parent) reference(which is null ). This causes the reported issue. To resolve this issue, please set the IsHitTestVisible(which restricts the Mouse operation) property of the Node as false as given in following code snippet.
Code Snippet:
Node node = new Node(new Guid(), "ID");
node.IsHitTestVisible = false;
Please let us know if you have any concerns.
Regards,
Ramya



Loader.
Up arrow icon