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

Pagewiew border back color change help

5 Answers 96 Views
PageView
This is a migrated thread and some comments may be shown as answers.
cengiz
Top achievements
Rank 1
cengiz asked on 05 Nov 2010, 12:38 PM
How can I change the border back color help please click picrue see

5 Answers, 1 is accepted

Sort by
0
Emanuel Varga
Top achievements
Rank 1
answered on 05 Nov 2010, 02:12 PM
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
0
cengiz
Top achievements
Rank 1
answered on 05 Nov 2010, 02:27 PM
First ago thank you very much for help but button same backcolor how change pagewiew button backcolor this one problem now  
0
Emanuel Varga
Top achievements
Rank 1
answered on 05 Nov 2010, 02:40 PM
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
0
cengiz
Top achievements
Rank 1
answered on 05 Nov 2010, 09:34 PM
thank you very much mr emanuel varga
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 05 Nov 2010, 10:37 PM
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
Tags
PageView
Asked by
cengiz
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
cengiz
Top achievements
Rank 1
Share this question
or