添加JavaScript或< script>标记在xaml文件中 [英] Adding JavaScript or <script> tag in a xaml file

查看:84
本文介绍了添加JavaScript或< script>标记在xaml文件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我需要在我的xaml文件中添加一个javascript函数(在创建Silverlight应用程序,MainPage.xaml文件中)


但我无法做到。有没有办法添加它,还是我们可以创建一个javascript文件并在xaml文件中引用它?

解决方案

你好AkshathaMK,


Javascript在XAML中没有多大意义。 
听起来像是需要在Silverlight应用程序中进行通信/使用Javascript。还是我错了?看一下以下网站: 
http://msdn.microsoft.com/en-us/library/cc903928%28v=vs.95%29.aspx这可能会给你一个开始。


Hello all,

I need to add a javascript function in my xaml file (in creating a Silverlight app, MainPage.xaml file)

But am not able to do it. Is there any way to add it or can we create a javascript file and have its reference in the xaml file?

解决方案

Hi AkshathaMK,

Javascript in XAML does not make much sense. It sounds like you need to communicate/use Javascript in your Silverlight application. Or am I wrong? Take a look at the following site: http://msdn.microsoft.com/en-us/library/cc903928%28v=vs.95%29.aspx maybe this will give you a start.


这篇关于添加JavaScript或< script>标记在xaml文件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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