0

WindowsPhone 8 プロジェクトと 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));

この作品は例外なく、画像は見えません。

私は何を間違っていますか?

4

0 に答える 0