Here is a snippet of code from you beta example that no longer works in Q2.
6 Answers, 1 is accepted
Anyway, also posting here because for me, it looks like the CurrentSpanStyle property still exists, but isn't accessible:
Error 1 'Telerik.Windows.Controls.RadRichTextBox.Friend ReadOnly Property CurrentSpanStyle As Telerik.Windows.Documents.Model.Span' is not accessible in this context because it is 'Friend'.
Also, I have noticed that when a change is made via these methods, they show the highlighting on the screen (e.g., yellow highlight background), but the color is not shown when printing. At least this was the case with the Beta version. I'm not sure if this is a bug, or by design. I would prefer that if it's shown on the screen, then it is also shown when printing and previewing. I have not been able to fully test yet with the Release version in that I need to get past the CurrentSpanStyle issue.
There are indeed some breaking changes in the API since the Beta. Currently we are working on bringing all the help articles and resources up-to-date.
The good news is that you still have access to the "CurrentSpanStyle". We introduced a new property called CurrentEditingStyle which is of type StyleDefinition. There you can find all the properties previously contained in the CurrentSpanStyle. The way properties are accessed in the StyleDefinition class is much like how you work with DependencyProperties. Here is for example how you get the FontWeight property:
If you want to use strongly typed properties, you can create a new Span instance, load all its properties form the style in the following way:
I hope this clarifications will help. If you have more questions, please don't hesitate to ask.
the Telerik team
thanks in advance
Could you check if you have referenced Telerik.Windows.Documents and have added the following using declarations:
Also, make sure that you are not trying to invoke FontWeightProperty from System.Windows.Documents.Span but Telerik.Windows.Documents.Model.Span. You can do that by removing the declaration:
or by referencing Span explicitly from the namespace Telerik.Windows.Documents.Model:
Let us know if you were able to solve the issue.
the Telerik team