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

Rounded Corners Missing in Debug

3 Answers 96 Views
Form
This is a migrated thread and some comments may be shown as answers.
Troy
Top achievements
Rank 1
Troy asked on 25 Feb 2013, 04:37 PM

I have a win form with a RadGroupBox.  I set the RadGroupBox to have rounded corners

  • Clicking the smart link
  • Edit UI elements
  • GroupBoxContent
  • Shape
  • Radius: 15
  • All Bottom/Top Left/Right Rounded: True

This shows the group box with nice rounded corners.  However, when I hit debug to look at the form, everything changes back to a rectangular box.  I don't have any code behind right now that controls formatting; I've merely created the form in the designer and am working on getting the design right.

What is happening and how do I get the formatting to work?

3 Answers, 1 is accepted

Sort by
0
Svett
Telerik team
answered on 28 Feb 2013, 02:59 PM
Hello Troy,

Thank you for writing.

Please make sure that prior setting the Radius, you have set the Shape property to RoundRectShape, as demonstrated in the attached video. The video opens in browser and requires Shockwave flash player to play.

I hope this helps.


All the best,
Svett
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

Interested, but can’t attend? Register anyway and we’ll send you the recording.
0
Troy
Top achievements
Rank 1
answered on 01 Mar 2013, 06:41 PM
That didn't work.  Here's what I have:

RadGroupBoxElement
    Shape: roundRectShape1

GroupBoxContent
    Shape
        BottomLeftRounded: True
        BottomRightRounded: True
        Radius: 15
        TopLeftRounded: True
        TopRightRounded: True

The group box looks fine in the [Design] window, but it reverts to a rectangle with no rounded corners when I hit Debug.
0
Svett
Telerik team
answered on 05 Mar 2013, 02:40 PM
Hi Troy,

You should initialize the
Shape property of GroupBoxContent with RoundRectShape instance. Then you can specify the properties of the shape with your settings. You should not change the shape property of the RadGroupBoxElement.

Kind regards,
Svett
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Join us for a FREE webinar to see all the new stuff in action.

Interested, but can’t attend? Register anyway and we’ll send you the recording.
Tags
Form
Asked by
Troy
Top achievements
Rank 1
Answers by
Svett
Telerik team
Troy
Top achievements
Rank 1
Share this question
or