Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit How to make Spell check for textbox in Silverlight 2
5 replies. Latest Post by netlistener on March 8, 2009.
(0)
shan_asp...
Member
16 points
59 Posts
08-26-2008 8:24 AM |
Hi,
I know that there is steel no one has made such textbox. B'cause of big volume of dictionary at client side.
But I want to know how should I start coding towards that direction.
In short I do not want to check all the words against full dictionary. But How should I make custom control for that which captures on giving space in textbox check against some small collection of words or on editing word, underlining word with red line if it is not match , on right click it giving some list, on selecting from list it it should replace the word.
Just a small scenario i m thinking.
Plz help me.
rajesh s...
Contributor
2314 points
505 Posts
08-26-2008 9:02 AM |
I have a suggestion where you can show related text as shown in the Google Suggest search textbox. It should be difficult as there is TextChanged event available.In textchanged event you shud get the data and show user to select.
HarshBar...
Star
9908 points
1,719 Posts
08-26-2008 9:09 AM |
Hi.
I think you can get your dictionary data(list of words) from database using wcf services using text changed event and when text will lose focus then you can compare that with available collection or when your text box will lose focus you can fire a service and compare for words and if no word is matching you can load a dictinary in client side which will contain all available suggestion and you can change text color..
Mark this as answer if it helps...
08-29-2008 7:41 AM |
I have crested the wcf service but now,
How can i underline the word which has spelling mistake in TextBox
Plz help.
ankitavyas
100 points
44 Posts
11-25-2008 7:08 PM |
You might need to think about using RICH TEXT EDITOR
Link of editor
http://www.codeplex.com/richtextedit
netlistener
10 points
5 Posts
03-08-2009 5:19 PM |
Yes you should really use a richtextbox if you want to underline words, there is a demo of richtextbox with spell checker here which is free. Having the whole dictionary download to the client initially can take some time but once the user has viewed it once it is cached which makes it a much better prospect than using web services.