This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PoppedToRootEventArgs to track popped pages when calling PopToRoot
- Loading branch information
Showing
6 changed files
with
111 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Xamarin.Forms | ||
{ | ||
public class PoppedToRootEventArgs : NavigationEventArgs | ||
{ | ||
public PoppedToRootEventArgs(Page page, IEnumerable<Page> poppedPages) : base(page) | ||
{ | ||
if (poppedPages == null) | ||
throw new ArgumentNullException(nameof(poppedPages)); | ||
|
||
PoppedPages = poppedPages; | ||
} | ||
|
||
public IEnumerable<Page> PoppedPages { get; private set; } | ||
} | ||
} |
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
60 changes: 60 additions & 0 deletions
60
docs/Xamarin.Forms.Core/Xamarin.Forms/PoppedToRootEventArgs.xml
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,60 @@ | ||
<Type Name="PoppedToRootEventArgs" FullName="Xamarin.Forms.PoppedToRootEventArgs"> | ||
<TypeSignature Language="C#" Value="public class PoppedToRootEventArgs : Xamarin.Forms.NavigationEventArgs" /> | ||
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit PoppedToRootEventArgs extends Xamarin.Forms.NavigationEventArgs" /> | ||
<AssemblyInfo> | ||
<AssemblyName>Xamarin.Forms.Core</AssemblyName> | ||
<AssemblyVersion>2.0.0.0</AssemblyVersion> | ||
</AssemblyInfo> | ||
<Base> | ||
<BaseTypeName>Xamarin.Forms.NavigationEventArgs</BaseTypeName> | ||
</Base> | ||
<Interfaces /> | ||
<Docs> | ||
<summary>EventArgs for the NavigationPage's PoppedToRoot navigation event.</summary> | ||
<remarks> | ||
The <see cref="E:Xamarin.Forms.NavigationPage.PoppedToRoot" /> passes <see cref="T:Xamarin.Forms.NavigationEventArgs" /> as the | ||
event argument. This class can be cast to <see cref="T:Xamarin.Forms.PoppedToRootEventArgs" /> to allow for access to the | ||
PoppedPages collection that exposes the pages that was popped. | ||
</remarks> | ||
<altmember cref="E:Xamarin.Forms.NavigationPage.PoppedToRoot" /> | ||
</Docs> | ||
<Members> | ||
<Member MemberName=".ctor"> | ||
<MemberSignature Language="C#" Value="public PoppedToRootEventArgs (Xamarin.Forms.Page page);" /> | ||
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Xamarin.Forms.Page page) cil managed" /> | ||
<MemberType>Constructor</MemberType> | ||
<AssemblyInfo> | ||
<AssemblyVersion>2.0.0.0</AssemblyVersion> | ||
</AssemblyInfo> | ||
<Parameters> | ||
<Parameter Name="page" Type="Xamarin.Forms.Page" /> | ||
</Parameters> | ||
<Docs> | ||
<param name="page">The page that is the new root page.</param> | ||
<summary></summary> | ||
<remarks></remarks> | ||
</Docs> | ||
</Member> | ||
<Member MemberName="PoppedPages"> | ||
<MemberSignature Language="C#" Value="public System.Collections.Generic.IEnumerable<Xamarin.Forms.Page> PoppedPages { get; set; }" /> | ||
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IEnumerable`1<class Xamarin.Forms.Page> PoppedPages" /> | ||
<MemberType>Property</MemberType> | ||
<AssemblyInfo> | ||
<AssemblyVersion>2.0.0.0</AssemblyVersion> | ||
</AssemblyInfo> | ||
<ReturnValue> | ||
<ReturnType>System.Collections.Generic.IEnumerable<Xamarin.Forms.Page></ReturnType> | ||
</ReturnValue> | ||
<Docs> | ||
<summary>Gets a collection of pages that was removed from the navigation stack.</summary> | ||
<value></value> | ||
<remarks> | ||
<para>For <see cref="E:Xamarin.Forms.NavigationPage.PoppedToRoot" /> this represents the pages | ||
that were popped. The order of the pages represents the order of the stack that was popped. The first page in the | ||
collection is the page that was closest to the root page. | ||
</para> | ||
</remarks> | ||
</Docs> | ||
</Member> | ||
</Members> | ||
</Type> |