Browse Source

RichTextBox: fixed bug that I re-introduced that deals with using custom ITextFormatters.

pull/1645/head
brianlagunas_cp 16 years ago
parent
commit
28afd0ab72
  1. 4
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/RichTextBox/RichTextBox.cs

4
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/RichTextBox/RichTextBox.cs

@ -71,8 +71,12 @@ namespace Microsoft.Windows.Controls
return _textFormatter; return _textFormatter;
} }
set set
{
if (_textFormatter != value)
{ {
_textFormatter = value; _textFormatter = value;
_textFormatter.SetText(Document, Text);
}
} }
} }

Loading…
Cancel
Save