<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ivan Porto Carrero &#187; silverlight</title>
	<atom:link href="http://flanders.co.nz/category/silverlight/feed/" rel="self" type="application/rss+xml" />
	<link>http://flanders.co.nz</link>
	<description>thoughts.each { &#38;:propagandise }</description>
	<lastBuildDate>Sat, 03 Sep 2011 09:56:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>A rant on a talk falling to pieces</title>
		<link>http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/</link>
		<comments>http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:45:21 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[ASP.NET MVC]]></category>
		<category><![CDATA[caricature]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[Presentations]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[IronRuby MVC]]></category>
		<category><![CDATA[Presentation]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/</guid>
		<description><![CDATA[<a href="http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/" title="A rant on a talk falling to pieces"></a>Earlier this week I had the pleasure of doing a talk for the Belgian .NET user group.&#160; During this talk I ran in to all kinds of problems. I&#8217;ve done presentations where I was royally underprepared and to avoid that &#8230;<p class="read-more"><a href="http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/" title="A rant on a talk falling to pieces"></a><p>Earlier this week I had the pleasure of doing a talk for the Belgian .NET user group.&#160; During this talk I ran in to all kinds of problems. I&#8217;ve done presentations where I was royally underprepared and to avoid that this time I actually started prepping for this talk on time. I was done on time, was prepared had 5 backups of my presentation and samples. What did I learn from this, if you&#8217;re prepared other things will go wrong.    <br />I&#8217;ll share the story of stuff that can go wrong. </p>
<p>Before starting the rant I have some links to share.</p>
<ul>
<li><a href="http://www.slideshare.net/casualjim/ruby-loves-dot-net" target="_blank">Slides</a> </li>
<li>IronRubyMvc sample – <a href="http://irtodo.koolkraft.net/" target="_blank">live demo</a> – <a href="http://github.com/casualjim/ironrubymvc-sample/tree/master" target="_blank">source</a> </li>
<li>Silverlight sample – <a href="http://samples.koolkraft.net/picture_view/" target="_blank">live demo</a> – <a href="http://samples.koolkraft.net/picture_view.zip" target="_blank">source</a> </li>
<li>IronRubyMVC specs – <a href="http://github.com/casualjim/ironrubymvc/tree" target="_blank">source</a> </li>
<li>Sinatra – <a href="http://samples.koolkraft.net/sinatra.zip" target="_blank">source</a></li>
<li>Metaprogramming &#8211; <a href="http://samples.koolkraft.net/metaprogramming.zip" target="_blank">source</a>&#160;</li>
</ul>
<p>I have a device that I call internet on a stick, which is a vodafone usb 3G modem that I plug in to my system and it gets me on the internet (mistake 1). Since I assumed that that thing would continue to work I made most of my demos internet enabled (mistake 2). For example I have a demo where I go download pics from flickr and then show them with some animations with silverlight.    <br />Before my presentation I changed the fonts, opened all the files I was going to talk about ran all the demos again to make sure they would work and everything went fine.     <br />I unplug the USB device and go into the room to hook up the projector etc. The presentation starts and for the first hour everything went really well (from my perspective at least don&#8217;t know about the people attending).     <br />We have a break and I plug the USB device in, at this point the vodafone program hangs (first time ever I swear). What&#8217;s more I can&#8217;t make it go away at all so I reboot my pc (this is still during the break). </p>
<p>Now I&#8217;m getting a little desperate because it still doesn&#8217;t work. With rebooting I also lost all my carefully opened files earlier (I&#8217;m showing code in about 3 different environments and 2 different OS&#8217;es).    <br />So during the presentation I apologise and try to reboot once more while taking questions from the audience and hoping somebody will try to start a discussion with me. After rebooting I got a message saying my date was set to 2001 which I thought was peculiar but clicked it away.&#160; I boot vmware fusion with windows 7 (this took fairly&#160; long and is a little bit funky as the screen resolution changes a lot during this process).     <br />Ok so far so good, by now I&#8217;ve already skipped the silverlight demo promising that it will be available as a download on my blog and will be moving on to the ironrubymvc sample. To prove I do actually use visual studio at times I wanted to open my demo project in visual studio. I open visual studio only for it to tell me that my trial has expired and I can either upgrade or close the application. Oooooookay this is completely weird because i get my software through my msdn subscription and I had been using it earlier that day. </p>
<p>Moral of the story: Either go vastly underprepared and wing it. Or don&#8217;t rely on the internet and always take at least 2 laptops that have identical configurations but I&#8217;m pretty sure those would or explode in my face or something will fall from the ceiling, building collapses or other mishaps. </p>
<p>Instead of having one demo go bad on me now I&#8217;m probably facing a reinstall of my mac because it lost a bunch of settings, for which I&#8217;m holding the vodafone responsible. At this moment I&#8217;m fairly certain that I should go less prepared and just wing it just out of fear for bigger disasters, people may die. </p>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c3bf1872-2d44-4a67-91a3-8b41f485f175" class="wlWriterEditableSmartContent">Technorati Tags: <a href="http://technorati.com/tags/IronRuby" rel="tag">IronRuby</a>,<a href="http://technorati.com/tags/IronRuby+MVC" rel="tag">IronRuby MVC</a>,<a href="http://technorati.com/tags/caricature" rel="tag">caricature</a>,<a href="http://technorati.com/tags/Presentation" rel="tag">Presentation</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2009/07/02/a-rant-on-a-talk-falling-to-pieces/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IronNails: Some progress</title>
		<link>http://flanders.co.nz/2008/08/19/ironnails-some-progress/</link>
		<comments>http://flanders.co.nz/2008/08/19/ironnails-some-progress/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 06:50:14 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[ironnails]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[WPF]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2008/08/19/ironnails-some-progress/</guid>
		<description><![CDATA[<a href="http://flanders.co.nz/2008/08/19/ironnails-some-progress/" title="IronNails: Some progress"></a>I thought it might be a good idea to update you guys on how IronNails is progressing.&#160; I think I&#8217;ve got it so that you aren&#8217;t exposed to writing many of the boring boilerplate code that comes with taking this &#8230;<p class="read-more"><a href="http://flanders.co.nz/2008/08/19/ironnails-some-progress/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://flanders.co.nz/2008/08/19/ironnails-some-progress/" title="IronNails: Some progress"></a><p>I thought it might be a good idea to update you guys on how IronNails is progressing.&#160; I think I&#8217;ve got it so that you aren&#8217;t exposed to writing many of the boring boilerplate code that comes with taking this approach (M &#8211; V &#8211; VM- C). Also to execute an action on a controller asynchronously you can by just adding :mode =&gt; :asynchronous to your view_action declaration.</p>
<p>A lot is still left to do but this proves that it is possible to use IronRuby today to do some pretty cool stuff. From the top of my head here are some things that still need to be done:</p>
<ul>
<li>The ability to load xaml from an assembly like the one that is generated when you use Blend for your design. </li>
<li>More predefined behaviors </li>
<li>Templated generators </li>
<li>Silverlight support </li>
</ul>
<p>But the core of the framework is working. Now it&#8217;s a matter of extending the functionality. Some of the features the framework does support</p>
<ul>
<li>Binding to controller actions through commands </li>
<li>Binding to controller actions through event handlers on the view proxy </li>
<li>Asynchronous execution of actions </li>
<li>Timed execution of actions </li>
<li>Binding to models </li>
</ul>
<p>I will be developing my sample for my chapter against this framework and will add the pieces I&#8217;m missing as I get on.</p>
<p>Some of the things I foresee that might need to be added are:</p>
<ul>
<li>support for controlling the application from an IronRuby console so that you can interact with the interface as it is running. </li>
<li>support for a console to interact with the code of the application. </li>
<li>support for plugins </li>
</ul>
<p>So after all these lists how would an application look like when you are developing it?</p>
<p>The controller:</p>
<pre class="ruby" name="code"># file name: demo_controller.rb
class DemoController &lt; IronNails::Controller::Base
  view_object :status_bar_message, &quot;The status bar message&quot;

  view_action :change_message

  def change_message
    @status_bar_message = &quot;#@status_bar_message appended&quot;
  end
end</pre>
<p>The ViewModel:</p>
<pre class="csharp" name="code"># file name: DemoViewModel.cs
public class DemoViewModel : IronNails.View.ViewModel { }</pre>
<p>The View:</p>
<pre class="xml" name="code">&lt;Window
    xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
    xmlns:behaviors=&quot;clr-namespace:IronNails.Library.Behaviors;assembly=IronNails.Library&quot;
    Title=&quot;Window1&quot; Height=&quot;300&quot; Width=&quot;300&quot;&gt;
    &lt;StackPanel&gt;
        &lt;TextBlock Text=&quot;{Binding Objects[StatusBarMessage].Value}&quot; &gt;&lt;/TextBlock&gt;
        &lt;Button Content=&quot;Click me&quot; behaviors:ClickBehavior.LeftClick=&quot;{Binding Commands[ChangeMessage]}&quot; /&gt;
    &lt;/StackPanel&gt;
&lt;/Window&gt;</pre>
<p>There are currently 2 dictionaries available to the view. One that contains the models (Objects) and one that contains the commands (Commands).&#160; The value of an entry in the Objects needs to be observable by implementing INotifyPropertyChanged and that is what&#8217;s responsible for the binding syntax Objects[ModelName].Value </p>
<p>At this moment there are only a couple of behaviors implemented: LeftClick, RightClick, DoubleClick and Hover.</p>
<p>The framework expects that you follow the basic naming conventions of the technology you&#8217;re programming in. So in ruby you underscore names but in C# and xaml you camelcase them. </p>
<p>By defining an object with view_object <img src='http://flanders.co.nz/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> bject_name, default value you define it with a default value that you can change afterwards in the controller actions.&#160; By defining an action with view_action :action_name, :mode =&gt; :asynchronous you tell that framework that you want to link a method or a block as a controller action and execute it asynchronously.</p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b60d7b82-4857-4637-8635-079cacc913eb" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/ironnails" rel="tag">ironnails</a>,<a href="http://technorati.com/tags/IronrubyInAction" rel="tag">IronrubyInAction</a>,<a href="http://technorati.com/tags/ironruby" rel="tag">ironruby</a>,<a href="http://technorati.com/tags/WPF" rel="tag">WPF</a>,<a href="http://technorati.com/tags/Silverlight" rel="tag">Silverlight</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2008/08/19/ironnails-some-progress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IronNails : Rails like development for IronRuby with WPF/Silverlight</title>
		<link>http://flanders.co.nz/2008/08/07/ironnails-introduction/</link>
		<comments>http://flanders.co.nz/2008/08/07/ironnails-introduction/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 14:23:43 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[.NET 3.0]]></category>
		<category><![CDATA[.NET 3.5]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[ironnails]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[silverlight]]></category>
		<category><![CDATA[WPF]]></category>
		<category><![CDATA[dlr]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2008/08/07/ironnails-introduction/</guid>
		<description><![CDATA[For my book IronRuby I'm working on chapter 4. That chapter is about doing WPF development with IronRuby. I started out with a straight port of Witty to IronRuby. As I was doing that the cogs started turning and I came up with a way to bring the rails style of development to WPF.   I decided to investigate that route a little bit further and now I have a small framework that enables you to write WPF applications with the MVC paradigm. I decided to open that code up as open source and host it on github.<p class="read-more"><a href="http://flanders.co.nz/2008/08/07/ironnails-introduction/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://flanders.co.nz/2008/08/07/ironnails-introduction/" title="IronNails : Rails like development for IronRuby with WPF/Silverlight"></a><p>For my book IronRuby I&#8217;m working on chapter 4. That chapter is about doing WPF development with IronRuby. I started out with a straight port of <a href="http://code.google.com/p/wittytwitter" target="_blank">Witty</a> to IronRuby. As I was doing that the cogs started turning and I came up with a way to bring the rails style of development to WPF.&#160;&#160; I decided to investigate that route a little bit further and now I have a small framework that enables you to write WPF applications with the MVC paradigm. I decided to open that code up as open source and host it on github.&#160; </p>
<p>At first I used the name Sails for my framework but it turns out there is java clone of rails that is called opensails. So to avoid confusion David M. Peterson proposed the name IronNails.</p>
<blockquote><p>On Sat, 02 Aug 2008 08:00:44 -0600, Charles Oliver Nutter wrote: </p>
<p>&#160;&#160;&#160; FYI, there&#8217;s already a framework named &quot;Sails&quot; for Java:      <br /><a href="http://www.opensails.org/">http://www.opensails.org/</a></p>
<p>For the sake of sticking to the &quot;Iron&quot; theme, why not replace the &#8216;S&#8217; with an &#8216;N&#8217; and go with IronNails. <img src='http://flanders.co.nz/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> &#160; Maybed it&#8217;s just me, but if given the choice, I&#8217;d much rather nail it than sail it any day of the week. <img src='http://flanders.co.nz/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  </p>
<p>&#8211;      <br />/M:D </p>
<p>M. David Peterson</p>
</blockquote>
<p>You can find the project here: <a href="http://github.com/casualjim/ironnails">http://github.com/casualjim/ironnails</a></p>
<p>At this moment it&#8217;s definitely not finished at all, but it does work. The remainder of the week I&#8217;ll move my previous demo code onto this framework, update the code samples in my chapter and finish the content. I hope I will have all of this done by the end of next week.</p>
<p>Back to the IronNails project:</p>
<p>Because DLR objects cannot be used to bind to in WPF you have to define a skeleton of the ViewModel in C#, but this will change in the future. When that changes I&#8217;ll look at extending the framework to make use of some other WPF patterns like defining a DependencyObject and Behaviors. Once those are defined you get a very clean separation between design and behavior.</p>
<p>This is abstracted away from you but in the background the framework works with the View &#8211; ViewModel &#8211; Model &#8211; Controller pattern although I&#8217;ve tried to keep your exposure to the view model to a minimum. The framework follows naming conventions per language. So in C# and XAML you camel case stuff and in IronRuby you underscore stuff.</p>
<p>The very core of the framework is defined in C# but most of the code is IronRuby, depending on how hard it will be after the DLR RTM&#8217;s I may look at adding support for all the DLR languages.</p>
<blockquote><p>IronNails      <br />========= </p>
<p>IronNails is a framework inspired by the Rails and rucola frameworks. It offers a rails-like way of developing      <br />applications with IronRuby and Windows Presentation Foundation (WPF).       <br />This framework uses the pattern Model &#8211; ViewModel &#8211; View &#8211; Controller (M-VM-V-C). It should be able to run on both WPF       <br />and Silverlight.       <br />The idea is that the views can be created using a design tool like Blend for example and just save that xaml as is. The       <br />designer should not need to use anything else than drag and drop to create a GUI design. The behaviors are then added to       <br />the view by using predefined behaviors in the framework or by defining your own behavior.       <br />The framework then generates a proxy for the view which will be used to transparently wire up the commands in the       <br />behaviors to controller actions. </p>
</blockquote>
<p>You are now able to write the following code for a controller: </p>
<pre class="ruby" name="code">class MyController &lt; IronNails::Controller::Base

  view_action :show_message, :triggers =&gt; :my_button do
    MessageBox.show &quot;This is the great message from a block&quot;
  end

  view_action :change_color, :triggers =&gt; { :element =&gt; :my_text_block, :event =&gt; :mouse_enter }
  view_action :reset_color, :triggers =&gt; { :element =&gt; :my_text_block, :event =&gt; :mouse_leave } do |view|
    view.my_text_block.foreground = :black.to_brush
  end

  view_object :people, Person.find_all

  def change_color(view)
    view.my_text_block.foreground = :red.to_brush
  end

end</pre>
<p></p>
<p>At this moment the project has 0 unit tests, it has below minimal documentation and it still needs a work like defining the behaviors. I have to move on with my book but intend to continue developing this framework after my book is finished and IronRuby RTM&#8217;s.&#160; There are some more workarounds in the project that will all disappear as IronRuby progresses.</p>
<div><a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fflanders.co.nz%2f2008%2f08%2f07%2fironnails-introduction%2f"><img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fflanders.co.nz%2f2008%2f08%2f07%2fironnails-introduction%2f" border="0" /></a> </div>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:b145efcd-14b0-4d36-9aa2-efed49897e0d" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/IronRuby" rel="tag">IronRuby</a>,<a href="http://technorati.com/tags/IronRubyInAction" rel="tag">IronRubyInAction</a>,<a href="http://technorati.com/tags/IronNails" rel="tag">IronNails</a>,<a href="http://technorati.com/tags/WPF" rel="tag">WPF</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2008/08/07/ironnails-introduction/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Dynamic Script Control</title>
		<link>http://flanders.co.nz/2008/06/12/dynamic-script-control/</link>
		<comments>http://flanders.co.nz/2008/06/12/dynamic-script-control/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 05:13:42 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2008/06/12/dynamic-script-control/</guid>
		<description><![CDATA[<a href="http://flanders.co.nz/2008/06/12/dynamic-script-control/" title="Dynamic Script Control"></a>Both Silverlight and WPF use XAML markup to describe their user interface.&#160; As I&#8217;m currently writing my chapter on WPF for my book IronRuby In Action and I want to use some xaml that has been generated before for a &#8230;<p class="read-more"><a href="http://flanders.co.nz/2008/06/12/dynamic-script-control/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<a href="http://flanders.co.nz/2008/06/12/dynamic-script-control/" title="Dynamic Script Control"></a><p>Both Silverlight and WPF use XAML markup to describe their user interface.&#160; As I&#8217;m currently writing my chapter on WPF for my book IronRuby In Action and I want to use some xaml that has been generated before for a different project but with an IronRuby class to load the xaml I&#8217;m in trouble. This is because you can declare assembly references in the xml namespace declarations so you can use the types in that assembly from xaml.&#160; </p>
<p>The DLR based languages don&#8217;t compile into static assemblies and this means that you can&#8217;t use those xml namespace definitons to reference your assemblies.&#160; I wrote a fairly trivial control that acts like a hook for DLR based controls in the XAML tree.</p>
<p>You can check it out at codeplex.    <br /><a href="http://codeplex.com/dynamicscriptcontrol" target="_blank">http://codeplex.com/dynamicscriptcontrol</a></p>
<p>The idea behind this control is that you can &quot;hook&quot; your DLR based control into the visual tree by setting some properties.&#160; You can set properties on the DLR based control by setting the Attributes property on the DynamicScriptControl</p>
<p>Let&#8217;s look at a quick example:</p>
<p>1. The ruby file defining a custom TextBox. But you can do whatever&#160; you want in that ruby file of course.</p>
<p><a href="http://flanders.co.nz/wp-content/uploads/2008/06/dynamic-script-control-rubyscript.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="120" alt="dynamic_script_control_rubyscript" src="http://flanders.co.nz/wp-content/uploads/2008/06/dynamic-script-control-rubyscript-thumb.png" width="327" border="0" /></a> </p>
<p>All this textbox does is preset it&#8217;s text property to &quot;I&#8217;m prefilled&quot; </p>
<p>2. The xaml for the window</p>
<p><a href="http://flanders.co.nz/wp-content/uploads/2008/06/dynamic-script-control-window-xaml.png"><img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="376" alt="dynamic_script_control_window_xaml" src="http://flanders.co.nz/wp-content/uploads/2008/06/dynamic-script-control-window-xaml-thumb.png" width="717" border="0" /></a>&#160;</p>
<p>You first declare a namespace for the assembly that has the DynamicScriptControl. Next I have a StackPanel that contains 2 DynamicScriptControls. The first just contains the 2 mandatory properties. We need to know which class you want to instantiate in the file you provide by setting the ScriptFile property. This script file property is a path to your ruby file in my case prefilled_text_box.rb.    <br />The second DynamicScriptControl is one where I want to initialize the control with my own text property. To declare those properties you have to add them to the Attributes collection of the DynamicScriptControl. At this moment it&#8217;s not smart enough to know which datatype you give it so you can specify a format string which was necessary in this case because text is a string.</p>
<p>3. The result</p>
<p><a href="http://flanders.co.nz/wp-content/uploads/2008/06/dynamic-script-control-window.png"><img style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="309" alt="dynamic_script_control_window" src="http://flanders.co.nz/wp-content/uploads/2008/06/dynamic-script-control-window-thumb.png" width="305" border="0" /></a> </p>
<p>Michael Foord the author of IronPython In Action will provide the python integration in this control. </p>
<p>There was a release of the Dynamic Silverlight SDK earlier this week which contained the necessary source code files to compile a common DLR for both IronRuby and IronPython.&#160; That is what makes it possible to support multiple scripting languages from the start.&#160; </p>
<p>I&#8217;ve hosted the source code on google and you can find that at:</p>
<p><a title="The google code project" href="http://code.google.com/p/dynamic-script-control" target="_blank">http://code.google.com/p/dynamic-script-control</a></p>
<div class="wlWriterSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:4015ed95-7a36-4820-ac0b-6344a61307ee" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">Technorati Tags: <a href="http://technorati.com/tags/ironruby" rel="tag">ironruby</a>,<a href="http://technorati.com/tags/WPF" rel="tag">WPF</a>,<a href="http://technorati.com/tags/DLR" rel="tag">DLR</a>,<a href="http://technorati.com/tags/ironpython" rel="tag">ironpython</a>,<a href="http://technorati.com/tags/Silverlight" rel="tag">Silverlight</a></div>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2008/06/12/dynamic-script-control/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Minimal IronRuby/silverlight examples online</title>
		<link>http://flanders.co.nz/2008/04/15/minimal-ironrubysilverlight-examples-online/</link>
		<comments>http://flanders.co.nz/2008/04/15/minimal-ironrubysilverlight-examples-online/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 11:34:25 +0000</pubDate>
		<dc:creator>Ivan Porto Carrero</dc:creator>
				<category><![CDATA[IronRuby]]></category>
		<category><![CDATA[silverlight]]></category>

		<guid isPermaLink="false">http://flanders.co.nz/2008/04/15/minimal-ironrubysilverlight-examples-online/</guid>
		<description><![CDATA[<a href="http://flanders.co.nz/2008/04/15/minimal-ironrubysilverlight-examples-online/" title="Minimal IronRuby/silverlight examples online"></a>I just posted the first post in my series on getting started with Silverlight and IronRuby on the rubydoes.net website You can read more about it here: http://rubydoes.net/2008/04/14/silverlight-minimal-examples/]]></description>
			<content:encoded><![CDATA[<a href="http://flanders.co.nz/2008/04/15/minimal-ironrubysilverlight-examples-online/" title="Minimal IronRuby/silverlight examples online"></a><p>I just posted the first post in my series on getting started with Silverlight and IronRuby on the <a href="http://rubydoes.net/" target="_blank">rubydoes.net</a> website</p>
<p>You can read more about it here: <a title="http://rubydoes.net/2008/04/14/silverlight-minimal-examples/" href="http://rubydoes.net/2008/04/14/silverlight-minimal-examples/">http://rubydoes.net/2008/04/14/silverlight-minimal-examples/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://flanders.co.nz/2008/04/15/minimal-ironrubysilverlight-examples-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

