ページ

Tuesday, November 24, 2009

WPF Application with Bing API

There's something annoys me on the Internet...When I see a blog written by another languages.
So I created a translator application by WPF(Windows Presentation Foundation) with Bing API.
(well, I think "Bing Translator" site is better/easier than the application to use usually. :p )

Bing Translator
http://www.microsofttranslator.com/

Bing Developer Center
http://www.bing.com/developers/default.aspx
* Gotta create AppID on Bing Developer Center.


1.Starting the application




2.translating the input texts



3.Copying the result to Clipboard



*Pasting the result on Notepad via Clipboard



4.Changing the source/target Language

  4-1.Opening Expander



  4-2.Selecting Another language and Translating the text







  4-3.Closing Expander



5.Clearing the Textbox (Reset)





But, where is the auto-detect by Bing API?
Well, I couldn't find it after all.
So, I tried directly using "Microsoft Translator".
(Another version application of the above one.)

* Auto-detect(自動抽出)


 1.Launching the application



 2.translating the input texts





 3.Translating an undetectable text









By the way, this kind of application requires Internet connection.
So, this application checks whether network is available on the computer by NetworkAvailabilityChangedEventHandler.







 *Network unavailable: Buttons and the others are set as "Disabled".
 *Network available: Buttons and the others are set as "Enabled".


Ah, I can guess "Out-of-Browser" on silverlight3 would be the same like that.
and I think the Out-of-Browser must be totally better, in order to shield the AppID.

No comments:

Post a Comment