2 * Copyright(c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
20 namespace Tizen.NUI.Components
23 /// PageAppearingEventArgs is a class to record page appearing event arguments which will be sent to user.
25 [EditorBrowsable(EditorBrowsableState.Never)]
26 public class PageAppearingEventArgs : EventArgs
31 /// PageDisappearingEventArgs is a class to record page disappearing event arguments which will be sent to user.
33 [EditorBrowsable(EditorBrowsableState.Never)]
34 public class PageDisappearingEventArgs : EventArgs
39 /// PageAppearedEventArgs is a class to record page appeared event arguments which will be sent to user.
41 [EditorBrowsable(EditorBrowsableState.Never)]
42 public class PageAppearedEventArgs : EventArgs
47 /// PageDisappearedEventArgs is a class to record page disappeared event arguments which will be sent to user.
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public class PageDisappearedEventArgs : EventArgs
55 /// The Page class is a class which is an element of navigation.
57 /// <since_tizen> 9 </since_tizen>
58 public abstract class Page : Control
60 private Navigator navigator = null;
63 /// Creates a new instance of a Page.
65 /// <since_tizen> 9 </since_tizen>
66 public Page() : base()
71 /// Navigator which has pushed the Page into its stack.
72 /// If this Page has not been pushed into any Navigator, then Navigator is null.
74 /// <since_tizen> 9 </since_tizen>
75 public Navigator Navigator
83 if (navigator == value)
93 /// An event for the page appearing signal which can be used to subscribe or unsubscribe the event handler provided by the user.
95 [EditorBrowsable(EditorBrowsableState.Never)]
96 public event EventHandler<PageAppearingEventArgs> Appearing;
99 /// An event for the page disappearing signal which can be used to subscribe or unsubscribe the event handler provided by the user.
101 [EditorBrowsable(EditorBrowsableState.Never)]
102 public event EventHandler<PageDisappearingEventArgs> Disappearing;
105 /// An event for the page appeared signal which can be used to subscribe or unsubscribe the event handler provided by the user.
107 [EditorBrowsable(EditorBrowsableState.Never)]
108 public event EventHandler<PageAppearedEventArgs> Appeared;
111 /// An event for the page disappeared signal which can be used to subscribe or unsubscribe the event handler provided by the user.
113 [EditorBrowsable(EditorBrowsableState.Never)]
114 public event EventHandler<PageDisappearedEventArgs> Disappeared;
116 internal void InvokeAppearing()
118 Appearing?.Invoke(this, new PageAppearingEventArgs());
121 internal void InvokeDisappearing()
123 Disappearing?.Invoke(this, new PageDisappearingEventArgs());
126 internal void InvokeAppeared()
128 Appeared?.Invoke(this, new PageAppearedEventArgs());
131 internal void InvokeDisappeared()
133 Disappeared?.Invoke(this, new PageDisappearedEventArgs());