我使用WindowsPhone 8 Project和WP8 DLL构建模块化应用程序。我尝试在WP8项目后面的代码中引用DLL中的图像。
我试过
image.Source = new BitmapImage(new Uri(@"pack://application:,,,/DllAssemblyName;component/Assets/image.png",
UriKind.Absolute));
我在这里得到Invalid URI: Invalid port specified.
我也试过
image.Source = new BitmapImage(new Uri(@"/DllAssemblyName;component/Assets/image.png",
UriKind.RelativeOrAbsolute));
这项工作没有例外,但图像不可见。
我错了什么?