Completed
Last Updated: 16 May 2019 06:04 by ADMIN
n/a
Created on: 11 Mar 2019 04:11
Category: UI for WinForms
Type: Bug Report
0
Cannot change header font size of RadPageView in VisualStudio2012LightTheme

I used RadPageView under the theme "VisualStudio2012LightTheme" .

The ViewMode of RadPageview is Stack.

I wanted to change the font size of page header in runtime but it was not workable.

If I changed the theme to VisualStudio2012DarkTheme or Office2013LightTheme, it worked fine.

Attached Files:
1 comment
ADMIN
Hristo
Posted on: 11 Mar 2019 07:59
Hello,

Thank you for writing.

The VisualStudio2012Light theme defines special colors for each of the stack items, these are the page header elements. In some of the other themes like the ControlDefault or the dark VS variation the fonts of the page headers are not set locally and they are inherited. In the VisualStudio2012Light the font needs to be set individually for each of the headers. Please check my code snippet below: 
foreach (RadPageViewPage page in PageViewFunc.Pages)
{
    page.Item.Font = font;
}

Let me know if you need further assistance.

Regards,
Hristo
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.