Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Dock > Hide border on Document tabs.

Not answered Hide border on Document tabs.

Feed from this thread
  • Troy avatar

    Posted on Aug 22, 2011 (permalink)

    I'd like to remove the border around the content area.  But I can't figure out how to get access to it.

    I also use a RadPageView and I can get rid of the border by doing

     RadPageViewContentAreaElement contentArea = ((Telerik.WinControls.UI.RadPageViewContentAreaElement)((pageView1.ViewElement).ContentArea));
     contentArea.Padding = new Padding(0);

    I'd like to do something similar but with the Main Document View inside of the Rad Dock.

    Thanks.
    Attached files

    Reply

  • Stefan Stefan admin's avatar

    Posted on Aug 25, 2011 (permalink)

    Hello Troy,

    Thank you for writing.

    The following code should remove the border at hand:
    RadPageViewStripElement el = radPageView1.ViewElement as RadPageViewStripElement;
    el.Padding = new Padding(0, 0, 0, 0);
    documentTabStrip1.TabStripElement.ContentArea.BackColor = Color.FromArgb(191, 219, 255);

    I hope that this covers your case. Should you have any other questions, do not hesitate to contact us.
     
    Regards,
    Stefan
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Jorge avatar

    Posted on Feb 6, 2012 (permalink)

    How can you hide the border in Visual Basic using Q3' 11?

    Reply

  • Stefan Stefan admin's avatar

    Posted on Feb 9, 2012 (permalink)

    Hi Jorge,

    Thank you for writing.

    Here is the code in VB too:
    Dim el As RadPageViewStripElement = TryCast(radPageView1.ViewElement, RadPageViewStripElement)
    el.Padding = New Padding(0, 0, 0, 0)
    documentTabStrip1.TabStripElement.ContentArea.BackColor = Color.FromArgb(191, 219, 255)

    FYI, you can use our free online code converter tool for converting code between C# and VB. Here is the link: http://converter.telerik.com/ 

    I hope this helps.
     
    Kind regards,
    Stefan
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Dock > Hide border on Document tabs.
Related resources for "Hide border on Document tabs."

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]