This question is locked. New answers and comments are not allowed.
Attached is a project taken from these forums that was provided as a solution to this problem. I can successfully fire an OnDragQuery operation but what I need is to implement OnDropInfo and OnDropQuery using MVVM. Is there an example of this being done?
MVVM Light 3
XAML:
ViewModel:
MVVM Light 3
XAML:
<
telerik:RadScheduler
Name
=
"scheduler"
VerticalContentAlignment
=
"Stretch"
HorizontalContentAlignment
=
"Stretch"
AvailableViewModes
=
"Month"
ShowsConfirmationWindowOnDelete
=
"False"
Style
=
"{StaticResource RadSchedulerStyle1}"
AppointmentsSource
=
"{Binding Appointments, Mode=TwoWay}"
telerikDragDrop:RadDragAndDropManager.AllowDrop
=
"True"
AllowDrop
=
"True"
>
<
i:Interaction.Triggers
>
<
local:DropQueryRoutedEventTrigger
EventName
=
"DropQuery"
>
<
cmd:EventToCommand
PassEventArgsToCommand
=
"True"
Command
=
"{Binding DropQueryCommand, Mode=TwoWay, Source={StaticResource Locator}}"
/>
</
local:DropQueryRoutedEventTrigger
>
</
i:Interaction.Triggers
>
</
telerik:RadScheduler
>
ViewModel:
DropQueryCommand =
new
RelayCommand<DragDropQueryEventArgs>(DropQuery);
......
private
void
DropQuery(DragDropQueryEventArgs e)
{
}
public
RelayCommand<DragDropQueryEventArgs> DropQueryCommand
{
get
;
private
set
;
}