Example #1
0
 public void PrepareAndHide()
 {
     if (this.window == null)
     {
         return;
     }
     DockManager.Instance.UnregisterSite((Visual)this);
     this.Content = (object)(this.innerContent = (DockAdorner)null);
     this.window.Dispose();
     this.window = (HwndSource)null;
 }
Example #2
0
        private void UpdateContent()
        {
            DockAdorner dockAdorner = !this.IsDockGroup ? (DockAdorner) new DockSiteAdorner() : (DockAdorner) new DockGroupAdorner();

            dockAdorner.AdornedElement             = this.AdornedElement;
            dockAdorner.DockDirection              = this.DockDirection;
            dockAdorner.Orientation                = this.Orientation;
            dockAdorner.AreOuterTargetsEnabled     = this.AreOuterTargetsEnabled;
            dockAdorner.AreInnerTargetsEnabled     = this.AreInnerTargetsEnabled;
            dockAdorner.IsInnerCenterTargetEnabled = this.IsInnerCenterTargetEnabled;
            dockAdorner.AreInnerSideTargetsEnabled = this.AreInnerSideTargetsEnabled;
            this.Content = (object)(this.innerContent = dockAdorner);
            this.innerContent.UpdateContent();
        }