protected override void OnClosed(EventArgs e) { base.OnClosed(e); HeelFixerVM vm = DataContext as HeelFixerVM; vm.Close(); }
void SetupDataContext() { HeelFixerVM vm = new HeelFixerVM(); DataContext = vm; if (vm.CloseAction == null) { vm.CloseAction = new Action(Close); } }