When I insert a span with a foregroundcolor set to red and start typing immedialty after this element, the typing color becomes red instead of Black. How can I reset typing color to black ?
When you set different style settings to a part of the document, one or several new spans are created. However, when you change the fore color when you have not selected anything a new span is not created until you insert some text and if you do not focus the rich text box explicitly, the next time it receives focus, it will treat the fore color of the last span as the current editing style, which is the expected behavior. Thus, if you want to change the editing style after the red span, you would have to insert a new span (containing an interval for instance) having Black as text fore color, or focus the rich text box right after invoking the method (as shown in the snippet).
If you have any other questions, do not hesitate to contact us again.
Kind regards,
Iva
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>