Silverlight 4 Kiosk Application (OOB)

4 posts, 0 answers
  1. Kenz
    Kenz avatar
    19 posts
    Member since:
    Apr 2011

    Posted 01 Feb 2012 Link to this post

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

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 06 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Kenz
    Kenz avatar
    19 posts
    Member since:
    Apr 2011

    Posted 09 Feb 2012 Link to this post

    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....
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 14 Feb 2012 Link to this post

    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 >>
Back to Top