it&#39;s a bad subject but I didn&#39;t know how else to call it.<br><br>For the DynamicScriptControl somebody submitted an ironpython implementation in February but I only just now got round to adding it.<br>And I have problems :)<br>

<br>The link below has the line that fails for IronPython but works for IronRuby<br><br><a href="http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/DynamicScriptControl/ScriptConverter.cs#37">http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/DynamicScriptControl/ScriptConverter.cs#37</a><br>

<br>So the idea is that you read a script file containing a wpf/silverlight control. Because you cannot have DLR controls in WPF atm there is this dynamic script control to allow you to have DLR controls participate in XAML.<br>

<br>So what happens in IronRuby is the following.<br>The script converter generates a script that will set the properties and create an instance of the control. This control is then put into the XAML object graph.<br>The script that is generated actually monkey patches the initialize method of the the control class  to populate the control properties.<br>

<br>The implementation that has been provided to me actually inherits of the first control to override the constructor and to do the proper initializations, only it doesn&#39;t work.<br>it tells me that it cannot find the parent class I get an UnboundNameException and AFAICT I shouldn&#39;t get that.<br>

<br>I&#39;m using the latest nightly builds.<br><br>The ruby implementation of the control<br>
<a href="http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/TestApplication/prefilled_text_box.rb">http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/TestApplication/prefilled_text_box.rb</a><br>


<br>
the python implementation<br><a href="http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/TestApplication/prefilled_text_box.py">http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/TestApplication/prefilled_text_box.py</a><br>

<br>The ruby code formatter (for monkey patching the control):<br><a href="http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/DynamicScriptControl/Formatters/RubyFormatter.cs">http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/DynamicScriptControl/Formatters/RubyFormatter.cs</a><br>

<br>The python code formatter:<br><a href="http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/DynamicScriptControl/Formatters/PythonFormatter.cs">http://code.google.com/p/dynamic-script-control/source/browse/trunk/src/DynamicScriptControl/Formatters/PythonFormatter.cs</a><br>

<br><br>I&#39;m pretty sure this is a 5 second fix for somebody that knows what they&#39;re doing with IronPython, so help help ... ;)<br><br>Thanks<br><br>---<br>Met vriendelijke groeten - Best regards - Salutations<br>
Ivan Porto Carrero<br>
GSM: +32.486.787.582<br>Blog: <a href="http://flanders.co.nz">http://flanders.co.nz</a><br>Twitter: <a href="http://twitter.com/casualjim">http://twitter.com/casualjim</a><br>Author of IronRuby in Action (<a href="http://manning.com/carrero">http://manning.com/carrero</a>)<br>

<br><a href="http://www.brainyquote.com/quotes/authors/s/steven_wright.html" target="_blank">Steven Wright</a>  - &quot;A lot of people are afraid of heights. Not me, I&#39;m afraid of widths.&quot;