Query |
Response | |
I was attempting to clone them and add them to another diagram (for scaling before saving).
Is there a better way of creating a clone programatically?
|
We have a support to Clone the Elements by using Copy/Paste Command. Please find the code snippet as below.
Code Snippet:
| |
Is there any way to serialize ShapeStyle itself?
|
ShapeStyle have the Framework properties like Fill, Stroke. etc. We could not serialize the Framework properties. We need to create the custom properties for each of the style properties in specific Class (Nodevm).
| |
AnnotationEditorViewModel that stores font size, colour and background colour would I also need to store all the properties like the Fill property in the sample?
|
We have prepared the sample based on this Query. Please find the sample location as below.
Sample location : Annotation_ShapeStyle
Sample Modification details:
We have set the newly created DataTemplate (with custom FontSize and Foreground property like Fill property) to the ViewTemplate.
|