html和Silverlight按值传递 [英] html and Silverlight Pass by value
本文介绍了html和Silverlight按值传递的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
html页面输入传递到Silverlight文本框的文本
a.html
<input type="text" id="text1" name="text1"> <input type="button" value="ok">
a.xaml
<TextBox Name="txtRuleName" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0"></TextBox>
a.html单击确定,然后将a.html值传递给a.xaml txtRuleName
解决方案
您可以使用 ^ ]可以使用javascript ...从HTML调用托管代码...
演练:从JavaScript调用托管代码 [ ^ ]
html page enter text passed to the Silverlight TextBox
a.html
<input type="text" id="text1" name="text1"> <input type="button" value="ok">
a.xaml
<TextBox Name="txtRuleName" Width="200" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="0"></TextBox>
a.html click ok a.html value passed to the a.xaml txtRuleName
help me!
解决方案
You can use HTML Bridge[^] to call managed code from HTML using javascript...
Walkthrough: Calling Managed Code from JavaScript[^]
这篇关于html和Silverlight按值传递的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文