Quantcast
Channel: WPF Localization Extension
Viewing all articles
Browse latest Browse all 286

Commented Issue: SetBinding exception in Silverlight [9295]

$
0
0
The code behind binding throws an exception in Silverlight:

Attempt by method 'SLLocalizeExtension.Extensions.LocExtension.SetBinding(System.Object, System.Object, Int32)' to access field 'System.Windows.DependencyProperty._propertyType' failed.

in LocExtension.cs line 730.

I am using windows8 and vs2012.

My code is

TextBlock tt = new TextBlock();
LocExtension lex = new LocExtension("SRCommon:SRCommon:Modul_XXX");
lex.SetBinding(tt, TextBlock.TextProperty);
Comments: I had changed the lockextension cs to pass the type and using it now, your solution is also great thank you very much for the feedback.

Viewing all articles
Browse latest Browse all 286

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>