I ended up just taking the idea and making my own version.
class Wpf
def self.create(t,args={},&b)
# create an instance of the class
obj = t.new
# assign all the args
args.each_pair do |k,v|
obj.send("#{k.to_s}=",v)
end
Silverlight.rb has actually been embedded in the
Microsoft.Scripting.Silverlight.dll (as init.rb) and is loaded automatically,
but I didn't include Wpf.build, so the version you have in the photoviewer app
is the latest, so use at your own risk. It could possibly be added for the
final release,