Kamis, 24 Maret 2011
Silverlight Tip of the Day #15 – Communicating between JavaScript & Silverlight
Communicating between Javascript and Silverlight is, fortunately, relatively straight forward. The following sample demonstrates how to make the call both ways. Calling Silverlight From Java script:In the constructor of your Silverlight app, make a call to RegisterScriptableObject().This call essentially registers a managed object for scriptable access by JavaScript code. The first parameter is
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar