Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Edited Issue: RichTextBox changing format of text on selection [21847]

$
0
0
Hi,

I have used WPF Toolkit Richtextbox in my application. Its Text property is binded to string. RichTextBox TextFormatter property is set to "RtfFormatter".

I add string "Hello World" and change color of "Hello" to Red and "World" to Green. After doing this change I select the complete string, on selection the complete color of string automatically becomes black. It losses all the formated changes.

Please let me know how to fix this issue.

Regards,

Sharda.
Comments: ** Comment from web user: BoucherS **

Hi,

This will be fixed in v2.7.

As a workaround, you can go in file "Xceed.Wpf.Toolkit/RichTextBoxFormatBar/RichTextboxFormatBar.cs", in method "RichTextFormatBar.UpdateFontColor()" and add the following after the "if( ( Target != null ) && ( Target.Selection != null ) )" condition :

if( value == DependencyProperty.UnsetValue )
return;


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>