From 01048ab3cfa3859c0c66c58b4e770a6258adda88 Mon Sep 17 00:00:00 2001 From: DianeXceed <29433908+DianeXceed@users.noreply.github.com> Date: Fri, 5 Jul 2019 11:14:25 -0400 Subject: [PATCH] Updated RichTextBox (markdown) --- RichTextBox.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RichTextBox.md b/RichTextBox.md index 487121c..211e79b 100644 --- a/RichTextBox.md +++ b/RichTextBox.md @@ -95,7 +95,7 @@ Xaml: ``` ### Gotchas -When using the RichTextBox with buttons to change the styles of your text such as bold, italics, etc...,; you will notice that the Text is not updated until the control losses focus. Therefore when you leave focus on the RichTextBox and start manipulating test with buttons, those changes will not be propagated property. This is because by default, the source is not update until the RichTextBox control loses focus. To enable this behavior you must set the UpdateSourceTrigger to PropertyChanged on your Text property binding. This will force any change to the text to be updated through data binding to the underlying data source. +When using the RichTextBox with buttons to change the styles of your text such as bold, italics, etc., you will notice that the Text is not updated until the control loses focus. Therefore, when you leave focus on the RichTextBox and start manipulating text with buttons, those changes will not be propagated property. This is because by default, the source is not updated until the RichTextBox control loses focus. To enable this behavior you must set the UpdateSourceTrigger to PropertyChanged on your Text property binding. This will force any change to the text to be updated through data binding to the underlying data source. Example: