Articles in this section
Category / Section

How to apply Shape and Shapestyle to the dropped Node in WinRT Diagram?

2 mins read

Description:
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.

 

Solution:

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?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied