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

Shared Shape Objects in Designer

1 Answer 8 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 16 May 2014, 08:49 PM
I have two controls, an radPanel and a radLabel which is contained within the panel. 
I had hoped to set them both to use a rounded rectangle, but I wanted them to have different radius and rounded corners. 

I've been using the "Edit UI Elements" link to bring up the Element hierarchy editor to set the shape. 
I set both the panel and label to use a RoundRectShape, and then setup the radius and which corners I want to use. 

I found that no matter if I edited the panel, or the label, both of them would always take on the same shape. Looking at the designer code, it looks like the element hierarchy editor is only generating one RoundRectShape object and sharing it between whatever controls I set to use a RoundRectShape shape. I would of expected it to make a different RoundRectShape object per control. I tried providing the editor a different name for the RoundRectShape object, but it just renames any existing one. 

Not sure if this is intended or not.

Thanks, 
Ben

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 19 May 2014, 08:30 AM
Hi Ben,

Thank you for writing.

I have tested the described case and I can confirm that it is an issue with our designer. The issue is logged here: http://feedback.telerik.com/Project/154/Feedback/Details/128476. Feel free to add your vote/comment to it.

I have updated your Telerik Points for this report.

Meanwhile, you can create the desired RoundRectShapes and apply them at runtime.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Ben
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or