Office2013 theme and TextBlock

4 posts, 0 answers
  1. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 13 Nov 2013 Link to this post

    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
  2. Todor
    Admin
    Todor avatar
    168 posts

    Posted 13 Nov 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 13 Nov 2013 Link to this post

    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
  5. Petya
    Admin
    Petya avatar
    975 posts

    Posted 15 Nov 2013 Link to this post

    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 >>
Back to Top