5b9a8bd4796bec512020642be1aa8afd1a362799
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / XamlBinding / NavigationEventArgs.cs
1 using System;
2 using System.ComponentModel;
3
4 namespace Tizen.NUI.Binding
5 {
6     /// <summary>
7     /// EventArgs for the NavigationPage's navigation events.
8     /// </summary>
9     [EditorBrowsable(EditorBrowsableState.Never)]
10     internal class NavigationEventArgs : EventArgs
11     {
12         /// <summary>
13         /// Create a NavigationEventArgs instance.
14         /// </summary>
15         /// <param name="page">The page that was popped or is newly visible.</param>
16         public NavigationEventArgs(Page page)
17         {
18             if (page == null)
19                 throw new ArgumentNullException("page");
20
21             Page = page;
22         }
23
24         /// <summary>
25         /// Gets the page that was removed or is newly visible.
26         /// </summary>
27         public Page Page { get; private set; }
28     }
29 }