Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
URI形式の例外のような例外があり、正しいのになぜ発生するのか
ImageBrush img1 = new ImageBrush(); img1.ImageSource = new BitmapImage(new Uri("/Assets/new.jpg"));
その URI は、Windows ストア アプリケーション (RT/Metro) では機能しません。
これを試して:
new Uri("ms-appx:///assets/new.jpg");