Silverlight函数调用问题 [英] Silverlight Function calling problem

查看:83
本文介绍了Silverlight函数调用问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对Silverlight的调用功能有疑问.

我的工作条件:
------------------------
我已经在Silverlight中成功创建了一个应用程序.现在,在Default.aspx页面中添加两个Silverlight对象.我需要通过第一个Silverlight对象调用第二个Silverlight对象的函数.

第一个Silverlight对象:其中包含按钮和一个文本框.我需要在文本框中输入数据,然后单击提交.
第二个Silverlight对象:该对象带有标签,我在其中传递了输入值:abc"之类的结果.

两个对象都不相同,当用户单击第一个对象的Submit按钮时,我需要调用第二个对象的功能.

我尝试对此进行搜索,但找不到结果.

请帮帮我.

谢谢,
Gaurav Shrivastava
(高级软件工程师)

Hello All,

I have a question regarding calling function of Silverlight.

My Working Conditions:
------------------------
I have created an application in Silverlight successfully. Now I add two objects of the Silverlight in my Default.aspx page. I need to call function of second Silverlight object by first Silverlight object.

First Silverlight Object: this contains button and a text box. I need to enter data in the text box and then click submit.
Second Silverlight object: this object having label in which I pass the result like "Enter value: abc".

Both the objects are different and I need to call function of second object when user click on Submit button of first object.

I try to search about this but unable to find result.

Please help me.

Thanks,
Gaurav Shrivastava
(Sr. Software Engineer)

推荐答案

您可以使用
You can use the HTML Bridge[^] to communicate between the page and Silverlight objects.

*Edit* For example, SL object 1 calls JS function which calls SL object 2 method...


这篇关于Silverlight函数调用问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆