summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/NavigationProxy.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Core/NavigationProxy.cs')
-rw-r--r--Xamarin.Forms.Core/NavigationProxy.cs20
1 files changed, 18 insertions, 2 deletions
diff --git a/Xamarin.Forms.Core/NavigationProxy.cs b/Xamarin.Forms.Core/NavigationProxy.cs
index 65e2fee..0b686c0 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);