我正在開發Windows Phone應用程序。爲什麼XAML圖像源屬性包含「/ MyApp; component」?
我使用的圖像,當我選擇使用屬性面板中,我得到以下XAML圖片:
<Image x:Name="GameImage" Margin="8" Source="/MyApp;component/Assets/Icons/GameImage.png"/>
爲什麼會出現「/MyApp;component/...
」? (有沒有更好的辦法?)
如果我試圖做Image.Source="Assets/Icons/GameImage.png"
爲什麼它不起作用?
'FrameworkElement.BaseUri'僅適用於新的Windows Phone 8.1的Windows答存儲應用;不過,這個請求是關於Windows Phone 7應用程序的。 – 2014-06-04 13:52:04