diff options
author | kingces95 <kingces95@users.noreply.github.com> | 2017-03-07 14:56:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 14:56:24 -0500 |
commit | e6d5186c8acbf37b877c7ca3c77a378352a3743d (patch) | |
tree | d61ca8ea619f7844e9e0a973dbd7bac794e39147 /Xamarin.Forms.Core/NavigationProxy.cs | |
parent | 2b92142ab2a501de71d3572efc0e5deb2b7bae9a (diff) | |
download | xamarin-forms-e6d5186c8acbf37b877c7ca3c77a378352a3743d.tar.gz xamarin-forms-e6d5186c8acbf37b877c7ca3c77a378352a3743d.tar.bz2 xamarin-forms-e6d5186c8acbf37b877c7ca3c77a378352a3743d.zip |
Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)
* Remove InternalsVisibleTo from Core to XF.Platforms.*
* Changes per Jason's code review
* Move LockableObservableListWrapper to internals namespace
* Changes per Stephane's code review
* update docs
* Touch code to get CI to run tests
* Rebase; Update documentation
Diffstat (limited to 'Xamarin.Forms.Core/NavigationProxy.cs')
-rw-r--r-- | Xamarin.Forms.Core/NavigationProxy.cs | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/NavigationProxy.cs b/Xamarin.Forms.Core/NavigationProxy.cs index 65e2fee9..0b686c07 100644 --- a/Xamarin.Forms.Core/NavigationProxy.cs +++ b/Xamarin.Forms.Core/NavigationProxy.cs @@ -1,17 +1,19 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.Linq; using System.Threading.Tasks; -namespace Xamarin.Forms +namespace Xamarin.Forms.Internals { - internal class NavigationProxy : INavigation + public class NavigationProxy : INavigation { INavigation _inner; Lazy<List<Page>> _modalStack = new Lazy<List<Page>>(() => new List<Page>()); Lazy<List<Page>> _pushStack = new Lazy<List<Page>>(() => new List<Page>()); + [EditorBrowsable(EditorBrowsableState.Never)] public INavigation Inner { get { return _inner; } @@ -52,56 +54,67 @@ namespace Xamarin.Forms } } + [EditorBrowsable(EditorBrowsableState.Never)] public void InsertPageBefore(Page page, Page before) { OnInsertPageBefore(page, before); } + [EditorBrowsable(EditorBrowsableState.Never)] public IReadOnlyList<Page> ModalStack { get { return GetModalStack(); } } + [EditorBrowsable(EditorBrowsableState.Never)] public IReadOnlyList<Page> NavigationStack { get { return GetNavigationStack(); } } + [EditorBrowsable(EditorBrowsableState.Never)] public Task<Page> PopAsync() { return OnPopAsync(true); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task<Page> PopAsync(bool animated) { return OnPopAsync(animated); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task<Page> PopModalAsync() { return OnPopModal(true); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task<Page> PopModalAsync(bool animated) { return OnPopModal(animated); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task PopToRootAsync() { return OnPopToRootAsync(true); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task PopToRootAsync(bool animated) { return OnPopToRootAsync(animated); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task PushAsync(Page root) { return PushAsync(root, true); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task PushAsync(Page root, bool animated) { if (root.RealParent != null) @@ -109,11 +122,13 @@ namespace Xamarin.Forms return OnPushAsync(root, animated); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task PushModalAsync(Page modal) { return PushModalAsync(modal, true); } + [EditorBrowsable(EditorBrowsableState.Never)] public Task PushModalAsync(Page modal, bool animated) { if (modal.RealParent != null) @@ -121,6 +136,7 @@ namespace Xamarin.Forms return OnPushModal(modal, animated); } + [EditorBrowsable(EditorBrowsableState.Never)] public void RemovePage(Page page) { OnRemovePage(page); |