Skip to main content

Microsoft Silverlight

Answered Question How to make Spell check for textbox in Silverlight 2RSS Feed

(0)

shan_aspdotnet
shan_asp...

Member

Member

16 points

59 Posts

How to make Spell check for textbox in Silverlight 2

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.

Shan
Asp.Net, Silverlight

rajesh shirpuram
rajesh s...

Contributor

Contributor

2314 points

505 Posts

Re: How to make Spell check for textbox in Silverlight 2

 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.

 

Thanks
Rajesh Shirpuram

(If this has answered your question, please click on "mark as answer" on this post. Thank you!)

HarshBardhan
HarshBar...

Star

Star

9908 points

1,719 Posts

Answered Question

Re: How to make Spell check for textbox in Silverlight 2

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...

Mark as answer if this post answered your question.

Harsh Bardhan

shan_aspdotnet
shan_asp...

Member

Member

16 points

59 Posts

Re: How to make Spell check for textbox in Silverlight 2

I have crested the wcf service but now,

How can i underline the word which has spelling mistake in TextBox

Plz help.

Shan
Asp.Net, Silverlight

ankitavyas
ankitavyas

Member

Member

100 points

44 Posts

Re: How to make Spell check for textbox in Silverlight 2

 You might need to think about using RICH TEXT EDITOR

 Link of editor

http://www.codeplex.com/richtextedit

netlistener
netlistener

Member

Member

10 points

5 Posts

Re: How to make Spell check for textbox in Silverlight 2

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities