Extracting Default Styles

1 Answer 70 Views
RichTextBox Styling
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
Patrick asked on 03 May 2024, 02:20 PM
I have found this documentation online in order to extract and modify the default template style for telerik controls.

https://docs.telerik.com/devtools/wpf/controls/radrichtextbox/styles-and-templates/styling-radrichtextbox#:~:text=To%20copy%20the%20default%20style%2C%20load%20your%20project%20in%20Expression,Style%20%2D%3E%20Edit%20a%20Copy.

I've done this many times on standard WPF controls so I am familiar with the process. When I open project, I get the below options. There is no option to edit style and edit a copy.



Object -> Edit Style -> Edit a Copy.

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 06 May 2024, 08:15 AM

Hello Patrick,

I have tested this and indeed the Edit Style options is not visible for the RadRichTextBox control. But, I wasn't able to show it also for almost all native WPF controls I have checked - buttons, document viewer, data grid and few more. I am afraid that, as this is Blend-related feature, I cannot tell why exactly the btuton is not displayed. However, extracting styles using this functionality sometimes misses to assign a property or gets some incorrect xaml. This is why I would recommend you to copy the Style manually from the Telerik .xaml files which is more reliable in the context of the Telerik controls.

About the help documentation, it is a bit outdated, so I will update its contents. I also updated your Telerik points.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Patrick
Top achievements
Rank 1
Iron
Iron
Iron
commented on 14 May 2024, 07:23 PM

Extracted manually, thank you!
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
commented on 20 May 2024, 08:31 PM

I am unable to location the style manually for the RadSplitButton. I can't find following the help article that you posted and through that process. Am I looking in the wrong file location?
Martin Ivanov
Telerik team
commented on 21 May 2024, 01:29 PM

To access the xaml files, you should download the product as .zip or install it via the .msi installer. Then you can go to the \unzipped dir or installation dir\Themes.Implicit\NET Framework\<theme name>\Themes\ folder. The RadSplitButton's style is located in the Telerik.Windows.Controls.xaml file.

Patrick
Top achievements
Rank 1
Iron
Iron
Iron
commented on 21 May 2024, 08:26 PM

Oh wow, I was able to find it. It was an issue with my search criteria as no results were coming back upon search. I apologize for my mistake. Thank you!
Tags
RichTextBox Styling
Asked by
Patrick
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or