tag:blogger.com,1999:blog-5295746446529817470.post4457715978674132878..comments2023-05-09T16:29:24.130+02:00Comments on Dotnet by Example: Simple reverse geocoding with Windows Phone 8 and MVVMLightJoost van Schaikhttp://www.blogger.com/profile/02182444268071162776noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5295746446529817470.post-37610012207580264782013-04-16T08:59:58.545+02:002013-04-16T08:59:58.545+02:00@Jakub possibly, but what I don't like about t...@Jakub possibly, but what I don't like about these kind of code snippets is that they don't demonstrate how they are used. You implicitly assume your readers will know that. How about blogging your code with some explanation and a sample solution? I will make a link to your blog if you will ;-)Joost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-85779940150168756762013-04-12T18:44:48.738+02:002013-04-12T18:44:48.738+02:00Hi,
nice article :-)
btw: this is my alternative...Hi,<br /><br />nice article :-)<br /><br />btw: this is my alternative (maybe easier)<br /><br /><br />public class MapGestureToCommand : EventToCommand<br /> {<br /><br /> protected override void Invoke(object parameter)<br /> {<br /> object param = null;<br /><br /> Map map = this.AssociatedObject as Map;<br /><br /> if (map != null)<br /> {<br /> // params<br /> GestureEventArgs e = parameter as GestureEventArgs;<br /><br /> // convert to GeoCoordinate<br /> if (e != null)<br /> {<br /> param = map.ConvertViewportPointToGeoCoordinate(e.GetPosition(map));<br /> }<br /> }<br /><br /> // null<br /> if (param == null) { param = parameter; }<br /><br /> base.Invoke(param);<br /> }<br /><br /><br /> }Anonymoushttps://www.blogger.com/profile/11599423919393034207noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-47613091731355286332013-03-30T18:25:26.542+01:002013-03-30T18:25:26.542+01:00@Enzo,
I suppose it can be adapted for long press...@Enzo,<br /><br />I suppose it can be adapted for long press but I have not looked in detail. I believe the phone toolkit implements a long pressJoost van Schaikhttps://www.blogger.com/profile/02182444268071162776noreply@blogger.comtag:blogger.com,1999:blog-5295746446529817470.post-24411618364054667192013-03-28T18:30:43.276+01:002013-03-28T18:30:43.276+01:00Thank you for your example.
How can be modified to...Thank you for your example.<br />How can be modified to make the reverseGeoCoding only when a touch&hold gesture is made on the map? Is it possible to filter in some way the gesture in the TapToCoordinateBehaviaur?<br /><br />Kind regards<br />Enzo ContiniEnzohttps://www.blogger.com/profile/02955304358052595447noreply@blogger.com