My Snippets

Silverlight Ruby Sample

require "Silverlight"

class App < SilverlightApplication
use_xaml

def initialize
message.text = "Philippe's Demo of Ruby in Silverlight. "

message.mouse_enter do |sender, args|
sender.foreground = SolidColorBrush.new Colors.red
end

message.mouse_leave do |sender, args|
sender.foreground = SolidColorBrush.new Colors.black
end
end

end

App.new

June 12th, 2008 Posted by | ruby, silverlight | no comments

No Comments

No comments yet.

Sorry, the comment form is closed at this time.