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);
            }
        }
Exemple #3
0
        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();
        }