Ivan Porto Carrero
2008-Jul-30 20:01 UTC
[Ironruby-core] Sails, WPF/Silverlight the rails way
Hi all, I worked on a way to do wpf/development the rails way. It''s heavily inspired by rucola and its interaction with interface builder. I created and will finish this framework when there is more possible with databinding between DLR languages and XAML. you can find it on github. http://github.com/casualjim/sails/tree/master If people think this is a great idea and want to pitch in all help is welcome of course :) If you hate it please let me know and why. The readme: Sails> ====> > Sails is a framework inspired by the Rails and rucola frameworks. It offers > a rails-like way of developing applications > with IronRuby and Windows Presentation Foundation (WPF). > This framework uses the pattern Model - ViewModel - View - Controller > (M-VM-V-C). It should be able to run on both WPF > and Silverlight. > The idea is that the views can be created using a design tool like Blend > for example and just save that xaml as is. The > designer should not need to use anything else than drag and drop to create > a GUI design. The behaviors are then added to > the view by using predefined behaviors in the framework or by defining your > own behavior. > The framework then generates a proxy for the view which will be used to > transparently wire up the commands in the > behaviors to controller actions. > > You should be able to define a controller a little like this (doesn''t work > yet and will most likely change in the > future): > > class MyController < Sails::Controllers::Base > > view_object :some_model, :refresh => :refresh_some_model, > :refresh_interval => 2.minutes > > view_action :some_action, :target => :my_button, :action => > :some_action_implementation > > def refresh_some_model > # code here > end > > def some_action_implementation > # code here > end > > end > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080730/b2fe7247/attachment.html>
Charles Oliver Nutter
2008-Aug-02 14:00 UTC
[Ironruby-core] Sails, WPF/Silverlight the rails way
FYI, there''s already a framework named "Sails" for Java: http://www.opensails.org/ - Charlie Ivan Porto Carrero wrote:> Hi all, > > I worked on a way to do wpf/development the rails way. It''s heavily > inspired by rucola and its interaction with interface builder. > I created and will finish this framework when there is more possible > with databinding between DLR languages and XAML. > > you can find it on github. http://github.com/casualjim/sails/tree/master > > If people think this is a great idea and want to pitch in all help is > welcome of course :) If you hate it please let me know and why. > > The readme: > > Sails > ====> > Sails is a framework inspired by the Rails and rucola frameworks. It > offers a rails-like way of developing applications > with IronRuby and Windows Presentation Foundation (WPF). > This framework uses the pattern Model - ViewModel - View - > Controller (M-VM-V-C). It should be able to run on both WPF > and Silverlight. > The idea is that the views can be created using a design tool like > Blend for example and just save that xaml as is. The > designer should not need to use anything else than drag and drop to > create a GUI design. The behaviors are then added to > the view by using predefined behaviors in the framework or by > defining your own behavior. > The framework then generates a proxy for the view which will be used > to transparently wire up the commands in the > behaviors to controller actions. > > You should be able to define a controller a little like this > (doesn''t work yet and will most likely change in the > future): > > class MyController < Sails::Controllers::Base > > view_object :some_model, :refresh => :refresh_some_model, > :refresh_interval => 2.minutes > > view_action :some_action, :target => :my_button, :action => > :some_action_implementation > > def refresh_some_model > # code here > end > > def some_action_implementation > # code here > end > > end > > > ------------------------------------------------------------------------ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core
M. David Peterson
2008-Aug-02 16:49 UTC
[Ironruby-core] Sails, WPF/Silverlight the rails way
On Sat, 02 Aug 2008 08:00:44 -0600, Charles Oliver Nutter <charles.nutter at sun.com> wrote:> FYI, there''s already a framework named "Sails" for Java: > http://www.opensails.org/For the sake of sticking to the "Iron" theme, why not replace the ''S'' with an ''N'' and go with IronNails. ;-) Maybed it''s just me, but if given the choice, I''d much rather nail it than sail it anyday of the week. :D -- /M:D M. David Peterson Co-Founder & Chief Architect, 3rd&Urban, LLC Email: m.david at 3rdandUrban.com | m.david at amp.fm Mobile: (206) 999-0588 http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354 | http://news.oreilly.com/m-david-peterson/
Ivan Porto Carrero
2008-Aug-04 05:24 UTC
[Ironruby-core] Sails, WPF/Silverlight the rails way
Thanks for the tip. I''ve renamed the project to IronNails on github. 2008/8/2 M. David Peterson <m.david at xmlhacker.com>> On Sat, 02 Aug 2008 08:00:44 -0600, Charles Oliver Nutter < > charles.nutter at sun.com> wrote: > > FYI, there''s already a framework named "Sails" for Java: >> http://www.opensails.org/ >> > > For the sake of sticking to the "Iron" theme, why not replace the ''S'' with > an ''N'' and go with IronNails. ;-) Maybed it''s just me, but if given the > choice, I''d much rather nail it than sail it anyday of the week. :D > > -- > /M:D > > M. David Peterson > Co-Founder & Chief Architect, 3rd&Urban, LLC > Email: m.david at 3rdandUrban.com | m.david at amp.fm > Mobile: (206) 999-0588 > http://3rdandUrban.com | http://amp.fm | > http://www.oreillynet.com/pub/au/2354 | > http://news.oreilly.com/m-david-peterson/ > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core >-- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20080804/5995cd2d/attachment.html>
M. David Peterson
2008-Aug-04 06:29 UTC
[Ironruby-core] Sails, WPF/Silverlight the rails way
On Sun, 03 Aug 2008 23:24:27 -0600, Ivan Porto Carrero <ivan at flanders.co.nz> wrote:> I''ve renamed the project to IronNails on github.That *ROCKS*! :D -- /M:D M. David Peterson Co-Founder & Chief Architect, 3rd&Urban, LLC Email: m.david at 3rdandUrban.com | m.david at amp.fm Mobile: (206) 999-0588 http://3rdandUrban.com | http://amp.fm | http://www.oreillynet.com/pub/au/2354 | http://news.oreilly.com/m-david-peterson/