How do I store and retrieve data from SQL to be displayed in a RichTextBox?
I mean, how do I bind the RichTextBlock directly to the ViewModel that exposes the XPS/RTF/binary?
Note: I prefer storing it in binary/XPS/RTF format.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Firstly don’t forget binary XPS RTF formats are not human readable.
This may annoy you later. This choice is not always better.
You will not bind a RichTextBlock indeed. You bind your RichTextBox to a RTF or some provider object such as RTFProvider and bind your bussiness object to this Provider.
I used Telerik’s RTF provider here