After a bit of tweaks, i got past build errors. Refer to other post. And then started getting the following runtime error:
Attribute "MyAssembly;component/MyStyles.xaml" value is out of range. [Line: x Position: y]
The corresponding line in the XAML below. Position y is the equal sign after TargetType.
The following is the code for MergedDictionaries reference
- style key="ImageButton" targettype="Button"
The actual cause was the Build Action property of XAML file.
- resourcedictionary source="MyAssembly;component/MyStyles.xaml"
The solution steps are
1) the xaml file you are referencing should have BuildAction = Resource
2) addition of a "/" prefix to the assembly in the source:
You can read more in these links:
http://silverlight.net/forums/t/111475.aspx
http://silverlight.net/forums/p/108647/251577.aspx#251577
Also, check the section
"3.18 Effects Files (.ps) can no longer be loaded as Content"
from the list of SL3 RTW breaking changes @ http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx
No comments:
Post a Comment