【发布时间】:2016-05-26 18:24:08
【问题描述】:
我在 XAML 中使用此代码声明了 Image 并指定了 Source -
<Image x:Name="imgSomeFile" Source="Assets/someFile.png"/>
有没有一种方法可以仅使用实例名称在代码隐藏中访问此源 URI?我试过image.Source,但这只给出了图像使用的BitmapImage,而不是URI。
【问题讨论】:
标签: c# windows-runtime windows-store-apps microsoft-metro