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

Change FontFamily

2 Answers 236 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Wang
Top achievements
Rank 1
Wang asked on 29 Nov 2016, 09:47 AM

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 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 01 Dec 2016, 09:41 AM
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.
0
Wang
Top achievements
Rank 1
answered on 01 Dec 2016, 10:43 AM

Thank you very much!

It worked fine!

 

Tags
Diagram
Asked by
Wang
Top achievements
Rank 1
Answers by
Milena
Telerik team
Wang
Top achievements
Rank 1
Share this question
or