Re: [Ironruby-core] data binding in Silverlight 4

2010-10-07 Thread Miguel Madero
Hi Ivan, Could you expand a bit on your approach? For what I noticed it defines readers, writters and implements INPC. That's ok for WPF, but I don't see how that would help in Silverlight. I'm probably missing something. Thanks Miguel On Wed, Sep 29, 2010 at 4:44 PM, Ivan Porto Carerro

Re: [Ironruby-core] data binding in Silverlight 4

2010-09-29 Thread Ivan Porto Carerro
you can always check out my ironnails project that does it for wpf and uses dictionaries. http://github.com/casualjim/ironnails The databinding approach I used should work in silverlight too On Tue, Sep 28, 2010 at 10:23 PM, Christopher Bennage christop...@bluespireconsulting.com wrote:

Re: [Ironruby-core] data binding in Silverlight 4

2010-09-28 Thread Christopher Bennage
Here's some interesting background about what's happened with IronPython: http://devhawk.net/CategoryView,category,__clrtype__.aspx I'm still reading through it all, but note in particular the post from April 24, 2009: http://devhawk.net/2009/04/20/Introducing+Clrtype+Metaclasses.aspx My guess is

[Ironruby-core] data binding in Silverlight 4

2010-09-27 Thread Christopher Bennage
I'm beginning to research this, but I don't want to reinvent the wheel if there is already a solution out there. My understanding of the problem is this: Data binding in Silverlight does not work because the system doesn't know how to handle dynamic objects. This is not the case in WPF because

Re: [Ironruby-core] data binding in Silverlight 4

2010-09-27 Thread Charles Strahan
That's my understanding. Silverlight will only reflect over properties, as it does not use type descriptors - nor does it know how to determine a dynamic object's attributes. If you use attr_accessor, I believe that'll result in corresponding properties being added to the generated class. If all

Re: [Ironruby-core] data binding in Silverlight 4

2010-09-27 Thread Brian Genisio
SIlverlight, unlike WPF, is incapable of binding to dynamic properties. Static properties, on the other hand are no problem. One way around this is to create a string indexer on your class (this[string index]) that returns the property by name. Then, in the XAML, you can bind using array

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Ryan Riley
. -Original Message- From: ironruby-core-boun...@rubyforge.org [mailto: ironruby-core-boun...@rubyforge.org] On Behalf Of Shay Friedman Sent: Saturday, July 18, 2009 9:12 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Data Binding to IronRuby Objects in WPF Hi there, I'm trying

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Ryan Riley
Of Shay Friedman Sent: Saturday, July 18, 2009 9:12 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Data Binding to IronRuby Objects in WPF Hi there, I'm trying to databind IronRuby objects to a WPF listbox with no success My data is a Ruby array of objects. The array seems

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Ivan Porto Carrero
...@rubyforge.org] On Behalf Of Shay Friedman Sent: Saturday, July 18, 2009 9:12 AM To: ironruby-core@rubyforge.org Subject: [Ironruby-core] Data Binding to IronRuby Objects in WPF Hi there, I'm trying to databind IronRuby objects to a WPF listbox with no success My data is a Ruby array of objects

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Curt Hagenlocher
. This is arguably a bug. The combination (or attr_accessor) should work. From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero Sent: Monday, July 20, 2009 7:27 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Data Binding

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Shay Friedman
Hi, Well I reply in the forum even though I don't see the entire thread here for some reason. My emails do not reach the mailing list as well, so... Anyway, Curt - thanks for the clarification. What you've described works good with binding of textblocks and links, but when I try to bind an

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-20 Thread Shay Friedman
I return a String. I have three attributes, all of them hold strings. Textblock that I bind to the strings work, but when I bind an Image element (the Source value) to the string, it doesn't work. Shay. Shay Friedman http://www.IronShay.com Follow me:

[Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-18 Thread Shay Friedman
Hi there, I'm trying to databind IronRuby objects to a WPF listbox with no success My data is a Ruby array of objects. The array seems to be bound fine as I see the expected number of rows in the listbox. However, every object within the array fails to bind correctly. I tried the object to be a

Re: [Ironruby-core] Data Binding to IronRuby Objects in WPF

2009-07-18 Thread Ryan Riley
I believe this will work in WPF 4.0, but it doesn't work now. WPF 4.0 is supposed to support dynamic objects. I seem to recall Jimmy or Harry (DevHawk) noting this somewhere. Sent from my iPhone On Jul 18, 2009, at 11:12 AM, Shay Friedman li...@ruby-forum.com wrote: Hi there, I'm

[Ironruby-core] Data Binding?

2008-08-15 Thread Sean Clark Hess
Is it possible to use databinding from within IronRuby? In this case, I want to have a field, @volume on one class, and listen for changes on another class. Thanks ___ Ironruby-core mailing list Ironruby-core@rubyforge.org

Re: [Ironruby-core] Data Binding?

2008-08-15 Thread Ivan Porto Carrero
You can't databind to DLR objects at the moment. You have to define the properties you want to bind to as strong typed classes. The IronNails project I mentioned earlier tries to alleviate all of that :) What you can do is define one class in C# to which you want to bind from within your