4 Answers, 1 is accepted
0
Sundy
Top achievements
Rank 1
answered on 19 Sep 2011, 09:19 PM
I forgot to mention I am using Information Layer to display the set of PinPoints on the map. I am using a DataTemplate and an ImageSource to display icons on the map, how can I bind event triggers to Hit Test these pinpoint selects ?
0
Hi Sundy,
I would recommend you to take a look into our DataBinding demo:
http://demos.telerik.com/silverlight/#Map/DataBinding
Greetings,
I would recommend you to take a look into our DataBinding demo:
http://demos.telerik.com/silverlight/#Map/DataBinding
Greetings,
Andrey Murzov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Sundy
Top achievements
Rank 1
answered on 28 Sep 2011, 06:55 PM
Thanks Andrey I got it working where a CommandBinding for an Event Trigger "MouseLeftButtonDown" returns an Image as it OriginalSource when clicked on my Image. The only problem that I am seeing is I also have a "MapMouseClick" event bound and even though I call a e.Handled = true on the MouseLeftButtonDown it still calls the method that is bound to the MapMouseClick event.
Thanks,
Sundy
Thanks,
Sundy
0
Hi Sundy,
It is very complicated and it is hard to reproduce the problem without your solution or code. But it seems you use the Handled property of the ExecutedRoutedEventArgs instead of the MouseButtonEventArgs. So, the map control also handles the MouseLeftButtonDown event and the MapMouseClick event is triggered.
I would recommend to attach the MouseLeftButtonDown event handler directly. In this case the event can be cancelled using the Handled property.
Greetings,
Andrey Murzov
the Telerik team
It is very complicated and it is hard to reproduce the problem without your solution or code. But it seems you use the Handled property of the ExecutedRoutedEventArgs instead of the MouseButtonEventArgs. So, the map control also handles the MouseLeftButtonDown event and the MapMouseClick event is triggered.
I would recommend to attach the MouseLeftButtonDown event handler directly. In this case the event can be cancelled using the Handled property.
Greetings,
Andrey Murzov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>