Spell checking in Windows Presentation Foundation

One of the features that impressed PDC attendees was the built-in spell checker in Windows Presentation Foundation. Activating it is just as simple as setting the IsSpellCheckEnabled property to true on a TextBox or RichTextBox control.

<DockPanel xmlns=" https://schemas.microsoft.com/winfx/avalon/2005 ">
<TextBox IsSpellCheckEnabled='True'>This text is wronw.</TextBox>
<RichTextBox IsSpellCheckEnabled='True'>
<FlowDocument><Paragraph>This text is also wronw.</Paragraph></FlowDocument>
</RichTextBox>
</DockPanel>

Users will get red 'squigglies' under the misspelled words, and the context menu will come up with suggestions. Was that easy or what?

This posting is provided "AS IS" with no warranties, and confers no rights.