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.
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.