See the DiskUse project in the IronRuby 1.1\Samples\ directory. It uses WPF and XAML. For example, how they load xaml:
module DialogUtil def load_xaml(filename) f = IO::FileStream.new(filename, IO::FileMode.Open, IO::FileAccess.Read) begin element = Markup::XamlReader::Load(f) ensure f.close end element end module_function :load_xaml end
and then using it:
@window = DialogUtil.load_xaml("mainWindow.xaml") @window.closing { @app.shutdown } @windowTitle = @window.title ... @window.show
And yes, it works fine with VS2010 - http://ironruby.codeplex.com/
source share