Updated RichTextBox (markdown)

master
DianeXceed 7 years ago
parent
commit
01048ab3cf
  1. 2
      RichTextBox.md

2
RichTextBox.md

@ -95,7 +95,7 @@ Xaml:
``` ```
### Gotchas ### 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: Example:

Loading…
Cancel
Save