Articles in this section
Category / Section

How to apply Shape and Shapestyle to the dropped Node?

2 mins read

The symbol can be added to the stencil by specifying the symbol and the SymbolTemplate. While dropping the symbol from the stencil, symbol and SymbolTemplate are set as Content and ContentTemplate of the newly dropped Node. So, the Shape and ShapeStyle of the dropped Node are not customized.



You can customize the Shape and ShapeStyle of the DroppedNode by deriving the Node from the NodeViewModel. There is support to convert the string, StreamGeometry into Path, PathGeometry, by using the Parse () method of the Geometry class. This has been represented in the sample given in the following link.

 Sample Link: Shape

Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment