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

RadDock: Remove border around the documentviews

2 Answers 175 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 07 Oct 2013, 09:11 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 10 Oct 2013, 03:29 PM
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 >>
0
Markus
Top achievements
Rank 1
answered on 13 Oct 2013, 10:24 AM
Thank you very much :)
Tags
Dock
Asked by
Markus
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Markus
Top achievements
Rank 1
Share this question
or