This is a migrated thread and some comments may be shown as answers.

Prevent Color Names in XAML

1 Answer 42 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
jayce
Top achievements
Rank 1
jayce asked on 02 Jun 2014, 01:20 PM
Hi,

I am exporting the XAML RadDocument from the RichTextBox to use for my own Gdi+ rendering. To do this I need the text color as (A)RGB values, but especially when I am pasting webcontent into the RichTextBox I sometimes get color names (such as "red", "lime" and so on) as text color. Is there any way to make sure colors in the XAML are always ARGB values without having to convert them myself?

Thanks a lot for your help.

Regards
Jan

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 05 Jun 2014, 08:10 AM
Hello Jan,

Thank you for writing.

Currently there is no any import or export settings for XAML. And in this case you should convert the colors before the export.

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
jayce
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or