diff --git a/src/Forms/Prism.Forms.Regions/Regions/Adapters/IRegionAdapter.cs b/src/Forms/Prism.Forms.Regions/Regions/Adapters/IRegionAdapter.cs
deleted file mode 100644
index 70387f7918..0000000000
--- a/src/Forms/Prism.Forms.Regions/Regions/Adapters/IRegionAdapter.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using Xamarin.Forms;
-
-namespace Prism.Regions.Adapters
-{
- ///
- /// Defines an interfaces to adapt an object and bind it to a new .
- ///
- public interface IRegionAdapter
- {
- ///
- /// Adapts an object and binds it to a new .
- ///
- /// The object to adapt.
- /// The name of the region to be created.
- /// The new instance of that the is bound to.
- IRegion Initialize(VisualElement regionTarget, string regionName);
- }
-}
diff --git a/src/Forms/Prism.Forms.Regions/Regions/Adapters/RegionAdapterBase.cs b/src/Forms/Prism.Forms.Regions/Regions/Adapters/RegionAdapterBase.cs
index 750194d9f1..7ca851c3df 100644
--- a/src/Forms/Prism.Forms.Regions/Regions/Adapters/RegionAdapterBase.cs
+++ b/src/Forms/Prism.Forms.Regions/Regions/Adapters/RegionAdapterBase.cs
@@ -55,7 +55,7 @@ public IRegion Initialize(T regionTarget, string regionName)
/// is of type .
/// When is .
/// When is not of type .
- IRegion IRegionAdapter.Initialize(VisualElement regionTarget, string regionName)
+ IRegion IRegionAdapter.Initialize(object regionTarget, string regionName)
{
return Initialize(GetCastedObject(regionTarget), regionName);
}
diff --git a/tests/Forms/Prism.DI.Forms.Tests/Fixtures/Regions/RegionFixture.cs b/tests/Forms/Prism.DI.Forms.Tests/Fixtures/Regions/RegionFixture.cs
index 9377d62edc..a0a9fe6c19 100644
--- a/tests/Forms/Prism.DI.Forms.Tests/Fixtures/Regions/RegionFixture.cs
+++ b/tests/Forms/Prism.DI.Forms.Tests/Fixtures/Regions/RegionFixture.cs
@@ -31,7 +31,7 @@ public async Task RegionWorksWhenContentViewIsTopChild()
var vm = _app.MainPage.BindingContext as Issue2415PageViewModel;
Assert.NotNull(vm.Result);
- Assert.True(vm.Result.Result);
+ Assert.True(vm.Result.Success);
}
void IPlatformInitializer.RegisterTypes(IContainerRegistry containerRegistry)
diff --git a/tests/Forms/Prism.DI.Forms.Tests/Mocks/ViewModels/Issue2415PageViewModel.cs b/tests/Forms/Prism.DI.Forms.Tests/Mocks/ViewModels/Issue2415PageViewModel.cs
index c026bfae9b..8bd37abb2a 100644
--- a/tests/Forms/Prism.DI.Forms.Tests/Mocks/ViewModels/Issue2415PageViewModel.cs
+++ b/tests/Forms/Prism.DI.Forms.Tests/Mocks/ViewModels/Issue2415PageViewModel.cs
@@ -18,14 +18,14 @@ public Issue2415PageViewModel(IRegionManager regionManager)
_regionManager = regionManager;
}
- public IRegionNavigationResult Result { get; private set; }
+ public NavigationResult Result { get; private set; }
public void Initialize(INavigationParameters parameters)
{
_regionManager.RequestNavigate("ContentRegion", "Issue2415RegionView", NavigationCallback);
}
- private void NavigationCallback(IRegionNavigationResult result)
+ private void NavigationCallback(NavigationResult result)
{
Result = result;
}
diff --git a/tests/Forms/Prism.Forms.Regions.Tests/Mocks/MockPresentationRegion.cs b/tests/Forms/Prism.Forms.Regions.Tests/Mocks/MockPresentationRegion.cs
index b27a74baf5..f9d068c32c 100644
--- a/tests/Forms/Prism.Forms.Regions.Tests/Mocks/MockPresentationRegion.cs
+++ b/tests/Forms/Prism.Forms.Regions.Tests/Mocks/MockPresentationRegion.cs
@@ -17,35 +17,35 @@ public MockPresentationRegion()
{
Behaviors = new MockRegionBehaviorCollection();
}
- public IRegionManager Add(VisualElement view)
+ public IRegionManager Add(object view)
{
MockViews.Items.Add(view);
return null;
}
- public void Remove(VisualElement view)
+ public void Remove(object view)
{
MockViews.Items.Remove(view);
MockActiveViews.Items.Remove(view);
}
- public void Activate(VisualElement view)
+ public void Activate(object view)
{
MockActiveViews.Items.Add(view);
}
- public IRegionManager Add(VisualElement view, string viewName)
+ public IRegionManager Add(object view, string viewName)
{
throw new NotImplementedException();
}
- public IRegionManager Add(VisualElement view, string viewName, bool createRegionManagerScope)
+ public IRegionManager Add(object view, string viewName, bool createRegionManagerScope)
{
throw new NotImplementedException();
}
- public VisualElement GetView(string viewName)
+ public object GetView(string viewName)
{
throw new NotImplementedException();
}
@@ -103,12 +103,12 @@ public bool Navigate(Uri source)
throw new NotImplementedException();
}
- public void RequestNavigate(Uri target, Action navigationCallback)
+ public void RequestNavigate(Uri target, Action navigationCallback)
{
throw new NotImplementedException();
}
- public void RequestNavigate(Uri target, Action navigationCallback, INavigationParameters navigationParameters)
+ public void RequestNavigate(Uri target, Action navigationCallback, INavigationParameters navigationParameters)
{
throw new NotImplementedException();
}
@@ -118,6 +118,11 @@ public void RemoveAll()
throw new NotImplementedException();
}
+ public void Deactivate(object view)
+ {
+ throw new NotImplementedException();
+ }
+
public IRegionNavigationService NavigationService
{
get => throw new NotImplementedException();
@@ -125,7 +130,7 @@ public IRegionNavigationService NavigationService
}
- public Comparison SortComparison
+ public Comparison