Pagewiew border back color change help

6 posts, 1 answers
  1. cengiz
    cengiz avatar
    3 posts
    Member since:
    Nov 2010

    Posted 05 Nov 2010 Link to this post

    How can I change the border back color help please click picrue see
  2. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 05 Nov 2010 Link to this post

    Hello,

    Just change the BackColor for the PageView.ViewElement.ContentArea, like so:
    radPageView1.ViewElement.ContentArea.BackColor = Color.Red;

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
  3. UI for WinForms is Visual Studio 2017 Ready
  4. cengiz
    cengiz avatar
    3 posts
    Member since:
    Nov 2010

    Posted 05 Nov 2010 Link to this post

    First ago thank you very much for help but button same backcolor how change pagewiew button backcolor this one problem now  
  5. Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 05 Nov 2010 Link to this post

    Hello again,

    To change the backcolor for the buttons on top you can do this:
    var pageViewStripElement = ((Telerik.WinControls.UI.RadPageViewContentAreaElement)((radPageView1.ViewElement).ContentArea)).Owner as RadPageViewStripElement;
    foreach (var stripItem in ((Telerik.WinControls.UI.RadPageViewElement)(pageViewStripElement)).Items)
    {
        stripItem.NumberOfColors = 1;
        stripItem.BackColor = Color.Red;
    }

    You could set more than one color to create a gradient, or just use one for a solid look.

    Hope this helps, if you have any other questions or comments, please let me know,

    Best Regards,
    Emanuel Varga
  6. cengiz
    cengiz avatar
    3 posts
    Member since:
    Nov 2010

    Posted 05 Nov 2010 Link to this post

    thank you very much mr emanuel varga
  7. Answer
    Emanuel Varga
    Emanuel Varga avatar
    1336 posts
    Member since:
    May 2010

    Posted 05 Nov 2010 Link to this post

    Glad to be able to help,

    If you have any more questions please just let me know, and if the question has been solved, please mark the question as answered, so that others can find the answers to their questions faster.

    Best Regards,
    Emanuel Varga
Back to Top
UI for WinForms is Visual Studio 2017 Ready