This is a migrated thread and some comments may be shown as answers.

Silverlight 4 Kiosk Application (OOB)

3 Answers 44 Views
HTMLPlaceHolder
This is a migrated thread and some comments may be shown as answers.
Kenz
Top achievements
Rank 1
Kenz asked on 01 Feb 2012, 01:37 PM
Hi,

I've developed a SL4 app (Out of Browser) that has a RadHtmlPlaceHolder and it's using a on-screen touch virtual keyboard.
App also has a button that toggles keyboard on and off ( just an .exe)
What i want to do is automatically toggling on keyboard when cursor clicks(focus) on a textbox(or text input) on a web page in HtmlPlaceHolder..
I've tried to get cursor change via mouse move event of HtmlPlaceHolder but it didnt work..

Can u please help me?
 
Best regards...

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 06 Feb 2012, 10:16 AM
Hello Kenz,

In OOB applicaitons the RadHtmlPlaceholder displays external pages in a WebBrowser control.

The weBrowser control allows you to communicate with the html content it displays. In your case I'd suggest you to create a function in the html/aspx content you are displaying to indicate that a text input has started or that an input field is focused. Once you handle these events in your web page you'll be able to notify the SL WebBorowser control and implement your custom logic.

You can access the WebBrowser control through the RadHtmlPlaceholder.WebBrowser property and you can handle the WebBrowser.ScriptNotify event to get the web page events notifications. Please have a look at this article for more information about the WebBrowser.ScriptNotify event.

I also attached a sample to get you started. Please have a look at it and let me know if it helps.

Regards,
Tina Stancheva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Kenz
Top achievements
Rank 1
answered on 09 Feb 2012, 10:12 AM
Thanks for your reply but this didnt solve my problem :/
The textboxes (or text inputs) are dynamic
I'm givin absolute url's like telerik.com....
0
Tina Stancheva
Telerik team
answered on 14 Feb 2012, 12:19 PM
Hi Kenz,

Unfortunately we are not aware of any other approaches that you can use to implement your scenario. And the RadHtmlPlaceholder has no control over the content of the WebBrowser, in OOB it simply exposes the WebBrowser control that is used to display the external pages this allowing you to access its methods and properties. But it can't receive events from the html content in that web browser unless you use the WebBrowser.ScriptNotify event approach.

Kind regards,
Tina Stancheva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
HTMLPlaceHolder
Asked by
Kenz
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Kenz
Top achievements
Rank 1
Share this question
or