public void Execute(object parameter) { ItemPopupCategoryPopup categoryPopup = parameter as ItemPopupCategoryPopup; CategoryViewModel categoryVM = categoryPopup.Resources["CategoryVM"] as CategoryViewModel; ItemPopupViewModel itemPopupVM = categoryPopup.Resources["ItemPopupVM"] as ItemPopupViewModel; itemPopupVM.IsCategoryPopup = false; categoryPopup.Close(); }
public void Execute(object parameter) { ItemPopup itemPopup = parameter as ItemPopup; ItemPopupViewModel itemPopupVM = itemPopup.Resources["PopUpVM"] as ItemPopupViewModel; ItemPopupCategoryPopup categoryPopup = new ItemPopupCategoryPopup(); categoryPopup.Resources["ItemPopupVM"] = itemPopupVM; CategoryViewModel categoryVM = categoryPopup.Resources["CategoryVM"] as CategoryViewModel; categoryVM.category = itemPopupVM.Category; itemPopupVM.IsCategoryPopup = true; categoryPopup.Show(); }
public void Execute(object parameter) { ItemPopupCategoryPopup categoryPopup = parameter as ItemPopupCategoryPopup; categoryPopup.DragMove(); }