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

Office2013 theme and TextBlock

3 Answers 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Veteran
Iron
Patrick asked on 13 Nov 2013, 09:29 AM
Hello,
when using the Office2013 theme the text in a TextBlock is smaller as that for a RadButton or a CheckBox.
Is it by design or is it a bug?
Patrick

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 13 Nov 2013, 12:08 PM
Hello Patrick,

Thank you for contacting us and for your interest in our new Office2013 theme!

We do not provide any style for the TextBlock element in any theme. Probably the FontSize property is inherited from one of its parents or it is the default one which is 12.

So please, check where the related TextBlock is placed in your XAML and maybe it will be necessary to set its FontSize and FontFamily properties to more appropriate ones. The default FontSize value for the RadButton and the CheckBox controls in Office2013 theme is 15 and the FontFamily is Calibri.

If the problem still exists, please try to send us a demo project with the issue isolated.

If you have any further questions, do not hesitate to get back to us.


Regards,
Todor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Patrick
Top achievements
Rank 2
Veteran
Iron
answered on 13 Nov 2013, 04:04 PM
Hello Todor,
thanks for the information: I have corrected my application and the TextBlock and Label are displayed correcty.

It's a pity that Telerik doesn't provide styles for Border, Label and TextBlock: that complicates the application, especially when we must provide a mean to have the user switch the theme dynamically.

Patrick
0
Petya
Telerik team
answered on 15 Nov 2013, 02:15 PM
Hello,

Thank you for your feedback!

We provide styles for a set of MS controls as explained in this help article. However, when it comes to controls like TextBlock and Border we do not consider providing such styles. These elements are atomic part of all WPF applications and control templates. For this reason we believe providing styles for them might result in more issues than solutions.

When in need to switch the theme dynamically, you could create a separate resource dictionary for each of the supported themes and merge the corresponding one with the approach used for merging the resource dictionaries provided with the theme.

I hope this helps! Let us know if you have any other comments or questions.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
General Discussions
Asked by
Patrick
Top achievements
Rank 2
Veteran
Iron
Answers by
Todor
Telerik team
Patrick
Top achievements
Rank 2
Veteran
Iron
Petya
Telerik team
Share this question
or