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" />

Share

About Jesse Liberty

Jesse Liberty is an independent consultant and programmer with three decades of experience writing and delivering software projects. He is the author of 2 dozen books and multiple Pluralsight courses, and has been 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 Xamarin Certified Mobile Developer and a Xamarin MVP, Microsoft MVP and Telerik 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?

Leave a Reply

Your email address will not be published.