0
我有一個用Uri類型爲我的圖像的想象源,我想把它作爲我的MapIcon的源代碼,因爲我需要調整圖像大小。如何將圖像類的圖像源設置爲MapIcon Windows Phone 8.1
MapIcon mapIcon = new MapIcon();
mapIcon.NormalizedAnchorPoint = new Point(0.25, 0.9);
//mapIcon.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///Assets/icons/map.png"));
mapIcon.Location = geoposition.Coordinate.Point;
mapIcon.Title = "Você está aqui";
MapControl1.MapElements.Add(mapIcon);
Image im = new Image();
im.Source = new BitmapImage(new Uri("ms-appx:///Assets/icons/view.png"));
im.Width = 65;
im.Height = 65;
我怎樣才能把我的圖片裏面MapIcon?謝謝!