添加JavaScript或< script>标记在xaml文件中 [英] Adding JavaScript or <script> tag in a xaml file
问题描述
大家好,
我需要在我的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屋!