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

Splitter Color

1 Answer 556 Views
SplitContainer
This is a migrated thread and some comments may be shown as answers.
Jean-Yves
Top achievements
Rank 1
Jean-Yves asked on 29 Aug 2012, 06:49 PM
Hello, 

In fact, I use the SplitContainer to have a nice layout on my form and I block the Minimum & Maximum size of a lot of SplitPanel.
So I don't need to display the So I don't need to display the Splitter.

On this link : http://www.telerik.com/help/winforms/splitcontainer-overview.html We can see the splitter in bleu. How can I set it to invisible? Or to the same color than the background? 

Thank you

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 03 Sep 2012, 02:30 PM
Hi Jean-Yves,

To achieve this functionality you can change the colors of SplitContainerElement and SplitPanelElement to Transparent:
SplitterElement splitterElement = splitContainer.SplitContainerElement.Children[0] as SplitterElement;
splitterElement.BackgroundFill.BackColor = Color.Transparent;
splitterElement.BackgroundFill.GradientStyle = Telerik.WinControls.GradientStyles.Solid;
 
splitContainer.SplitPanelElement.Fill.BackColor = Color.Transparent;
splitContainer.SplitPanelElement.Fill.GradientStyle = Telerik.WinControls.GradientStyles.Solid;

I hope this helps. Feel free to ask if you have any additional questions. 

All the best,
Julian Benkov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
SplitContainer
Asked by
Jean-Yves
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or