From ce3c98ecb5f5aa657e2f4d725911553f55160de1 Mon Sep 17 00:00:00 2001 From: amalygin Date: Tue, 9 Jan 2018 01:11:26 +0300 Subject: [PATCH] fixed "Collection was modified; enumeration operation may not execute." exception --- .../Src/Xceed.Wpf.AvalonDock/DockingManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs index 2ed4f6c1f..860698090 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/DockingManager.cs @@ -295,7 +295,7 @@ void DockingManager_Loaded(object sender, RoutedEventArgs e) SetupAutoHideWindow(); //load windows not already loaded! - foreach (var fw in Layout.FloatingWindows.Where(fw => !_fwList.Any(fwc => fwc.Model == fw))) + foreach (var fw in Layout.FloatingWindows.Where(fw => !_fwList.Any(fwc => fwc.Model == fw)).ToArray()) _fwList.Add(CreateUIElementForModel(fw) as LayoutFloatingWindowControl); //create the overlaywindow if it's possible