Note that there are some explanatory texts on larger screens.

plurals
  1. POsilverlight bing maps pushpin question
    primarykey
    data
    text
    <p>I'm trying to use the microsoft_maps_mapcontrol. I see how one could create a pushpin and the lat long location... but i can't figure out how to instead use an image in place of that pushpin. doesn't look like pushpin will allow using a different image. So, that being the case how do you create an image and then wire it to the proper spot. Once wired can will i be able to use an event for when that image is clicked on.</p> <p>thanks shannon</p> <hr> <p>added 3/2/2010</p> <p>I've looked at the example given at <a href="http://www.microsoft.com/maps/isdk/silverlightbeta/#MapControlInteractiveSdk.Tutorials.UIElements.Media.TutorialPositionPointMedia" rel="nofollow noreferrer">http://www.microsoft.com/maps/isdk/silverlightbeta/#MapControlInteractiveSdk.Tutorials.UIElements.Media.TutorialPositionPointMedia</a></p> <p>and i must not be converting something correctly to vb.</p> <p>Here is there code</p> <pre><code> Image image = new Image(); image.Source = new BitmapImage(new Uri(ImageUriValue.Text, UriKind.RelativeOrAbsolute)); double opacity; if (double.TryParse(OpacityText.Text, out opacity)) { image.Opacity = opacity; } image.ImageFailed += MediaFailed; Point point = GetPoint(); Canvas.SetLeft(image, point.X); Canvas.SetTop(image, point.Y); myCanvas.Children.Add(image); element = image; </code></pre> <p>and what i converted it to</p> <pre><code> Dim image As New Image() image.Source = New BitmapImage(New Uri("\Images\1.png", UriKind.RelativeOrAbsolute)) Canvas.SetLeft(image, 100) Canvas.SetTop(image, 100) myCanvas.Children.Add(image) element = image </code></pre> <p>Hopefully that helps in spotting what i'm not doing correctly. thanks shannon</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload