We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Costumize Symbolpalette item

I am a new user of your tool Syncfusion , I was trying to reuse the flowchart- Decision symbol in new symbolpaletteGroup as customized  

So I defined a Node and I choosed  the shape as Flowchart-Decision  and assigned it to to   item.content and it did work but when I move the mouse pointer over the symbol to drag it  I get  the nullrefrenceException.

Thank you for your Help


3 Replies

PA Parthiban A Syncfusion Team January 17, 2014 10:34 AM UTC

Hi Abdallah,

We have analysed your query regarding customize symbol palette item null reference exception. We request to set IsHitTestVisible as false, once you set node as SymbolpaletteItem’s content. Kindly refer the below code snippet,

SymbolPaletteItem item=new SymbolPaletteItem();

              Node n = new Node()

              {

                Width = 50,

                Height = 50,

                Shape = Shapes.FlowChart_Data

              };

              item.Content = n;

              (item.Content as Node).IsHitTestVisible = false;

Please let us know, if you require further assist on this.


Regards,

Parthiban A.



AR Abdallah Rabah January 21, 2014 11:57 AM UTC

hi Parthiban,

Thank you again for your assistance and It did work as I wished

Best regards,
abdallah Rabah


PA Parthiban A Syncfusion Team January 22, 2014 05:03 AM UTC

Hi Abdallah,
Thanks for your update. Kinldy let us know, if you require any further assist on this.
Regards,
Parthiban A.

Loader.
Live Chat Icon For mobile
Up arrow icon