diff options
Diffstat (limited to 'Xamarin.Forms.Core/NavigationRequestedEventArgs.cs')
-rw-r--r-- | Xamarin.Forms.Core/NavigationRequestedEventArgs.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Xamarin.Forms.Core/NavigationRequestedEventArgs.cs b/Xamarin.Forms.Core/NavigationRequestedEventArgs.cs new file mode 100644 index 00000000..b21cffce --- /dev/null +++ b/Xamarin.Forms.Core/NavigationRequestedEventArgs.cs @@ -0,0 +1,26 @@ +using System.Threading.Tasks; + +namespace Xamarin.Forms +{ + internal class NavigationRequestedEventArgs : NavigationEventArgs + { + public NavigationRequestedEventArgs(Page page, bool animated, bool realize = true) : base(page) + { + Animated = animated; + Realize = realize; + } + + public NavigationRequestedEventArgs(Page page, Page before, bool animated) : this(page, animated) + { + BeforePage = before; + } + + public bool Animated { get; set; } + + public Page BeforePage { get; set; } + + public bool Realize { get; set; } + + public Task<bool> Task { get; set; } + } +}
\ No newline at end of file |