diff --git a/source/Components/AvalonDock/Layout/LayoutContent.cs b/source/Components/AvalonDock/Layout/LayoutContent.cs index 92c2dbd2..7e656f54 100644 --- a/source/Components/AvalonDock/Layout/LayoutContent.cs +++ b/source/Components/AvalonDock/Layout/LayoutContent.cs @@ -604,10 +604,13 @@ public void Float() IsSelected = true; IsActive = true; } - } - /// Dock the content as document. - public void DockAsDocument() + // BD: 14.08.2020 raise IsFloating property changed + RaisePropertyChanged(nameof(IsFloating)); + } + + /// Dock the content as document. + public void DockAsDocument() { if (!(Root is LayoutRoot root)) throw new InvalidOperationException(); if (Parent is LayoutDocumentPane) return; @@ -631,12 +634,15 @@ public void DockAsDocument() } IsSelected = true; IsActive = true; - } - /// - /// Re-dock the content to its previous container - /// - public void Dock() + // BD: 14.08.2020 raise IsFloating property changed + RaisePropertyChanged(nameof(IsFloating)); + } + + /// + /// Re-dock the content to its previous container + /// + public void Dock() { if (PreviousContainer != null) { @@ -667,13 +673,16 @@ public void Dock() InternalDock(); Root.CollectGarbage(); - } - #endregion Public Methods + // BD: 14.08.2020 raise IsFloating property changed + RaisePropertyChanged(nameof(IsFloating)); + } + + #endregion Public Methods - #region Overrides + #region Overrides - protected override void OnParentChanging(ILayoutContainer oldValue, ILayoutContainer newValue) + protected override void OnParentChanging(ILayoutContainer oldValue, ILayoutContainer newValue) { if (oldValue != null) IsSelected = false; //var root = Root;