This is a migrated thread and some comments may be shown as answers.

text outside shapes

3 Answers 168 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 30 Sep 2013, 02:53 PM
Is there the ability to put the text outside his shape?
Attached expected vs actual.
Thanks

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 30 Sep 2013, 09:49 PM
Hi Manuel,

You can create a ContentTemplate for the Content of a RadDiagramShape and apply custom Margin and Horizontal/VerticalAlignment settings to move the label of the shape outside its geometry. However, I'd recommend using text shapes instead. With the TextTool you can easily create labels and add them next to any DiagramItems - shapes or connection, in your diagramming structure.

Please give the tool a try and let us know if it helps.

Regards,
Tina Stancheva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Manuel
Top achievements
Rank 1
answered on 01 Oct 2013, 07:29 AM
TextTool seems really powerful but doesn't fit my needs...
Can you post a sample of the ContentTemplate solution?

0
Manuel
Top achievements
Rank 1
answered on 02 Oct 2013, 09:04 PM
in the end, this template works fine:


<Canvas DataContext="{Binding Content}" ClipToBounds="False">
     <TextBlock Text="{Binding Label}" />
</Canvas>

Canvas & ClipToBounds="True" made the trick.
Tags
Diagram
Asked by
Manuel
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Manuel
Top achievements
Rank 1
Share this question
or