Hi All, I have one image control, Currently I am setting the image path as absolute. Since the image is at the server side where the Silverlight application is hosted.The source set as follows: <Image x:Name="imgMyImage" Source="http://localhost/MyImage.JPG" > I want to set the relative source from the server in the style. I followed following link and I succeed giving the relative path from the Image tag itself. http://wildermuth.com/2008/03/31/Silverlight_2_Bugs_and_Issues.aspx
<Style x:Key="MyImageSetter" TargetType="Image">
<Setter Property="Source" Value="MyImage.JPG"></Setter>
</Style>
But how can I do this with style? Something like this: When I set with this way it gives me image error