Exemple #1
0
        protected override void OnClosed(EventArgs e)
        {
            base.OnClosed(e);
            CharacterPickerVM vm = DataContext as CharacterPickerVM;

            vm.Close();
        }
Exemple #2
0
        void SetupDataContext()
        {
            CharacterPickerVM vm = new CharacterPickerVM();

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