/// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="v"></param>
 public ViewLookUp(IDockableViewModel v)
 {
     this.View = v;
     this.Pane = null;
 }
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="v"></param>
 /// <param name="p"></param>
 public ViewLookUp(IDockableViewModel v, ModelToolWindowPane p)
 {
     this.View = v;
     this.Pane = p;
 }
 private void SetViewModel(ModelToolWindowPane pane, BaseDockingViewModel vm)
 {
     if( vm != null )
         if (!vm.IsDisposed)
         {
             pane.Content.DataContext = vm;
             return;
         }
     pane.Content.DataContext = null;
 }