Change FontFamily

3 posts, 0 answers
  1. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 29 Nov 2016 Link to this post

    Hello,

    In my project,the font of shape shown wrong in windows7,but in windows10,it shown right.

    So I want to change the FontFamily list of the setting pane,how can I do it?

     

  2. Milena
    Admin
    Milena avatar
    226 posts

    Posted 01 Dec 2016 Link to this post

    Hello Wang,

    In you need to change the FontFamily list of the settings pane, you can change the ItemsSource of ComboBox from which the users can choose a FontFamily. In order to achieve this you need to make this change in the Template of SettingsPaneTextControl. For your convenience I implement this approach in the attached project (I have used NoXaml binaries and VisualStudio theme). Please take a look at it and let me know if this works for your scenario.

    Please have in mind that this will affect only the SettingsPane. If you need to change the FontFamily of all shapes in diagram, you can set this property in a style targeting RadDiagramShape.

    Regards,
    Milena
    Telerik by Progress
    Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
  3. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 01 Dec 2016 in reply to Milena Link to this post

    Thank you very much!

    It worked fine!

     

Back to Top