Serializing WPF RichTextBox to XAML vs RTF

Posted by chaiguy on Stack Overflow See other posts from Stack Overflow or by chaiguy
Published on 2010-06-01T01:59:05Z Indexed on 2010/06/01 2:03 UTC
Read the original article Hit count: 372

Filed under:
|
|
|
|

I have a RichTextBox and need to serialize its content to my database purely for storage purposes. It would appear that I have a choice between serializing as XAML or as RTF, and am wondering if there are any advantages to serializing to XAML over RTF, which I would consider as more "standard".

In particular, am I losing any capability by serializing to RTF instead of XAML? I understand XAML supports custom classes inside the FlowDocument, but I'm not currently using any custom classes (though the potential for extensibility might be enough reason to use XAML).

© Stack Overflow or respective owner

Serializing WPF RichTextBox to XAML vs RTF

Posted by chaiguy on Stack Overflow See other posts from Stack Overflow or by chaiguy
Published on 2010-06-01T02:01:58Z Indexed on 2010/06/01 2:03 UTC
Read the original article Hit count: 372

Filed under:
|
|
|
|

I have a RichTextBox and need to serialize its content to my database purely for storage purposes. It would appear that I have a choice between serializing as XAML or as RTF, and am wondering if there are any advantages to serializing to XAML over RTF, which I would consider as more "standard".

In particular, am I losing any capability by serializing to RTF instead of XAML? I understand XAML supports custom classes inside the FlowDocument, but I'm not currently using any custom classes (though the potential for extensibility might be enough reason to use XAML).

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml