WPF stronger suport - points

Topics: WPF
Apr 14, 2011 at 4:02 PM

Actually, all "local" coordinates are the WinForm integers.

WPF use the System.Windows.Point witch X and Y are double, not integers like System.Drawing.Point WinForm used.

There is a need for function such:
            System.Windows.Point p = e.GetPosition(MainMap);

instead of
            currentMarker.Position = MainMap.FromLocalToLatLng((int)p.X, (int)p.Y);
one of the following:
           FromLocalToLatLng(System.Windows.Point point)
           FromLocalToLatLng(double x, double y)

as well as
           System.Windows.Point FromLatLngToLocal(PointLatLng point)

Apr 14, 2011 at 6:59 PM