Rounded Corners Missing in Debug

4 posts, 0 answers
  1. Troy
    Troy avatar
    9 posts
    Member since:
    Feb 2013

    Posted 25 Feb 2013 Link to this post

    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?

  2. Svett
    Admin
    Svett avatar
    728 posts

    Posted 28 Feb 2013 Link to this post

    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.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Troy
    Troy avatar
    9 posts
    Member since:
    Feb 2013

    Posted 01 Mar 2013 Link to this post

    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.
  5. Svett
    Admin
    Svett avatar
    728 posts

    Posted 05 Mar 2013 Link to this post

    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.
Back to Top