Hi Domenico,
We have analyzed your query with the provided coding. In that you have initialized the width and height of the Rectangle shape, while creating. So that you cannot resize the content of the node (Rectangle). We have created sample to meet your requirements, in which we have set HorizontalContentAlignmemnt nad VerticalContentAlignment as Stretch, while drag and drop the custom symbol palette item from the symbol palette. Now you can resize the content, while resize the node.
For more
information, please refer the attached sample.
Please let us know if you require further assist on this.
Regards,
Parthiban A.
Hi Domenico,
We have analyzed your query with the provided coding, the responses are in below.
Query |
Response |
I tried to use the code provided as example (4.8.5.1 Adding a path as SymbolPaletteItem). The code produce a new symbol in the palette, but when I drop it in the diagram it remain invisible. |
We have created a simple sample based on your requirement. In that sample, we have added the new SymbolPalette Group and added the symbol palette item with the content of Path to that SymbolPalette Group. Now, you can drag & drop that symbolpalette Item to the diagram page. For more information please refer the following sample. |
Then I tried to add a rectangle as Item as shown in the region "Adding a rectangle", but in this case when I drop the symbol in the diagram It's visible, but the node resize operation do not camge its dimension. |
In the provided coding, you have set the Width & Height to the Rectangle. So, if you drag & drop that rectangle, the width & height of that rectangle will be maintain. For example, you have set the Width & Height of the rectangle such as 40 , 40. Then, if you drag & drop the rectangle to diagram, the Height & Width of that rectangle is maintained as 40, 40. So please set the width & height to SymbolPalette only. Now, we hope it will be work fine. |
Please let us know if you require further assistance on this.
Regards,
Sudhakar.C