Adding JavaScript or <script> tag in a xaml file RRS feed

  • Question

  • 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?

    Monday, February 4, 2013 12:11 PM

All replies

  • 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.

    With best regards,

    Alex van der Lans
    Team Leader | Software Engineer
    URL: http://www.alexvanderlans.com

    MI Consultancy
    The Netherlands
    URL: http://www.miconsultancy.com

    • Proposed as answer by AlexHello Wednesday, March 27, 2013 8:10 PM
    Wednesday, February 20, 2013 12:55 PM