RichTextBox::ContentChanged Event
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Occurs when the content changes in a RichTextBox.
Assembly: System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.
The following actions trigger the ContentChanged event:
User input.
Modifying the Blocks collection by adding or removing blocks.
Formatting changes using ApplyPropertyValue.
Inserting, adding, or removing inlines through an InlineCollection in the document.
Calling TextSelection::Text, TextSelection::Insert, TextSelection::Xaml, or TextSelection::ApplyPropertyValue.
Changing Run::Text.
Changes to any of the following properties of RichTextBox or a TextElement inside it: FontSize, FontFamily, Foreground, FontWeight, FontStyle and FontStretch.
Changes to TextDecorations of an inline inside the RichTextBox.
Changes to TextAlignment of a block inside the RichTextBox.
Changes to the following Hyperlink properties on a hyperlink inside the RichTextBox: TargetName, NavigateUri, MouseOverForeground, and MouseOverTextDecorations.
If the Blocks property is set to the same object instance as the existing content in the RichTextBox, the event is not raised.