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
Ruby hash or a custom class without success… WPF wouldn’t display the
correct value.
When I tried to create an array of CLR classes, it worked.
Will it work in the future?
Thanks,
Shay.
Shay F.
http://www.IronShay.com
Follow me: http://twitter.com/ironshay
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
image to an IronRuby class attribute it doesn’t work (this works with an
equivalent C# class).
Is it a bug?
Thanks for the help!
Shay.
Shay F.
http://www.IronShay.com
Follow me: http://twitter.com/ironshay
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 F.
http://www.IronShay.com
Follow me: http://twitter.com/ironshay
Hi,
I’ve found a workaround that works - because it’s a string, I convert it
to a clr string before setting the attribute (str.to_clr_string).
Then the picture is bound just fine.
Shay.
Shay F.
http://www.IronShay.com
Follow me: http://twitter.com/ironshay