While displaying images in a silverlight application, I need to overlay a set of shapes likne lines exactly over the image. The line X1Y1 and X2 Y2 should be set by clicking mouse on image locations.
An image drawn like this:
and the canvas in the same grid cell for the shapes is like this:
<Canvas Name="LeftLines" Grid.Row="1" Grid.Column="0">
<Line Name="LeftTape" X1="20" X2="20" Y1="20" Y2="512" Stroke="Yellow" StrokeThickness="2" Visibility="Visible"></Line>
</Canvas>
I can't figure out how to render the canvas on top of the image. I tried to use TransformGroup tg and then LefttLines.SetValue(Canvas.RenderTransformProperty, tg);
But something is missing.
Thanks for advice or examples. Val