Programmatic binding in Silverlight
23,211
It looks like as of Silverlight 3.1, at least, this is no longer an issue. I can't reproduce it, at any rate.
Author by
MojoFilter
Updated on May 03, 2020Comments
-
MojoFilter about 4 years
I'm missing the boat on something here, kids. This keeps rearing its head and I don't know what's going on with it, so I hope my homeys here can help.
When working in Silverlight, when I create bindings in my c# code, they never hold up when the application is running. The declarative bindings from my xaml seem ok, but I'm doing something wrong when I create my bindings in C#. I'm hoping that there is something blindingly obvious I'm missing. Here's a typical binding that gets crushed:
TextBlock tb = new TextBlock(); Binding b = new Binding("FontSize"); b.Source = this; tb.SetBinding(TextBlock.FontSizeProperty, b);
-
cmaduro almost 14 yearsI can reproduce something like it stackoverflow.com/questions/3217740/…