SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Matt Ward

WPF and Silverlight Templates for IronPython and IronRuby

SharpDevelop 4.0 now includes templates to create WPF and Silverlight applications for IronRuby and IronPython.

IronRuby project templates

The WPF template will create a basic WPF application that loads its main window from disk by using XamlReader.Load and then displays it.

The Silverlight template will create a basic Silverlight project with an IronPython or IronRuby script file and a web page. The web page (index.html) will open up the IronPython or IronRuby console in the browser and run the script. The script file does not do much apart from change the text in the browser.

On running the Silverlight project SharpDevelop will launch Chiron and allow you to browse to the project's web page. Chiron is an application that can be used as a personal web server to host your silverlight application. It can also be used to package up your Silverlight application ready for deployment.

IronRuby silverlight application running in the browser

All the existing IronPython project templates have also changed. When a new IronPython project is run, by selecting the menu item Debug | Run, it will now run the IronPython console (ipy.exe) instead of starting the project's executable. This change makes IronPython projects consistent with IronRuby projects. It also means you can debug a new IronPython application straight away without having to change the project options.

To switch back to the previous behaviour, and launch the project's executable instead of ipy.exe, change the Start Action in the project options to Start project. Note that debugging the project's executable is not supported.

The screenshot below shows the project options for a new IronPython project.

IronPython project options

For more information on writing Silverlight applications in IronPython and IronRuby see the following web sites.

http://ironpython.net/ironpython/browser/

http://ironruby.net/Browser

 

Comments

No Comments
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.