diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ListViewBase.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ListViewBase.cs index b9efa81c7d604944c985ecf783e98e34d3b9d754..627b70e6aba67bf94505a6d9a8fe80849d596c66 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ListViewBase.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_ListViewBase.cs @@ -33,7 +33,6 @@ using Uno.UI.RuntimeTests.Extensions; using Windows.UI.Xaml.Input; using System.Runtime.InteropServices.WindowsRuntime; using System.Diagnostics; -using Uno.UI.Extensions; namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls { @@ -357,10 +356,10 @@ namespace Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls await WindowHelper.WaitFor(() => (si = SUT.ContainerFromItem(source[0]) as SelectorItem) != null); Assert.IsNull(si.Parent); - var parent = si.GetParentInternal(); + var parent = Uno.UI.Extensions.DependencyObjectExtensions.GetParentInternal(si, false); while (parent is not null && parent is not ListView listView) { - parent = parent.GetParentInternal(); + parent = Uno.UI.Extensions.DependencyObjectExtensions.GetParentInternal(parent, false); } Assert.IsInstanceOfType(parent, typeof(ListView));