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

utlookk element Text font

2 Answers 77 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
pierre-jean
Top achievements
Rank 1
Veteran
Iron
pierre-jean asked on 07 Mar 2017, 05:33 PM

I have a Ribbon bar in Outlook view on which I want to change programmatically the font

I have managed to change the font on the bottom buttons with the following code

        outlookElement = TryCast(pvMain.ViewElement, RadPageViewOutlookElement)
        outlookElement.Font = MyPreference.Font

 

However the font of the title does not change (see attached image)

How cant I change the title font as well ?

thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 08 Mar 2017, 01:16 PM
Hi Pierre-Jean,

Thank you for writing.

You need to additionally set the font to the header element. Please my code snippet below:
Dim el As RadPageViewOutlookElement = DirectCast(Me.radPageView1.ViewElement, RadPageViewOutlookElement)
el.Font = New Font("Arial", 15, FontStyle.Bold)
el.Header.Font = New Font("Arial", 15, FontStyle.Bold)

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
pierre-jean
Top achievements
Rank 1
Veteran
Iron
answered on 09 Mar 2017, 09:02 AM

Thanks a lot

it's all OK now

 

Tags
RibbonBar
Asked by
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Answers by
Hristo
Telerik team
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Share this question
or