I am using the following code i found online,
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/750a654e-b002-4742-8f46-609e93f6ec81
where i can save RichTextBox content to SQL DB but i am unable to use TextRange in my Sliverlight file how do i include? which namespace? if any will that namespace work in Silverlight?
Thank you in advance!!!
There is no support for the TextRange
in Silverlight. The closest you'll get is the TextSelection
object which merely represents the range of text that the user has selected. You can't manipulate the selection yourself, except by calling SelectAll
on the RichTextBox
.
Edit
If you just want to access the entire contents a RichTextBox as Xaml then you can use its Xaml
property.