Hi Domenico,
We have analyzed your query, please find the response in below.
Query |
Response | |
The Save action in a memory stream takes very long time (more or less the proportion is 5 or more seconds every 60-80 symbols). |
By default, When the number of Nodes & Line Connectors are high, it will take some time to save the diagram. Because we have used frame work xamlwriter to save & load the diagram. We haven’t customize anything when save the diagram. So, it will take frame work time. | |
when the number of symbol increase is that Selection action (with mouse, clicking and drawing the selection rectangle) become very slow and jerky: |
We can increase the performance by enabling the EnableVirtualization property of the diagram view When the number of Nodes & Line Connectors are high. So, please enable the EnableVirtualization property of the diagram view to increase the performance of the diagram. Please refer the following code snippet to use the Virtualization property of the diagram view. Code Snippet :
For more information about the Virtualization, please refer our Syncfusion online documentation from the below link. Documentation Link : http://help.syncfusion.com/wpf/diagram Here navigate to Concepts and Features à Diagram View à Virtualization for DiagramControl. |
Please let us know if you require further assistance on this.
Regards,
Sudhakar.C
Hi Domenico,
We can disable the default Context Menu for the Node & Line Connector by collapse the visibility of the NodeContextMenu / LineConnectorContextMenu property of the diagram view. Please refer the following code snippet to disable the default Context menu.
Code Snippet :
diagramView.NodeContextMenu = new ContextMenu() {Visibility=Visibility.Collapsed }; diagramView.LineConnectorContextMenu = new ContextMenu() {Visibility=Visibility.Collapsed }; |
And also, we can add the custom Context Menu to Node / Line Connector by specifying the custom Context Menu to NodeContextMenu / LineConnectorContextMenu property of the diagram view. For more information about adding the custom Context Menu, please refer our Syncfusion online Documentation from the below link.
Documentation Link : http://help.syncfusion.com/ug/wpf/diagram/default.htm#!Documents/customizethecontextmenuofnodesandlineconnectors.htm
However, we have created a sample for your reference. In that sample, if you right click the Node / Line Connector, the custom Context Menu will be open. And if you clcik the Menu Items, the Message Box will show which Menu Item is clicked. For more information please refer the attached sample.
Please let us know if you require further assistance on this.
Regards,
Sudhakar C
Hi Domenico,
Thanks for the reply. Please let us know if you have any other concerns. As always, we will be happy to assist you. Thanks for using Syncfusion Products.
Regards,
Sudhakar.C
Hi Domenico,
We are analyzing on your requirement. We will update the status of your requirement on Monday (February 4th, 2013). We will appreciate your patience until then.
Regards
Sudhakar C
Hi Domenico,
We have modified the sample, in that sample, we have set the IsBusy property of the Busy Indicator to true when click the SaveStreamBtn button. And, we have set the Header of the Busy Indicator to “Reading...Please wait a moment” and also we have set some minimal time to display the Busy Indicator. Now, if you click the SaveStreamBtn button, the Busy Indicator will be shown in page and also we can’t do anything In the page until the Busy Indicator has been closed. For more information, please refer the image & sample.
Please let us know if you require further assistance on this.
Regards,
Sudhakar C