Splitter Color

2 posts, 0 answers
  1. Jean-Yves
    Jean-Yves avatar
    69 posts
    Member since:
    Feb 2009

    Posted 29 Aug 2012 Link to this post

    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
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 03 Sep 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top