Panel Borders and Docking Labels

3 posts, 0 answers
  1. Ben
    Ben avatar
    3 posts
    Member since:
    Jul 2013

    Posted 16 May 2014 Link to this post

    I'm attempting to create a radPanel with a rounded 3 pixel thick border. 
    I would like to dynamically add radLabels to this panel, and dock them to the top, so they stack within the panel. 

    I'm finding that the docked labels sit on top of the border, covering it up. I'm also finding that the docked labels remove the rounded corners. 

    I realize this is because the border is drawn within the panel, but how can I get the effect I'm looking for? I want the docked labels within the border, maintaining the rounded corners. 

    Attached is a screen shot of panel as it is now with an empty blue label docked across the top.
  2. Ben
    Ben avatar
    3 posts
    Member since:
    Jul 2013

    Posted 16 May 2014 Link to this post

    Figures I spent hours messing around with the element UIs settings, and 10 minutes after I make this post I find I just needed to add a 3 pixel padding to the panel. 

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Stefan avatar
    2891 posts

    Posted 19 May 2014 Link to this post

    Hi Ben,

    That is correct, you need to set Padding to the panel in order to move the labels to the inside, hence does not allow them to cover up the panel border.

    Should you have any other questions, do not hesitate to open a new thread.

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