ฉันเขียนโปรแกรมสำหรับ Windows Phone 8.1 ฉันใช้วิธีนี้เพื่อสร้างรูปภาพและตั้งค่าแหล่งที่มาของรูปภาพ:
Dim AgreeBitmapImage As BitmapImage = New BitmapImage()
AgreeBitmapImage.setsource(New Uri("Assets/Image/Agree.png", UriKind.Relative))
//Above line gives an error
imgAccept = New Image
imgAccept.Height = 40
imgAccept.Width = 40
imgAccept.Source = AgreeBitmapImage
เมื่อฉันเริ่มโปรแกรมจำลอง มันไม่ทำงาน ทำไม (พูดผิด)