diff --git a/src/Controls/src/Core/Items/ItemsView.cs b/src/Controls/src/Core/Items/ItemsView.cs index bce6d11e4f5e..ca4f5b01ccc6 100644 --- a/src/Controls/src/Core/Items/ItemsView.cs +++ b/src/Controls/src/Core/Items/ItemsView.cs @@ -113,7 +113,7 @@ public int RemainingItemsThreshold internal static readonly BindableProperty InternalItemsLayoutProperty = BindableProperty.Create(nameof(ItemsLayout), typeof(IItemsLayout), typeof(ItemsView), - null, propertyChanged: OnInternalItemsLayoutPropertyChanged, + null, propertyChanged: OnInternalItemsLayoutPropertyChanged, defaultValueCreator: (b) => LinearItemsLayout.CreateVerticalDefault()); static void OnInternalItemsLayoutPropertyChanged(BindableObject bindable, object oldValue, object newValue) diff --git a/src/Controls/tests/Core.UnitTests/ItemsLayoutTypeConverterTests.cs b/src/Controls/tests/Core.UnitTests/ItemsLayoutTypeConverterTests.cs index fa1b8e4d5a26..c63229840874 100644 --- a/src/Controls/tests/Core.UnitTests/ItemsLayoutTypeConverterTests.cs +++ b/src/Controls/tests/Core.UnitTests/ItemsLayoutTypeConverterTests.cs @@ -11,7 +11,7 @@ public void HorizontalListShouldReturnLinearItemsLayout() { var converter = new ItemsLayoutTypeConverter(); var result = converter.ConvertFromInvariantString("HorizontalList"); - + Assert.IsType(result); var linearLayout = (LinearItemsLayout)result; Assert.Equal(ItemsLayoutOrientation.Horizontal, linearLayout.Orientation); @@ -22,7 +22,7 @@ public void VerticalListShouldReturnLinearItemsLayout() { var converter = new ItemsLayoutTypeConverter(); var result = converter.ConvertFromInvariantString("VerticalList"); - + Assert.IsType(result); var linearLayout = (LinearItemsLayout)result; Assert.Equal(ItemsLayoutOrientation.Vertical, linearLayout.Orientation); diff --git a/src/Controls/tests/DeviceTests/Elements/CarouselView/CarouselViewTests.iOS.cs b/src/Controls/tests/DeviceTests/Elements/CarouselView/CarouselViewTests.iOS.cs index 5990035439e8..7675d1dd2fc8 100644 --- a/src/Controls/tests/DeviceTests/Elements/CarouselView/CarouselViewTests.iOS.cs +++ b/src/Controls/tests/DeviceTests/Elements/CarouselView/CarouselViewTests.iOS.cs @@ -30,13 +30,13 @@ await InvokeOnMainThreadAsync(async () => weakCarouselView = new WeakReference(carouselView); var handler = await CreateHandlerAsync(carouselView); - + // Verify handler is created Assert.NotNull(handler); - + // Store weak reference to the handler weakHandler = new WeakReference(handler); - + // Disconnect the handler ((IElementHandler)handler).DisconnectHandler(); }); @@ -46,7 +46,7 @@ await InvokeOnMainThreadAsync(async () => // Verify the CarouselView was collected Assert.False(weakCarouselView.IsAlive, "CarouselView should have been garbage collected"); - + // Verify the handler was collected Assert.False(weakHandler.IsAlive, "CarouselViewHandler2 should have been garbage collected"); } diff --git a/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs b/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs index 1bc67c4b9a85..1a9dfd28b7ce 100644 --- a/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs +++ b/src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs @@ -271,13 +271,13 @@ await InvokeOnMainThreadAsync(async () => weakCollectionView = new WeakReference(collectionView); var handler = await CreateHandlerAsync(collectionView); - + // Verify handler is created Assert.NotNull(handler); - + // Store weak reference to the handler weakHandler = new WeakReference(handler); - + // Disconnect the handler ((IElementHandler)handler).DisconnectHandler(); }); @@ -287,7 +287,7 @@ await InvokeOnMainThreadAsync(async () => // Verify the CollectionView was collected Assert.False(weakCollectionView.IsAlive, "CollectionView should have been garbage collected"); - + // Verify the handler was collected Assert.False(weakHandler.IsAlive, "CollectionViewHandler2 should have been garbage collected"); }