Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
300 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Xamarin.Forms; | ||
|
||
namespace Prism.Behaviors | ||
{ | ||
/// <summary> | ||
/// Controls the Page container Scope | ||
/// </summary> | ||
public sealed class PageScopeBehavior : BehaviorBase<Page> | ||
{ | ||
protected override void OnAttachedTo(Page page) | ||
{ | ||
base.OnAttachedTo(page); | ||
// Ensure the scope gets created and NavigationService is created | ||
Navigation.Xaml.Navigation.GetNavigationService(page); | ||
} | ||
|
||
protected override void OnDetachingFrom(Page page) | ||
{ | ||
base.OnDetachingFrom(page); | ||
// This forces the Attached Property to get cleaned up. | ||
page.SetValue(Navigation.Xaml.Navigation.NavigationScopeProperty, null); | ||
} | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
src/Forms/Prism.Forms/Ioc/IContainerExtensionExtensions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.