Hi Morten,Thank you, chaning the path in the XAML fixed it.
<Grid.Resources>
<esri:PictureMarkerSymbol x:Name="DefaultPictureSymbol" OffsetX="12" OffsetY="24"
Source="../UserControls/Images/IdentifyMapIcon.png" />
<esri:SimpleMarkerSymbol x:Name="SMStest" Color="Red" Size="12" />
</Grid.Resources>
I'm still a little confused as to how path references work in the XAP. Why does it need the "../UserControls" in the source string - the ZoomToXY.xaml is in the UserControls folder but neither "/Images/IdentifyMapIcon.png" nor "./IdentifyMapIcon.png" work in the controls xaml but it did work in code -
Graphic graphic = new Graphic()
{ Geometry = ptMapPoint,
//Symbol = DefaultPictureSymbol
Symbol = new PictureMarkerSymbol()
{ Source = new BitmapImage(new Uri("Images/IdentifyMapIcon.png", UriKind.Relative)),
OffsetX=12, OffsetY=24 }
};
Thanks again, Terry