Runtime modify control's properties of Silverlight application from Windows Form application RRS feed

  • Question

  • Ok, the title is not so clear, I'll try to explain better. I've a Silverlight application, and in this application there are several Textbox controls. Now...I'd like to run this application inside another Windows Form application (maybe in WebBrowser control). My question is, there is a way to edit the Text property of the Textbox controls from the Windows Form application? I don't know...something like passing the text as a parameter launching the Silverligh application...
    Tuesday, November 16, 2010 1:13 PM


  • Try make a call to RegisterScriptableObject() in your silverlight app.Then call WebBrowser.Document.Window.InvokeScript when the DocumentCompleted event is raised.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Wednesday, November 17, 2010 12:56 AM