Beispiel #1
0
        public void Clean()
        {
            AdwancedViewModelBase viewModel = DataContext as AdwancedViewModelBase;

            if (viewModel == null)
            {
                return;
            }

            viewModel.Clean();

            DataContext = null;
            viewModel   = null;
        }
Beispiel #2
0
        private void CleanPrivate()
        {
            ControlChild.Clear();
            AdwancedViewModelBase viewModel = DataContext as AdwancedViewModelBase;

            if (viewModel == null)
            {
                return;
            }

            viewModel.Clean();
            viewModel = null;

            DataContext = null;

            this.Unloaded -= ControlExtended_UnLoaded;
        }