构建 IronRuby WPF GUI
这可能是一个愚蠢的问题,但我的印象是,是否可以同时使用 IronRuby 和 MS Visual Studio 2010 来构建接口\在一个窗口中编辑 XAML,并在另一个窗口中编写 ruby 代码?
这只能用 C#、Basic 和 C++ 来实现吗?
我浏览过SO并看到了一些像这样的IronRuby片段:
button1.click do |sender, args|
MessageBox.show("Hello World!")
end
所以按理说你可以以某种方式创建GUI,但是视觉GUI创建器不适用于ironruby吗?
This may be a silly question but I was under the impression that it was possible to use IronRuby and MS Visual Studio 2010 together to sort of build interfaces\edit XAML in one window and code ruby in the other?
Is this only possible to do with C#, Basic and C++ ?
I've browsed SO and seen some IronRuby snippets like this one:
button1.click do |sender, args|
MessageBox.show("Hello World!")
end
So it stands to reason you can create GUIs somehow, but is the visual gui creator not available for ironruby?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了构建 GUI,您应该将 XAML 与 WPF 结合使用。您可以使用 Visual Studio 中的编辑器创建 XAML。可以通过以下方式运行 XAML 文件:
请参阅 IronRuby Unleashed 了解更多信息
In order to build GUIs you should use XAML with WPF. You can create XAML with the editor in Visual Studio. Running a XAML file is possible with:
Please refer to IronRuby Unleashed for more information