예제 #1
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            WindowViewModel winVM = this.DataContext as WindowViewModel;

            winVM.OnClosed(this, null);
        }
예제 #2
0
 public MainWindow(App controller, WindowViewModel viewModel)
 {
     mController = controller;
     DataContext = viewModel;
     InitializeComponent();
 }