Hi,
Hi i am trying to receive the MouseDown event from the local:Marker which I have created using a user control. The MouseDown event will be used to determine when to drag the marker, log other information as well as performing image change.
I have tested the local:Marker user control without using any telerik codes purely to find out if the MouseDown event works and the result was fine, the user control is able to bubble up the event.
However when i integrate the user control into the DataTemplate, I was not able to receive any form of MouseDown event. Any explaination or ways to over come this?
<
telerik:RadMap
x:Name
=
"OsmMap"
Center
=
"30.335,143.183"
GeoBoundsNW
=
"85,-180"
GeoBoundsSE
=
"-85,180"
ZoomLevel
=
"10"
TouchDown
=
"OnMap_TouchDown"
MouseDown
=
"OnMap_OnMouseDown"
ZoomingFinished
=
"OnMap_ZoomingFinished"
PanningFinished
=
"OnMap_PanningFinished"
ZoomChanging
=
"OnMap_ZoomChanging"
CenterChanging
=
"OnMap_CenterChanging"
NavigationVisibility
=
"Hidden"
CommandBarVisibility
=
"Hidden"
ZoomBarPresetsVisibility
=
"Hidden"
ZoomBarVisibility
=
"Hidden"
MiniMapExpanderVisibility
=
"Hidden"
MouseLocationIndicatorVisibility
=
"Hidden"
IsTextSearchCaseSensitive
=
"True"
>
<
telerik:VisualizationLayer
x:Name
=
"MarkerLoaded"
>
<
telerik:VisualizationLayer.ItemTemplate
>
<
DataTemplate
>
<
local:Marker
telerik:MapLayer.Location
=
"{Binding Location}"
Latitude
=
"{Binding Latitude, Mode=OneWay}"
Longitude
=
"{Binding Longitude, Mode=OneWay}"
CurrentState
=
"{Binding State, Mode=OneWay}"
MouseLeftButtonDown
=
"MapWp_MouseDown"
MouseDown
=
"MapWp_MouseDown"
PreviewMouseDown
=
"MapWp_MouseDown"
TouchDown
=
"MapWp_TouchDown"
>
<
local:Marker
/>
</
DataTemplate
>
</
telerik:VisualizationLayer.ItemTemplate
>
</
telerik:VisualizationLayer
>
</
telerik:RadMap
>