private void PropItemViewModel_DraggingStateChanged(object sender, PropDraggingStateEventArgs e) { var currentItemViewModel = (PropItemVm)sender; foreach (var propViewModel in _propViewModels) { var isSelected = propViewModel == currentItemViewModel; propViewModel.SetSelectedState(isSelected); } UpdateUseControlsState(currentItemViewModel); }
private void SlotViewModel_DraggingStateChanged(object sender, PropDraggingStateEventArgs e) { DeequipPropDropArea.SetActive(e.Dragging); }