Hi,
We want to add graphic editors like visio. In which we can use rectangle, Dotted Lines, Simple lines, Color change properties etc. I found XAM Diagram have features like that. So please let us aware how we can use XAM Diagram for such kind of functionality or suggest other XAM controls for such kind of functionality. Your help would be a appreciate.
Thanks
Hello Kanwar and thank you for posting!
XamDiagram has some predefined nodes shapes and ofer functionality for custom shapes of the node. You may have a look at the following documentation page regarding the implementation of the custom shapes: http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/xamDiagram_Configuring_the_Shape_of_Diagram_Nodes_Overview.html You may also have a look here for details about the connections customizations: http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/xamDiagram_Configuring_the_Caps_of_Diagram_Connections.htmlPlease feel free to let me know if I could assist you with anything else on this.
Thanks for that and above links helpful for me.
I have added Tool Box and I want I could drag shapes from Tool Box and create designed for that I have added XAMDiagram Tool Box, But where should I add container for designing.
<ig:XamDiagramToolbox x:Name="xamDiagramToolbox"> <ig:XamDiagramToolbox.CustomCategories> <ig:DiagramToolboxCategory> </ig:DiagramToolboxCategory> </ig:XamDiagramToolbox.CustomCategories> </ig:XamDiagramToolbox>
Now I want to ask how we will add designing container where we can drop the shapes from Tool Box.
Kanwar,
The XamDiagram should also be added so that the items from the toolbox can be dragged and dropped there. I have attached a sample project with custom shape added that illustrates this.Let me know if I can assist you with anything else on this.
Thanks for such a wonderful support. Can you please provide me link where we can add custom line like without arrow and dotted line in Tool Box so that we can drag and drop this custom lines from Tool Box.
Hi Kanwar,
I am glad that the solution helped you. Thank you for verifying it so that it could be useful for other community members as well. You may have a look at the following MSDN documentation page where it is described how shapes and basic drawing figures could be created in WPF: https://msdn.microsoft.com/en-us/library/ms747393(v=vs.110).aspx.Please feel free to let me know if you have any other questions on the same.
Hello Kanwar,
I am just checking if my last reply was helpful for you.
If you require any further assistance, please do not hesitate to ask.