Earlier you provided an example where I could resize nodes to their size. I want to add only textbox in this example. I created a template like below.
<DataTemplate x:Key="TextboxTemplate">
<Grid HorizontalAlignment="Center"
VerticalAlignment="Center">
<TextBox Text="XXXX"/>
</Grid>
</DataTemplate>
I added this template to the stencil as follows.
<viewModels:StencilSymbolViewModel Key="Textboxes"
SymbolTemplateKey="TextboxTemplate"/>
I added the operations I made to the previous sample code and shared it in the appendix.
Problems I'm facing, unfortunately, I can't change the position of the textbox after dragging it to the field. Annotation comes with Textbox and I cannot destroy this annotation.
I could do a trick, but that just doesn't make sense. The trick is to add a blank image and use the annotation as a textbox.
How can I add only one textbox to the diagram?
Attachment:
DiagramSampleSymbol_15d78d73.rar