RadDock: Remove border around the documentviews

3 posts, 1 answers
  1. Markus
    Markus avatar
    11 posts
    Member since:
    May 2013

    Posted 07 Oct 2013 Link to this post

    Hi team!

    can you please help me to remove the border around the documentviews? Please have a look at the attached screenshot to see what I mean.

    Thank you in advance.

    Markus
  2. Answer
    Dess
    Admin
    Dess avatar
    1602 posts

    Posted 10 Oct 2013 Link to this post

    Hello Markus,

    Thank you for contacting Telerik Support.

    The following code snippet demonstrates how to manipulate RadDock's elements BackColor and Border:
    private void documentContainer1_Initialized(object sender, EventArgs e)
    {
        this.radDock1.SplitPanelElement.Fill.BackColor = Color.Transparent;
        this.radDock1.SplitPanelElement.Fill.GradientStyle = GradientStyles.Solid;
        this.radDock1.SplitPanelElement.Border.BackColor = Color.Transparent;
        this.documentContainer1.SplitPanelElement.Fill.BackColor = Color.Transparent;
        this.documentContainer1.SplitPanelElement.Fill.GradientStyle = GradientStyles.Solid;
     
        UpdateTabStrip(this.documentTabStrip1);
    }
     
    private void UpdateTabStrip(DocumentTabStrip tabStrip)
    {
        RadPageViewTabStripElement container = tabStrip.SplitPanelElement.Children[2] as RadPageViewTabStripElement;
        container.BackColor = Color.Transparent;
        container.GradientStyle = GradientStyles.Solid;
        container.DrawBorder = false;
    }
     
    private void documentContainer1_ControlAdded(object sender, ControlEventArgs e)
    {
        DocumentTabStrip tabStrip = e.Control as DocumentTabStrip;
     
        UpdateTabStrip(tabStrip);
    }

    Note that you need to subscribe to the events above at Design-time.

    I hope this information helps. Should you have further questions, I would be glad to help.

    Regards,
    Desislava
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Markus
    Markus avatar
    11 posts
    Member since:
    May 2013

    Posted 13 Oct 2013 Link to this post

    Thank you very much :)
Back to Top