using Aucma.Core.BoxFoam.ViewModels; using System.Windows; namespace Aucma.Core.BoxFoam.Views { /// /// SearchCriteriaView.xaml 的交互逻辑 /// public partial class SearchCriteriaView : Window { public SearchCriteriaView() { SearchCriteriaViewModel viewModel =new SearchCriteriaViewModel(); InitializeComponent(); this.DataContext = viewModel; viewModel.closeEvent += closeWindow; } private void closeWindow() { this.Close(); } } }