public SimpleAccounting(SimpleAccountingViewModel model) { InitializeComponent(); DataContext = model; // this.Closing += OnMainWindowClose; }
//public CloseView CloseView; public SimpleAccounting(SimpleAccountingViewModel model) { InitializeComponent(); DataContext = model; _ViewModel = model; if (_ViewModel.IsBlankHeaderRegionVisible == true) { grdTitle1.Background = Brushes.White; } // this.Closing += OnMainWindowClose; }