RadTabControl no longer respects BorderThickness

6 posts, 1 answers
  1. Sam
    Sam avatar
    67 posts
    Member since:
    Jun 2011

    Posted 30 Jul 2012 Link to this post


    Hi, we've found an issue with the RadTabControl in Q2 2012 SP1 (Metro theme).

    The BorderThickness setting on RadTabControl is no longer respected, ie, if I set it to 0, I still see borders on the content area.

    I looked at the Metro XAML for this control, and it looks like the visual states are setting the content border thickness manually based on the docking placement, eg, Bottom placement state sets ContentBorder's BorderThickness manually to 1 0 1 1, which of course wipes out any existing style setting. This is the same issue for all placement states.

    We need to be able to have a borderless style. For now, we are working around the issue by making the BorderBrush Transparent on our style, so we just don't see the border, as we don't want to have to re-template just to fix this.

    Can you resolve this in your next release please?

    Thanks!

    Sam
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 02 Aug 2012 Link to this post

    Hi Sam,

     We introduced some changes in the default Style/Template of the RadTabControl in Q2 2012 SP. We need some time in order to investigate this better and let you know when this will be fixed or is there a suitable workaround. We will contact you tomorrow the latest. Thank you in advance for your patience.

    Greetings,
    Petar Mladenov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Answer
    Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 03 Aug 2012 Link to this post

    Hi,

    We shall provide a fix to the issue when TabStripPlacement is set to Top (the default value).
    However, if you change the TabStripPlacement to another value the visual state for that placement will override the BorderThickness property, setting the respective thickness. In those cases you could use the BorderBrush to change the color to transparent or you could edit the control template and change the visual states to fit your case.

    The fix should be available in our next internal build (next week). If you would like to use an official one then you should wait the Q3 2012 release.

    Hope this helps. Please let us know if you need more info or the plan does not suffice your needs.

    Regards,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Sam
    Sam avatar
    67 posts
    Member since:
    Jun 2011

    Posted 05 Aug 2012 Link to this post

    Thanks Hristo,

    We only use the default placement (Top) for our borderless tab control style, so your proposed solution is fine - we'll wait until Q3 2012 comes out.

    Thanks,

    Sam
  6. Anuja
    Anuja avatar
    5 posts
    Member since:
    May 2014

    Posted 06 May 2014 Link to this post

    Hi,

     I want  tab strip exactly like attached file . I dint find any of the demos matches with it . 

    Thanks and Regards,
    Anuja.J
  7. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 08 May 2014 Link to this post

    Hello Anuja,

    Such requirement can be achieved with modifying the default Tab control templates and styles. Since you are new to the control itself and its visual structure I suggest that you get to know it from our documentation. Also I believe that you will find our Styling and Appearance section helpful as a guiding point from which you can start your customization.
    We can guide you through the process wherever you hit something concrete that you struggle with but the whole customization should be done by yourself.

    Regards,
    Evgenia
    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.
     
Back to Top
DevCraft banner