Different font styles for RadDock HostWindow title text

2 Answers 131 Views
Dock
Kumaran
Top achievements
Rank 1
Iron
Kumaran asked on 27 Aug 2021, 06:39 AM

Hi,

I want to apply two different font styles for the hostwindow title text in Winforms RadDock. For example, If the title is "Tools - Crop", then it should be like below

Tools - Crop

 

Is it possible to achieve this?

 

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 30 Aug 2021, 02:49 PM

Hello, Kumaran,

Thank you for the provided project. To achieve the desired look and bold the first word only you can use the following code snippet:

this.toolWindow1.Text = "<html><b>Tools</b> - Crop";

I hope this helps. Please let me know if I can assist you further.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Nadya | Tech Support Engineer
Telerik team
answered on 27 Aug 2021, 03:25 PM

Hello, Kumaran,

You can achieve this by using the Html text formatting that Telerik UI for Winforms provides. It is an advanced text styling mechanism that can be applied to all Telerik WinForms controls and their elements. More information is available here: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/html-like-text-formatting. Using <b> tag would bold a specified word.

I hope this information helps. Let me know if you have other questions.

Regards,
Nadya
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Kumaran
Top achievements
Rank 1
Iron
commented on 30 Aug 2021, 12:25 PM

Hello Nadya,

I tried the above-mentioned solution as mentioned by you. But it doesn't seem to be working.

Attaching a sample

 

thanks,

kumaran

Tags
Dock
Asked by
Kumaran
Top achievements
Rank 1
Iron
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or