Archive for August, 2010

How to Access Resources in an Assembly

new Uri("SilverlightApplication1;component/MyImage.png", UriKind.Relative)

Cross linked styles can be access in the same way!

<ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/SharedThemeAssembly;component/MyStyles.xaml"/>
            ...other ResourceDictionaries to merge in...
</ResourceDictionary.MergedDictionaries>