All, I posted this on StackOvervlow, but I thought I would notify this list of my question, in case someone here understands what is going on... Basically, I am finding that data binding to properties on IronRuby objects works for some controls, but fails on others. I have an example of it here: http://stackoverflow.com/questions/3376349/why-does-some-wpf-binding-fail-against-ironruby-properties Anyone have any idea why this happens? Brian
on 2010-07-31 03:24
on 2010-07-31 07:51
I find IronRuby types hard-to-work-with sometimes when it comes to WPF
data
binding. What I do as a workaround is creating the data entity classes
in C#
and initialize them from IronRuby code.
To fix your sample WPF app, I used the CLR string instead of IronRuby's.
So
instead of:
def initialize
@ImageLocation = "http://www.ironruby.net/@api/deki/site/logo.png"
end
You need to do:
def initialize
@ImageLocation =
"http://www.ironruby.net/@api/deki/site/logo.png".to_clr_string
end
Shay.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.