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

Allow content to exceed shape bounds

1 Answer 61 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
Renier Pretorius asked on 03 Oct 2019, 11:56 AM

Hi,

I'd like to position a Shape's text outside of the shape itself. Can this be accomplished in WPF? I found a similar issue in the WinForms forum but the solution is not applicable.

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 08 Oct 2019, 06:43 AM

Hello Renier,

The shape controls in RadDiagram doesn't support this behavior out of the box. To achieve it, you can use a couple of approaches. 

The first one is to use two shapes - one for the shape (with a geometry) and another one positioned on top holding the text only. Then you can group the shapes to interact with both at the same time when dragging.

The second approach that I can suggest is to use a single shape, but define its geometry smaller, so that it looks like the text is outside of its bounds. However, in this case the selection adorner will cover also the text part.

I hope this information helps.

Regards,
Martin Ivanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Diagram
Asked by
Renier Pretorius
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or