protected override void OnClosed(EventArgs e) { base.OnClosed(e); RiggerVM vm = DataContext as RiggerVM; vm.Close(); }
void SetupDataContext() { RiggerVM vm = new RiggerVM(); DataContext = vm; if (vm.CloseAction == null) { vm.CloseAction = new Action(Close); } }
public override void ButtonCommandCall(object sender) { RiggerVM riggerVM = (RiggerVM)sender; InvokeCommand(null); }
void window_Deactivated(object sender, EventArgs e) { RiggerVM vm = DataContext as RiggerVM; vm.WindowsDeactivatedCall(); }