OK, Next up is applying custom symbology to my points. I have successfully defined my symbology using both a MarkerSymbol with ImageBrush:<ImageBrush ImageSource="http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/Assets/images/flag-yellow-32x32.png" x:Name="MyImageBrush" />
<esriSymbols:MarkerSymbol x:Name="testImageBrush">
<esriSymbols:MarkerSymbol.ControlTemplate>
<ControlTemplate>
<Rectangle Width="20" Height="20" Fill="{StaticResource MyImageBrush}" />
</ControlTemplate>
</esriSymbols:MarkerSymbol.ControlTemplate>
</esriSymbols:MarkerSymbol>
And just using a simple PictureMarkerSymbol:<esri:PictureMarkerSymbol x:Key="TestPictureMarker" Height="30" Width="30" OffsetX="15" OffsetY="15" Source="http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/samples/Assets/images/flag-yellow-32x32.png" />
Both of these examples use the ESRI yellow flag symbol that is located on the ESRI site (e.g. web accessable), and both work exactly the same way. But when I try and use my own .png file, I can not get any markers to show up. For example, if I replace the ImageBrush defined above with:<ImageBrush ImageSource="flag-yellow-32x32.png" x:Name="MyImageBrush" />
Nothing shows up on the map. The .png file is in the root of my web directory. I have also tried it in the 'Assets' folder, along with every combination of path I can think of. Note that this is happening when I am debugging/testing the application locally. I have not tried a full build and live deployment. This is running in the localhost environemnt. I can access and display other .png files (e.g. an Info graphic in the legend template) without any problem. But when I try and use any .png file in my application, nothing shows up.Any ideas?