我有一个动态加载的xaml文件:
XamlReader.load("a.xaml")
它包含BitmapImage
资源:
<ResourceDictionary>
<BitmapImage x:Key = "some" UriSource = "someFile.png" />
</ResourceDictionary>
someFile.png
与a.xaml
的路径相同,但它不是Resource
。然后当负载VS暗示:
找不到文件someFile.png。