tags:

views:

30

answers:

2

Hi :), Is it possible to insert Javascript code into XAML?

Thanks

Q

A: 

I cant seem to add comments.

Hi. Thnx for te reply. Is there any scripting language that I can insert into XAML other than C# or VB.NET?

I wanted to use a simple but flexible langauge to manipulate the XAML.
A: 

You can use IronPython or IronRuby with WPF or Silverlight. Here is one article on WPF with IronPython and another article of WPF with IronRuby.

As for Javascript, there is work on IronJS as well as Jint which you should be able to use in WPF similar to how IronPython and IronRuby are used. I haven't seen any articles on WPF with IronJS/Jint yet, but in theory it should be very similar to the other DLR implementations.

Ryan