wpf textbox insert text at caret position

Code Example - wpf textbox insert text at caret position

                
                        textBox.Text = textBox.Text.Insert(textBox.CaretIndex, "<new text>");