Skip to content

Commit b304e44

Browse files
committed
Update PropertyPropagationExtensions.cs
1 parent 6040642 commit b304e44

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controls/src/Core/Internals/PropertyPropagationExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal static void PropagatePropertyChanged(string propertyName, Element eleme
2828
if (propertyName == null || propertyName == Shell.NavBarIsVisibleProperty.PropertyName)
2929
BaseShellItem.PropagateFromParent(Shell.NavBarIsVisibleProperty, element);
3030

31-
for (int i = 0; i < children.Count; i++)
31+
for (int i = 0; i < children.ToList().Count; i++)
3232
{
3333
if (children[i] is IPropertyPropagationController view)
3434
{

src/Controls/tests/TestCases.HostApp/Issues/Issue28162.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public Issue28162()
1212

1313
private void Button_Clicked(object sender, EventArgs e)
1414
{
15-
CollectionView.ItemsSource = new ObservableCollection<string> { "Item 1", "Item 2", "Item 3" };
1615
CollectionView.IsVisible = !CollectionView.IsVisible;
16+
CollectionView.ItemsSource = new ObservableCollection<string> { "Item 1", "Item 2", "Item 3" };
1717
}
1818
}
1919
}

0 commit comments

Comments
 (0)