I ve created span form code behind see the code:
on selection of current span using GetCurrentSpanBox().Text when the cursor is on "dfgfdgfd " i should get this "span1. dfgfdgfd " but i m getting "dfgfdgfd" this only. it recognize "SPACE" as a span. why?
public MainWindow() { InitializeComponent(); Telerik.Windows.Documents.Model.Section section = new Telerik.Windows.Documents.Model.Section(); Telerik.Windows.Documents.Model.Paragraph paragraph = new Telerik.Windows.Documents.Model.Paragraph(); Telerik.Windows.Documents.Model.Span span = new Telerik.Windows.Documents.Model.Span("span1. dfgfdgfd "); Telerik.Windows.Documents.Model.Span span2 = new Telerik.Windows.Documents.Model.Span("span2."); paragraph.Inlines.Add(span); paragraph.Inlines.Add(span2); section.Blocks.Add(paragraph); radRichTextBox1.Document.Sections.Add(section); }private void radRichTextBox1_MouseUp(object sender, MouseButtonEventArgs e) { textBox1.Text = radRichTextBox1.Document.CaretPosition.GetCurrentSpanBox().AssociatedSpan.Text; }