How to fire C1drag start and dragover events in Map control of Silverlight?
Are you looking for information on Map control of Silverlight? Want to know how to fire C1drag start and dragover events in Map control of Silverlight? Read this thread to learn more about Silverlight with examples.
I had a requirement that pins in Map can be dragged and dropped into another form . But when iam trying to drag and pin from Map Drag Start and Drag Stop events are not getting fired where as for another C1datagrid forms it works . Can any one show a solution how to fire events for a MapControl.
I kept the below in pinimage leftKeyDown Event.
Private mDragDrop As C1.Silverlight.C1DragDropManager
Public WriteOnly Property DragDrop As C1.Silverlight.C1DragDropManager
Set(ByVal value As C1.Silverlight.C1DragDropManager)
mDragDrop = value
AddHandler mDragDrop.DragStart, AddressOf DragDrop_DragStart
mDragDrop.SourceMarker.Background = New SolidColorBrush(Colors.Transparent)
mDragDrop.SourceMarker.Height = 50
mDragDrop.SourceMarker.Width = 250
mDragDrop.SourceMarker.BorderThickness = New Thickness(0)
Dim RowPresenter As New C1.Silverlight.DataGrid.DataGridRowPresenter
If RowPresenter IsNot Nothing Then
RowPresenter.DataContext = sender.datacontext
mDragDrop.RegisterDragSource(RowPresenter, DragDropEffect.Copy, Nothing)