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.
画像があります ( /Assets/Cat.png )。この画像のストリームを取得する必要があります。いくつかの方法を試しましたが、すべてうまくいきませんでした。私は何をすべきか?
画像のストリームを取得するには、これを使用します
Stream myStream = App.GetResourceStream(new Uri("Assets/Cat.png", UrKind.RelativeOrAbsolute)).Stream;