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

            vm.Close();
        }
예제 #2
0
        void SetupDataContext()
        {
            HeelFixerVM vm = new HeelFixerVM();

            DataContext = vm;
            if (vm.CloseAction == null)
            {
                vm.CloseAction = new Action(Close);
            }
        }