diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/ViewModel/CabinetViewModel.cs b/SubCabinetSolution/ViewModel/CabinetViewModel.cs index 23ee8a9..2410644 100644 --- a/SubCabinetSolution/ViewModel/CabinetViewModel.cs +++ b/SubCabinetSolution/ViewModel/CabinetViewModel.cs @@ -158,7 +158,6 @@ private void SettingsSelectionChanged(object sender) { - // TODO 解决ListBox无法单击的问题 var listBox = (ListBox)sender; if (listBox.SelectedIndex == -1) { @@ -178,6 +177,9 @@ case "灯光": MessageBox.Show(JsonConvert.SerializeObject(functionModel), "温馨提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); + + // 解决ListBox无法单击的问题 + listBox.SelectedIndex = -1; break; case "近消耗品": IsTopSearchBarVisible = "Collapsed"; @@ -185,8 +187,6 @@ navigationService.NavigateTo("RecentUsePage"); break; } - - listBox.SelectedIndex = -1; } private void SearchData() diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/ViewModel/CabinetViewModel.cs b/SubCabinetSolution/ViewModel/CabinetViewModel.cs index 23ee8a9..2410644 100644 --- a/SubCabinetSolution/ViewModel/CabinetViewModel.cs +++ b/SubCabinetSolution/ViewModel/CabinetViewModel.cs @@ -158,7 +158,6 @@ private void SettingsSelectionChanged(object sender) { - // TODO 解决ListBox无法单击的问题 var listBox = (ListBox)sender; if (listBox.SelectedIndex == -1) { @@ -178,6 +177,9 @@ case "灯光": MessageBox.Show(JsonConvert.SerializeObject(functionModel), "温馨提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); + + // 解决ListBox无法单击的问题 + listBox.SelectedIndex = -1; break; case "近消耗品": IsTopSearchBarVisible = "Collapsed"; @@ -185,8 +187,6 @@ navigationService.NavigateTo("RecentUsePage"); break; } - - listBox.SelectedIndex = -1; } private void SearchData() diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index a37b202..4d47ef1 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class EmergencyPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/ViewModel/CabinetViewModel.cs b/SubCabinetSolution/ViewModel/CabinetViewModel.cs index 23ee8a9..2410644 100644 --- a/SubCabinetSolution/ViewModel/CabinetViewModel.cs +++ b/SubCabinetSolution/ViewModel/CabinetViewModel.cs @@ -158,7 +158,6 @@ private void SettingsSelectionChanged(object sender) { - // TODO 解决ListBox无法单击的问题 var listBox = (ListBox)sender; if (listBox.SelectedIndex == -1) { @@ -178,6 +177,9 @@ case "灯光": MessageBox.Show(JsonConvert.SerializeObject(functionModel), "温馨提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); + + // 解决ListBox无法单击的问题 + listBox.SelectedIndex = -1; break; case "近消耗品": IsTopSearchBarVisible = "Collapsed"; @@ -185,8 +187,6 @@ navigationService.NavigateTo("RecentUsePage"); break; } - - listBox.SelectedIndex = -1; } private void SearchData() diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index a37b202..4d47ef1 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class EmergencyPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/ViewModel/CabinetViewModel.cs b/SubCabinetSolution/ViewModel/CabinetViewModel.cs index 23ee8a9..2410644 100644 --- a/SubCabinetSolution/ViewModel/CabinetViewModel.cs +++ b/SubCabinetSolution/ViewModel/CabinetViewModel.cs @@ -158,7 +158,6 @@ private void SettingsSelectionChanged(object sender) { - // TODO 解决ListBox无法单击的问题 var listBox = (ListBox)sender; if (listBox.SelectedIndex == -1) { @@ -178,6 +177,9 @@ case "灯光": MessageBox.Show(JsonConvert.SerializeObject(functionModel), "温馨提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); + + // 解决ListBox无法单击的问题 + listBox.SelectedIndex = -1; break; case "近消耗品": IsTopSearchBarVisible = "Collapsed"; @@ -185,8 +187,6 @@ navigationService.NavigateTo("RecentUsePage"); break; } - - listBox.SelectedIndex = -1; } private void SearchData() diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index a37b202..4d47ef1 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class EmergencyPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/ViewModel/CabinetViewModel.cs b/SubCabinetSolution/ViewModel/CabinetViewModel.cs index 23ee8a9..2410644 100644 --- a/SubCabinetSolution/ViewModel/CabinetViewModel.cs +++ b/SubCabinetSolution/ViewModel/CabinetViewModel.cs @@ -158,7 +158,6 @@ private void SettingsSelectionChanged(object sender) { - // TODO 解决ListBox无法单击的问题 var listBox = (ListBox)sender; if (listBox.SelectedIndex == -1) { @@ -178,6 +177,9 @@ case "灯光": MessageBox.Show(JsonConvert.SerializeObject(functionModel), "温馨提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); + + // 解决ListBox无法单击的问题 + listBox.SelectedIndex = -1; break; case "近消耗品": IsTopSearchBarVisible = "Collapsed"; @@ -185,8 +187,6 @@ navigationService.NavigateTo("RecentUsePage"); break; } - - listBox.SelectedIndex = -1; } private void SearchData() diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index a37b202..4d47ef1 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class EmergencyPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/.vs/SubCabinetSolution/v17/.suo b/.vs/SubCabinetSolution/v17/.suo index f04a43b..0f79f02 100644 --- a/.vs/SubCabinetSolution/v17/.suo +++ b/.vs/SubCabinetSolution/v17/.suo Binary files differ diff --git a/SubCabinetSolution/ViewModel/CabinetViewModel.cs b/SubCabinetSolution/ViewModel/CabinetViewModel.cs index 23ee8a9..2410644 100644 --- a/SubCabinetSolution/ViewModel/CabinetViewModel.cs +++ b/SubCabinetSolution/ViewModel/CabinetViewModel.cs @@ -158,7 +158,6 @@ private void SettingsSelectionChanged(object sender) { - // TODO 解决ListBox无法单击的问题 var listBox = (ListBox)sender; if (listBox.SelectedIndex == -1) { @@ -178,6 +177,9 @@ case "灯光": MessageBox.Show(JsonConvert.SerializeObject(functionModel), "温馨提示", MessageBoxButton.OKCancel, MessageBoxImage.Question); + + // 解决ListBox无法单击的问题 + listBox.SelectedIndex = -1; break; case "近消耗品": IsTopSearchBarVisible = "Collapsed"; @@ -185,8 +187,6 @@ navigationService.NavigateTo("RecentUsePage"); break; } - - listBox.SelectedIndex = -1; } private void SearchData() diff --git a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs index a37b202..4d47ef1 100644 --- a/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/EmergencyPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class EmergencyPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index c74043f..0992ec7 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -45,7 +45,7 @@ - + FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index c74043f..0992ec7 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -45,7 +45,7 @@ - + - + FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index c74043f..0992ec7 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -45,7 +45,7 @@ - + - + - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index c74043f..0992ec7 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -45,7 +45,7 @@ - + - + - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index c74043f..0992ec7 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -45,7 +45,7 @@ - + - + - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs index 4a26e47..ee69af8 100644 --- a/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/PutGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class PutGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs index 293eeb0..d43cde1 100644 --- a/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/RefundSpdPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class RefundSpdPageViewModel: ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs index 65fb955..8cc1539 100644 --- a/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs +++ b/SubCabinetSolution/ViewModel/ReturnGoodsPageViewModel.cs @@ -1,11 +1,15 @@ using System.Collections.ObjectModel; +using CommonServiceLocator; using GalaSoft.MvvmLight; +using GalaSoft.MvvmLight.Command; +using GalaSoft.MvvmLight.Views; using SubCabinetSolution.Model; namespace SubCabinetSolution.ViewModel { public class ReturnGoodsPageViewModel : ViewModelBase { + public RelayCommand GoBackCommand { get; set; } public ObservableCollection FirstDoorGoods { get; set; } public ObservableCollection SecondDoorGoods { get; set; } public ObservableCollection ThirdDoorGoods { get; set; } @@ -51,6 +55,12 @@ Description = null } }; + + GoBackCommand = new RelayCommand(() => + { + ServiceLocator.Current.GetInstance().NavigateTo("CabinetMainPage"); + //Messenger.Default.Send(MessageToken.ChangeCabinetPage); + }); } } } \ No newline at end of file diff --git a/SubCabinetSolution/Views/AdoptionPage.xaml b/SubCabinetSolution/Views/AdoptionPage.xaml index c74043f..0992ec7 100644 --- a/SubCabinetSolution/Views/AdoptionPage.xaml +++ b/SubCabinetSolution/Views/AdoptionPage.xaml @@ -45,7 +45,7 @@ - + - + - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> - + + BorderThickness="0" + Command="{Binding GoBackCommand}"> - + + BorderThickness="0" + Command="{Binding GoBackCommand}">