Custom marker position

Topics: WPF
Sep 24, 2011 at 7:53 AM

I write a MarkerRed like the CustomMarkerRed in Demo.WindowsPresentation.CustomMarkers.
And this MarkerRed's height is 100, width is 66.

There is a red dot in control MarkerRed.
It's position is 15 to the left and 40 to the top.

There is a green dot in control MarkerRed.
It's position is 50 to the right and 0 to the bottom.

When I place this mark on the map at place x lat 50 and lng 50 with green dot on x.

How can I place this mark on x with red dot on x?

Thx.
^_^

Coordinator
Sep 24, 2011 at 10:03 AM

void CustomMarkerDemo_SizeChanged(object sender, SizeChangedEventArgs e)
{
   Marker.Offset = new Point(-e.NewSize.Width/2, -e.NewSize.Height);
}

Sep 26, 2011 at 12:59 AM
radioman wrote:

void CustomMarkerDemo_SizeChanged(object sender, SizeChangedEventArgs e)
{
   Marker.Offset = new Point(-e.NewSize.Width/2, -e.NewSize.Height);
}

Thank you very much.

radioman

^_^