# WPF etc

**URL:** <https://www.ruby-forum.com/t/wpf-etc/126577>\
**Category:** IronRuby\
**Created:** [January 19, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/wpf-etc/126577 "2008-01-19T20:23:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xjivan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/x/6f9a4e/32.png) [@xjivan](https://www.ruby-forum.com/u/xjivan)\
**Post date:** [January 19, 2008, 8:23pm UTC](https://www.ruby-forum.com/t/wpf-etc/126577/1 "2008-01-19T20:23:16Z")

</div>

Hi

In the IronPython samples for Silverlight I can see a really nice way of  
attaching a python file to the canvas.  
\<x:Code Source=“myfile.py” Type=“text/python” /\>  
which for ruby becomes  
\<x:Code Source=“myfile.rb” Type=“text/ruby” /\>  
as soon as there is a silverlight refresh I presume.

Doesn’t the current silverlight download not support Ruby yet ?

Anyway my real question is, is such a construct available for WPF as  
well.  
When i tried to put it in, it didn’t want to work. How is this done for  
silverlight? Is that because the silverlight host application extends  
the  
code element? Would it be hard to make WPF work in the same way?  
I would love to be able to test some of the samples I will have with  
silverlight as well, does anybody have any idea as to when we would be  
able  
to get something?

Thanks  
Ivan
