IronRuby: Ruby on .NET

Posted by Daniel Butler Sat, 27 May 2006 12:20:00 GMT

The following code results in this screenshot:

require "mediaplayer/player.rb"
require "wpfextensions.rb" # load some helper methods

# set up reflection
@w.Content.FindName("Reflection").Fill = 
    VisualBrush.new @w.Content.FindName("MainGrid")

me = @w.Content.FindName("Player")

# setup auto replay
me.MediaEnded += proc { |sender, e| me.Clock.Controller.Begin }

me.load "c:\\WINDOWS\\system32\\oobe\\images\\intro.wmv"

The project looks very promising.

Posted in  | Tags  | no comments

Sponsored Links

Sponsored Links

Comments

(leave url/email »)

   Comment Markup Help Preview comment