summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/Internals/NavigationRequestedEventArgs.cs
blob: 32022f149f74e57e6cee5befea42d6f554eb7fbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System.Threading.Tasks;

namespace Xamarin.Forms.Internals
{
	public 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; }
	}
}