Inheritance: System.Windows.Controls.UserControl
        public void Initialize(DisposeWithViewModelTestControl control)
        {
            control.Width = 500;
            control.Height = 500;

            viewModel = new Stub();
            control.placeholder.DataContext = viewModel;

            viewModel.Disposed += delegate { Debug.WriteLine("View-Model Disposed"); };
            control.placeholder.Disposed += delegate { Debug.WriteLine("Placeholder Disposed"); };
        }
 public void Change_ViewModel(DisposeWithViewModelTestControl control)
 {
     viewModel= new Stub();
     control.placeholder.DataContext = viewModel;
 }
 public void Dispose_Of_ViewModel(DisposeWithViewModelTestControl control)
 {
     viewModel.Dispose();
 }