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

I want shapes to be drawn in white in RadDiagramToolbox

3 Answers 141 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 03 Apr 2013, 07:54 AM
Hello.
How I can set my color for shape in RadDiagramToolbox? I want shapes to be drawn in white in RadDiagramToolbox.

3 Answers, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 05 Apr 2013, 03:50 PM
Hello Alexander,

I am not sure that I understand your scenario. Can you please elaborate more on how you load the items to the RadDiagramToolbox control? If you create your custom collection then you are able to control the background color of the shapes that you add.

In case that you use our HierarchicalGalleryItemsCollection you are allowed to change the color of the shapes in the RadDiagramToolbox control by changing the theme of your application. Please take a look at the themes that we provide and see if some fits your requirements.

All the best,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Ray
Top achievements
Rank 1
answered on 13 Feb 2014, 01:15 PM
Hi,
I would like to have custom Shapes which are actually bound to Images (.png files) to be visible in RadDiagram ToolBox.
Can u please post a sample solution for the same
0
Zarko
Telerik team
answered on 17 Feb 2014, 06:47 PM
Hi Ray,
The easiest way to do this is to create your own toolbox hierarchy using our Galleriy and GalleryItem classes and just set the Shape property of the items to your custom shapes (it has to derive from RadDiagramShapeBase).
I've attached a sample project demonstrating two ways to use images in your diagram - a custom shape with custom template (ImageShape.cs) and an ordinary shape whose content is an Image so could you please examine it and if you have more questions feel free to ask.

Regards,
Zarko
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
Diagram
Asked by
Alexander
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Ray
Top achievements
Rank 1
Zarko
Telerik team
Share this question
or