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

ElementShape.CreatePath bounds

1 Answer 84 Views
Diagram, DiagramRibbonBar, DiagramToolBox
This is a migrated thread and some comments may be shown as answers.
Valentino
Top achievements
Rank 1
Valentino asked on 24 Aug 2017, 05:12 AM

I've added a custom toolbox shape using information from this thread. http://www.telerik.com/forums/how-to-custom-a-diagramtoolbox-item

But in my toolbox, the Key value is displayed as the label way below the actual shape. See toolbox.jpg. It must be to do with the bounds, but how do I set them?

In my override of ElementShape.CreatePath, where do the values for bounds come from? (see bounds.jpg).

 

1 Answer, 1 is accepted

Sort by
0
Valentino
Top achievements
Rank 1
answered on 24 Aug 2017, 05:15 AM

I forgot to mention, if I set the Text property as well as Key, the Text is displayed in a more reasonable location, but the Key is still displayed. If I could get the Key to not display, that might be ok.

 

*I wish we could edit posts

Tags
Diagram, DiagramRibbonBar, DiagramToolBox
Asked by
Valentino
Top achievements
Rank 1
Answers by
Valentino
Top achievements
Rank 1
Share this question
or