Hi,
I use the above code to insert a TextBlock in the richtextbox control
The problem is that the when I export in xaml it inserts a texblock and a run. When I import the file back in I get the text duplicated.
Any ideas ?
Thanks,
I use the above code to insert a TextBlock in the richtextbox control
var textBlock = new TextBlock { Text = " [" + item.Name + "] ", TextAlignment = TextAlignment.Center, Foreground = new SolidColorBrush(Color.FromArgb(0xff, 0xff, 0x00, 0x00)), }; InlineUIContainer inlineUiContainer = new InlineUIContainer(textBlock, new Size(10, 10)); rrtb.InsertInline(inlineUiContainer); rrtb.Focus();
The problem is that the when I export in xaml it inserts a texblock and a run. When I import the file back in I get the text duplicated.
Any ideas ?
Thanks,