In SelectedItem comes Vm from which the control gets data. But how can I get myself control, not his Vm ?
private void AssociatedObject_DragOver(object sender, DragEventArgs e) { var selectedItem = this.AssociatedObject.SelectedItem; var module = selectedItem as ModuleVm; if (module != null) { //сделать IsSelected = false; } }
ifyou can immediately writethis.AssociatedObject.SelectedItem as ModuleVm. Unless, of course, you still have no additional logic there after the secondif. - andreychaDrag-n-DropVM. And I really need to somehow get out of this situation. Maybe there is some way? - Lightness