Windows 8 and Spell Check

WinRT XAML supports system-driven spell checking and auto-complete. Built in and right out of the box. The figure SpellCheckshows spell checking at work. Notice the squiggly underlining of the misspelled word, the options to correct or add to the dictionary or ignore.

You get both spell checking and autocompletion by setting just two properties on the TextBox.

<TextBox x:Name="JobTitle"
IsSpellCheckEnabled="True"
IsTextPredictionEnabled="True"
Width="200"
Height="40"
Grid.Row="2"
Grid.Column="1"
HorizontalAlignment="Left"
Margin="5"
VerticalAlignment="Center" />

About Jesse Liberty

Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen online courses. His latest book, Building APIs with .NET will be released early in 2025. Liberty is a Senior SW Engineer for CNH and he was a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a Microsoft MVP.
This entry was posted in Windows 8. Bookmark the permalink.

5 Responses to Windows 8 and Spell Check

  1. Tomi Halonen says:

    Did not work until changed this (Visual Studio 2013 Community) in Solution Explorer:
    Package.appxmanifest -> Application tab -> Default language: fi
    (Finland, in my case)
    List is here too:
    https://msdn.microsoft.com/en-us/library/windows/apps/jj657969.aspx

    Wish there could be something like ‘default’ in that list too…

  2. Audry says:

    I see a lot of interesting content on your website.
    You have to spend a lot of time writing, i know how to save you a
    lot of work, there is a tool that creates unique, google friendly articles in couple of minutes, just type in google – k2 unlimited content

  3. testdomain says:

    Hi there I am so happy I found your website, I really found you by accident, while I wasbrowsing on Google for something else, Nonetheless I am here now andwould just like to say thanks a lot for a marvelous post and aall round entertaining blog (I also love the theme/design), I don’t have time to read it all at the moment but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the awesome job.

  4. Marcio says:

    I made this example and can not display the correct options. I need to install a plugin?

  5. Daniel Mackay says:

    How does the auto complete know which suggestions to make? Does it keep track of history, or do you have to populate it yourself?

Comments are closed.