Click here to Skip to main content
15,884,739 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
SQL
Hello,

I have created WPF User Control Library project which contains a textbox with Spellcheck property enabled. I want to use this TEXTBOX user Control in web form so that it does spell check in realtime ? Is it possible?


Any help is appreciated. Pls advise.

Thank you.
Posted
Comments
Afzaal Ahmad Zeeshan 9-Jun-15 14:55pm    
Why are you merging the desktop technology with web? Although you can use the back-end logic on your web app.
RachDave 12-Jun-15 9:29am    
the only purpose is to use spellcheck feature.
[no name] 9-Jun-15 15:04pm    
That is why Silverlight was invented.
Sergey Alexandrovich Kryukov 9-Jun-15 15:05pm    
Good point. :-)
—SA
RachDave 12-Jun-15 9:30am    
silverlight doesnt support spellcheck feature. I need realtime spellcheck feature.

1 solution

No. It is not possible...
Notice that you are talking about UI, which is highly dependent on the medium/device you use to display...
So WPF was designed for desktop display and directly uses DirectX installed on your OS...
A web form on the other hand displayed inside some browser window and has no direct access to the OS hosting the browser. To utilize the abilities you have in WPF you need some layer that can convert between WPF and the web platform...There is Silverlight that actually do all (almost) WPF things inside a browser window, but it is not equal to WPF in all aspect...
If all you want to use is the spell-checking ability you may separate it form the UI control and use it as a back-end service for your web control...
Maybe a better option is to Google for a special spell checker that fits web forms (for instance jQuery has some spell-checker plugins for that)...
(A side note: as today all modern browsers has built in spell-checking and you may not need any special spell-checking at all)
 
Share this answer
 
Comments
RachDave 12-Jun-15 9:26am    
Thank you for the reply.
In our intranet applications, we have textareas where users write their notes which requires Spellchecking.
All FREE spellcheckers (including Jquery ones) plugins do not have realtime spell checking.so we need something that is FREE and does REALTIME spell check.
so I was wondering if I can grasp Window based Textbox which has spellcheck feature already using WPF and apply it to Web.
Can you pls elaborate more on " If all you want to use is the spell-checking ability you may separate it form the UI control and use it as a back-end service for your web control" ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900