Пример #1
0
 private void m_filteredList_ReorderRequested(object sender, ReorderEventArgs args)
 {
     var tasks = DataContext as TaskListViewModel;
     if (tasks != null)
     {
         var item = ((TaskViewModel)m_filteredList.ItemContainerGenerator.ItemFromContainer(args.ItemContainer)).Task;
         var toItem = ((TaskViewModel)m_filteredList.ItemContainerGenerator.ItemFromContainer(args.ToContainer)).Task;
         tasks.MoveTask(item, toItem);
     }
     m_scrollDecorator.IsDraggingEnabled = true;
 }
Пример #2
0
 protected virtual void OnReorderRequested(ReorderEventArgs e)
 {
     RaiseEvent(e);
 }
Пример #3
0
 protected virtual void OnReorderRequested(ReorderEventArgs e)
 {
     RaiseEvent(e);
 }