Skip to content

Commit eab4619

Browse files
Merge pull request #3 from SyncfusionExamples/JeganSyncfusion-patch-1
Fix issue in FindMissingChildren
2 parents 1f6b9dc + 93dd535 commit eab4619

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Samples/Build-Run/MainWindow.xaml.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,11 @@ private List<string> FindMissingChidren(DockingManager contentControl, List<stri
8787
{
8888
foreach (string savedChild in savedControlList)
8989
{
90-
foreach (FrameworkElement element in contentControl.Children)
90+
if (contentControl.Children
91+
.OfType<FrameworkElement>()
92+
.Any((element) => element.Name == savedChild))
9193
{
92-
if (element.Name == savedChild)
93-
{
94-
break;
95-
}
94+
continue;
9695
}
9796
missedChildrens.Add(savedChild);
9897
}

0 commit comments

Comments
 (0)