Spell Check a TextBox or RichTextBox Control in Real Time

image_pdfimage_print


   
     

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="WPF" Height="100" Width="300">
    <StackPanel>
        <TextBlock FontSize="14" FontWeight="Bold" 
                   Text="A spell-checking TextBox:"/>
        <TextBox AcceptsReturn="True" AcceptsTab="True" FontSize="14" 
                 Margin="5" SpellCheck.IsEnabled="True" TextWrapping="Wrap">
            The qick red focks jumped over the lasy brown dog.
        </TextBox>
    </StackPanel>
</Window>