[NUI] Refine codes to reduce code duplication (#1096)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / UIComponents / Popup.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 using System;
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21 using Tizen.NUI.Binding;
22
23 namespace Tizen.NUI.UIComponents
24 {
25     /// <summary>
26     /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields.
27     /// </summary>
28     /// <since_tizen> 3 </since_tizen>
29     /// This will be deprecated
30     [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
31     [EditorBrowsable(EditorBrowsableState.Never)]
32     public class Popup : View
33     {
34         /// This will be deprecated
35         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
36         [EditorBrowsable(EditorBrowsableState.Never)]
37         public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
38         {
39             var popup = (Popup)bindable;
40             if (newValue != null)
41             {
42                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TITLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
43             }
44         },
45         defaultValueCreator:(bindable) =>
46         {
47             var popup = (Popup)bindable;
48             PropertyMap temp = new PropertyMap();
49             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TITLE).Get(temp);
50             return temp;
51         });
52         /// This will be deprecated
53         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
54         [EditorBrowsable(EditorBrowsableState.Never)]
55         public static readonly BindableProperty ContentProperty = BindableProperty.Create("Content", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
56         {
57             var popup = (Popup)bindable;
58             if (newValue != null)
59             {
60                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTENT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
61             }
62         },
63         defaultValueCreator:(bindable) =>
64         {
65             var popup = (Popup)bindable;
66             PropertyMap temp = new PropertyMap();
67             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTENT).Get(temp);
68             return temp;
69         });
70         /// This will be deprecated
71         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
72         [EditorBrowsable(EditorBrowsableState.Never)]
73         public static readonly BindableProperty FooterProperty = BindableProperty.Create("Footer", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
74         {
75             var popup = (Popup)bindable;
76             if (newValue != null)
77             {
78                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.FOOTER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
79             }
80         },
81         defaultValueCreator:(bindable) =>
82         {
83             var popup = (Popup)bindable;
84             PropertyMap temp = new PropertyMap();
85             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.FOOTER).Get(temp);
86             return temp;
87         });
88         /// This will be deprecated
89         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
90         [EditorBrowsable(EditorBrowsableState.Never)]
91         public static readonly BindableProperty DisplayStateProperty = BindableProperty.Create("DisplayState", typeof(DisplayStateType), typeof(Popup), DisplayStateType.Hidden, propertyChanged: (bindable, oldValue, newValue) =>
92         {
93             var popup = (Popup)bindable;
94             string valueToString = "";
95             if (newValue != null)
96             {
97                 switch ((DisplayStateType)newValue)
98                 {
99                     case DisplayStateType.Showing:
100                         {
101                             valueToString = "SHOWING";
102                             break;
103                         }
104                     case DisplayStateType.Shown:
105                         {
106                             valueToString = "SHOWN";
107                             break;
108                         }
109                     case DisplayStateType.Hiding:
110                         {
111                             valueToString = "HIDING";
112                             break;
113                         }
114                     case DisplayStateType.Hidden:
115                         {
116                             valueToString = "HIDDEN";
117                             break;
118                         }
119                     default:
120                         {
121                             valueToString = "HIDDEN";
122                             break;
123                         }
124                 }
125                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
126             }
127         },
128         defaultValueCreator:(bindable) =>
129         {
130             var popup = (Popup)bindable;
131             string temp;
132             if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE).Get(out temp) == false)
133             {
134                 NUILog.Error("DisplayState get error!");
135             }
136             switch (temp)
137             {
138                 case "SHOWING":
139                     return DisplayStateType.Showing;
140                 case "SHOWN":
141                     return DisplayStateType.Shown;
142                 case "HIDING":
143                     return DisplayStateType.Hiding;
144                 case "HIDDEN":
145                     return DisplayStateType.Hidden;
146                 default:
147                     return DisplayStateType.Hidden;
148             }
149         });
150         /// This will be deprecated
151         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
152         [EditorBrowsable(EditorBrowsableState.Never)]
153         public static readonly BindableProperty TouchTransparentProperty = BindableProperty.Create("TouchTransparent", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) =>
154         {
155             var popup = (Popup)bindable;
156             if (newValue != null)
157             {
158                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue((bool)newValue));
159             }
160         },
161         defaultValueCreator:(bindable) =>
162         {
163             var popup = (Popup)bindable;
164             bool temp = false;
165             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
166             return temp;
167         });
168         /// This will be deprecated
169         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
170         [EditorBrowsable(EditorBrowsableState.Never)]
171         public static readonly BindableProperty TailVisibilityProperty = BindableProperty.Create("TailVisibility", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) =>
172         {
173             var popup = (Popup)bindable;
174             if (newValue != null)
175             {
176                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue((bool)newValue));
177             }
178         },
179         defaultValueCreator:(bindable) =>
180         {
181             var popup = (Popup)bindable;
182             bool temp = false;
183             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY).Get(out temp);
184             return temp;
185         });
186         /// This will be deprecated
187         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
188         [EditorBrowsable(EditorBrowsableState.Never)]
189         public static readonly BindableProperty TailPositionProperty = BindableProperty.Create("TailPosition", typeof(Vector3), typeof(Popup), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) =>
190         {
191             var popup = (Popup)bindable;
192             if (newValue != null)
193             {
194                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue));
195             }
196         },
197         defaultValueCreator:(bindable) =>
198         {
199             var popup = (Popup)bindable;
200             Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
201             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION).Get(temp);
202             return temp;
203         });
204         /// This will be deprecated
205         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
206         [EditorBrowsable(EditorBrowsableState.Never)]
207         public static readonly BindableProperty ContextualModeProperty = BindableProperty.Create("ContextualMode", typeof(ContextualModeType), typeof(Popup), ContextualModeType.Below, propertyChanged: (bindable, oldValue, newValue) =>
208         {
209             var popup = (Popup)bindable;
210             string valueToString = "";
211             if (newValue != null)
212             {
213                 switch ((ContextualModeType)newValue)
214                 {
215                     case ContextualModeType.NonContextual:
216                     {
217                         valueToString = "NON_CONTEXTUAL";
218                         break;
219                     }
220                     case ContextualModeType.Above:
221                     {
222                         valueToString = "ABOVE";
223                         break;
224                     }
225                     case ContextualModeType.Rright:
226                     {
227                         valueToString = "RIGHT";
228                         break;
229                     }
230                     case ContextualModeType.Below:
231                     {
232                         valueToString = "BELOW";
233                         break;
234                     }
235                     case ContextualModeType.Left:
236                     {
237                         valueToString = "LEFT";
238                         break;
239                     }
240                     default:
241                     {
242                         valueToString = "BELOW";
243                         break;
244                     }
245                 }
246                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
247             }
248         },
249         defaultValueCreator:(bindable) =>
250         {
251             var popup = (Popup)bindable;
252             string temp;
253             if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
254             {
255                 NUILog.Error("ContextualMode get error!");
256             }
257             switch (temp)
258             {
259                 case "NON_CONTEXTUAL":
260                     return ContextualModeType.NonContextual;
261                 case "ABOVE":
262                     return ContextualModeType.Above;
263                 case "RIGHT":
264                     return ContextualModeType.Rright;
265                 case "BELOW":
266                     return ContextualModeType.Below;
267                 case "LEFT":
268                     return ContextualModeType.Left;
269                 default:
270                     return ContextualModeType.Below;
271             }
272         });
273         /// This will be deprecated
274         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
275         [EditorBrowsable(EditorBrowsableState.Never)]
276         public static readonly BindableProperty AnimationDurationProperty = BindableProperty.Create("AnimationDuration", typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) =>
277         {
278             var popup = (Popup)bindable;
279             if (newValue != null)
280             {
281                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
282             }
283         },
284         defaultValueCreator:(bindable) =>
285         {
286             var popup = (Popup)bindable;
287             float temp = 0.0f;
288             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION).Get(out temp);
289             return temp;
290         });
291         /// This will be deprecated
292         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
293         [EditorBrowsable(EditorBrowsableState.Never)]
294         public static readonly BindableProperty AnimationModeProperty = BindableProperty.Create("AnimationMode", typeof(AnimationModeType), typeof(Popup), AnimationModeType.Fade, propertyChanged: (bindable, oldValue, newValue) =>
295         {
296             var popup = (Popup)bindable;
297             string valueToString = "";
298             if (newValue != null)
299             {
300                 switch ((AnimationModeType)newValue)
301                 {
302                     case AnimationModeType.None:
303                     {
304                         valueToString = "NONE";
305                         break;
306                     }
307                     case AnimationModeType.Zoom:
308                     {
309                         valueToString = "ZOOM";
310                         break;
311                     }
312                     case AnimationModeType.Fade:
313                     {
314                         valueToString = "FADE";
315                         break;
316                     }
317                     case AnimationModeType.Custom:
318                     {
319                         valueToString = "CUSTOM";
320                         break;
321                     }
322                     default:
323                     {
324                         valueToString = "FADE";
325                         break;
326                     }
327                 }
328                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
329             }
330         },
331         defaultValueCreator:(bindable) =>
332         {
333             var popup = (Popup)bindable;
334             string temp;
335             if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE).Get(out temp) == false)
336             {
337                 NUILog.Error("AnimationMode get error!");
338             }
339             switch (temp)
340             {
341                 case "NONE":
342                     return AnimationModeType.None;
343                 case "ZOOM":
344                     return AnimationModeType.Zoom;
345                 case "FADE":
346                     return AnimationModeType.Fade;
347                 case "CUSTOM":
348                     return AnimationModeType.Custom;
349                 default:
350                     return AnimationModeType.Fade;
351             }
352         });
353         /// This will be deprecated
354         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
355         [EditorBrowsable(EditorBrowsableState.Never)]
356         public static readonly BindableProperty EntryAnimationProperty = BindableProperty.Create("EntryAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
357         {
358             var popup = (Popup)bindable;
359             if (newValue != null)
360             {
361                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
362             }
363         },
364         defaultValueCreator:(bindable) =>
365         {
366             var popup = (Popup)bindable;
367             PropertyMap temp = new PropertyMap();
368             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION).Get(temp);
369             return temp;
370         });
371         /// This will be deprecated
372         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
373         [EditorBrowsable(EditorBrowsableState.Never)]
374         public static readonly BindableProperty ExitAnimationProperty = BindableProperty.Create("ExitAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
375         {
376             var popup = (Popup)bindable;
377             if (newValue != null)
378             {
379                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
380             }
381         },
382         defaultValueCreator:(bindable) =>
383         {
384             var popup = (Popup)bindable;
385             PropertyMap temp = new PropertyMap();
386             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION).Get(temp);
387             return temp;
388         });
389         /// This will be deprecated
390         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
391         [EditorBrowsable(EditorBrowsableState.Never)]
392         public static readonly BindableProperty AutoHideDelayProperty = BindableProperty.Create("AutoHideDelay", typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) =>
393         {
394             var popup = (Popup)bindable;
395             if (newValue != null)
396             {
397                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue((int)newValue));
398             }
399         },
400         defaultValueCreator:(bindable) =>
401         {
402             var popup = (Popup)bindable;
403             int temp = 0;
404             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
405             return temp;
406         });
407         /// This will be deprecated
408         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
409         [EditorBrowsable(EditorBrowsableState.Never)]
410         public static readonly BindableProperty BackingEnabledProperty = BindableProperty.Create("BackingEnabled", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) =>
411         {
412             var popup = (Popup)bindable;
413             if (newValue != null)
414             {
415                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
416             }
417         },
418         defaultValueCreator:(bindable) =>
419         {
420             var popup = (Popup)bindable;
421             bool temp = false;
422             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED).Get(out temp);
423             return temp;
424         });
425         /// This will be deprecated
426         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
427         [EditorBrowsable(EditorBrowsableState.Never)]
428         public static readonly BindableProperty BackingColorProperty = BindableProperty.Create("BackingColor", typeof(Vector4), typeof(Popup), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
429         {
430             var popup = (Popup)bindable;
431             if (newValue != null)
432             {
433                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
434             }
435         },
436         defaultValueCreator:(bindable) =>
437         {
438             var popup = (Popup)bindable;
439             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
440             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR).Get(temp);
441             return temp;
442         });
443         /// This will be deprecated
444         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
445         [EditorBrowsable(EditorBrowsableState.Never)]
446         public static readonly BindableProperty PopupBackgroundImageProperty = BindableProperty.Create("PopupBackgroundImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
447         {
448             var popup = (Popup)bindable;
449             if (newValue != null)
450             {
451                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
452             }
453         },
454         defaultValueCreator:(bindable) =>
455         {
456             var popup = (Popup)bindable;
457             string temp;
458             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
459             return temp;
460         });
461         /// This will be deprecated
462         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
463         [EditorBrowsable(EditorBrowsableState.Never)]
464         public static readonly BindableProperty PopupBackgroundBorderProperty = BindableProperty.Create("PopupBackgroundBorder", typeof(Rectangle), typeof(Popup), new Rectangle(0,0,0,0), propertyChanged: (bindable, oldValue, newValue) =>
465         {
466             var popup = (Popup)bindable;
467             if (newValue != null)
468             {
469                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue((Rectangle)newValue));
470             }
471         },
472         defaultValueCreator:(bindable) =>
473         {
474             var popup = (Popup)bindable;
475             Rectangle temp = new Rectangle(0, 0, 0, 0);
476             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
477             return temp;
478         });
479         /// This will be deprecated
480         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
481         [EditorBrowsable(EditorBrowsableState.Never)]
482         public static readonly BindableProperty TailUpImageProperty = BindableProperty.Create("TailUpImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
483         {
484             var popup = (Popup)bindable;
485             if (newValue != null)
486             {
487                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
488             }
489         },
490         defaultValueCreator:(bindable) =>
491         {
492             var popup = (Popup)bindable;
493             string temp;
494             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE).Get(out temp);
495             return temp;
496         });
497         /// This will be deprecated
498         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
499         [EditorBrowsable(EditorBrowsableState.Never)]
500         public static readonly BindableProperty TailDownImageProperty = BindableProperty.Create("TailDownImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
501         {
502             var popup = (Popup)bindable;
503             if (newValue != null)
504             {
505                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
506             }
507         },
508         defaultValueCreator:(bindable) =>
509         {
510             var popup = (Popup)bindable;
511             string temp;
512             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
513             return temp;
514         });
515         /// This will be deprecated
516         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
517         [EditorBrowsable(EditorBrowsableState.Never)]
518         public static readonly BindableProperty TailLeftImageProperty = BindableProperty.Create("TailLeftImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
519         {
520             var popup = (Popup)bindable;
521             if (newValue != null)
522             {
523                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
524             }
525         },
526         defaultValueCreator:(bindable) =>
527         {
528             var popup = (Popup)bindable;
529             string temp;
530             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
531             return temp;
532         });
533         /// This will be deprecated
534         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
535         [EditorBrowsable(EditorBrowsableState.Never)]
536         public static readonly BindableProperty TailRightImageProperty = BindableProperty.Create("TailRightImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
537         {
538             var popup = (Popup)bindable;
539             if (newValue != null)
540             {
541                 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
542             }
543         },
544         defaultValueCreator:(bindable) =>
545         {
546             var popup = (Popup)bindable;
547             string temp;
548             Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
549             return temp;
550         });
551
552         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
553         private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
554         private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
555         private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
556         private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
557         private EventHandler<ShownEventArgs> _popUpShownEventHandler;
558         private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
559         private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
560         private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
561         private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
562         private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
563
564         /// <summary>
565         /// Creates the popup.
566         /// </summary>
567         /// <since_tizen> 3 </since_tizen>
568         /// This will be deprecated
569         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
570         [EditorBrowsable(EditorBrowsableState.Never)]
571         public Popup() : this(Interop.Popup.Popup_New(), true)
572         {
573             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
574         }
575
576         internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Popup.Popup_SWIGUpcast(cPtr), cMemoryOwn)
577         {
578             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
579         }
580
581         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
582         private delegate void OutsideTouchedEventCallbackDelegate();
583         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
584         private delegate void ShowingEventCallbackDelegate();
585         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
586         private delegate void ShownEventCallbackDelegate();
587         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
588         private delegate void HidingEventCallbackDelegate();
589         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
590         private delegate void HiddenEventCallbackDelegate();
591
592         /// <summary>
593         /// An event is sent when the user has touched outside the dialog.
594         /// </summary>
595         /// <since_tizen> 3 </since_tizen>
596         /// This will be deprecated
597         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
598         [EditorBrowsable(EditorBrowsableState.Never)]
599         public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
600         {
601             add
602             {
603                 if (_popUpOutsideTouchedEventHandler == null)
604                 {
605                     _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
606                     OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
607                 }
608                 _popUpOutsideTouchedEventHandler += value;
609             }
610             remove
611             {
612                 _popUpOutsideTouchedEventHandler -= value;
613                 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
614                 {
615                     this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
616                 }
617             }
618         }
619
620         /// <summary>
621         /// An event is sent when the popup starts showing.
622         /// </summary>
623         /// <since_tizen> 3 </since_tizen>
624         /// This will be deprecated
625         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
626         [EditorBrowsable(EditorBrowsableState.Never)]
627         public event EventHandler<ShowingEventArgs> Showing
628         {
629             add
630             {
631                 if (_popUpShowingEventHandler == null)
632                 {
633                     _popUpShowingEventCallbackDelegate = (OnShowing);
634                     ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
635                 }
636                 _popUpShowingEventHandler += value;
637             }
638             remove
639             {
640                 _popUpShowingEventHandler -= value;
641                 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
642                 {
643                     ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
644                 }
645             }
646         }
647
648         /// <summary>
649         /// An event is sent when the popup has been fully displayed.
650         /// </summary>
651         /// <since_tizen> 3 </since_tizen>
652         /// This will be deprecated
653         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
654         [EditorBrowsable(EditorBrowsableState.Never)]
655         public event EventHandler<ShownEventArgs> Shown
656         {
657             add
658             {
659                 if (_popUpShownEventHandler == null)
660                 {
661                     _popUpShownEventCallbackDelegate = (OnShown);
662                     ShownSignal().Connect(_popUpShownEventCallbackDelegate);
663                 }
664                 _popUpShownEventHandler += value;
665             }
666             remove
667             {
668                 _popUpShownEventHandler -= value;
669                 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
670                 {
671                     ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
672                 }
673             }
674         }
675
676         /// <summary>
677         /// An event is sent when the popup starts to hide.
678         /// </summary>
679         /// <since_tizen> 3 </since_tizen>
680         /// This will be deprecated
681         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
682         [EditorBrowsable(EditorBrowsableState.Never)]
683         public event EventHandler<HidingEventArgs> Hiding
684         {
685             add
686             {
687                 if (_popUpHidingEventHandler == null)
688                 {
689                     _popUpHidingEventCallbackDelegate = (OnHiding);
690                     HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
691                 }
692                 _popUpHidingEventHandler += value;
693             }
694             remove
695             {
696                 _popUpHidingEventHandler -= value;
697                 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
698                 {
699                     HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
700                 }
701             }
702         }
703
704         /// <summary>
705         /// An event is sent when the popup has been completely hidden.
706         /// </summary>
707         /// <since_tizen> 3 </since_tizen>
708         /// This will be deprecated
709         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
710         [EditorBrowsable(EditorBrowsableState.Never)]
711         public event EventHandler<HiddenEventArgs> Hidden
712         {
713             add
714             {
715                 if (_popUpHiddenEventHandler == null)
716                 {
717                     _popUpHiddenEventCallbackDelegate = (OnHidden);
718                     HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
719                 }
720                 _popUpHiddenEventHandler += value;
721             }
722             remove
723             {
724                 _popUpHiddenEventHandler -= value;
725                 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
726                 {
727                     HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
728                 }
729             }
730         }
731
732         /// <summary>
733         /// The display states of the popup.
734         /// </summary>
735         /// <since_tizen> 3 </since_tizen>
736         /// This will be deprecated
737         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
738         [EditorBrowsable(EditorBrowsableState.Never)]
739         public enum DisplayStateType
740         {
741             /// <summary>
742             /// The popup is transitioning in
743             /// </summary>
744             /// <since_tizen> 3 </since_tizen>
745             /// This will be deprecated
746             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
747             [EditorBrowsable(EditorBrowsableState.Never)]
748             Showing,
749             /// <summary>
750             /// The popup is fully shown
751             /// </summary>
752             /// <since_tizen> 3 </since_tizen>
753             /// This will be deprecated
754             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
755             [EditorBrowsable(EditorBrowsableState.Never)]
756             Shown,
757             /// <summary>
758             /// The popup is transitioning out
759             /// </summary>
760             /// <since_tizen> 3 </since_tizen>
761             /// This will be deprecated
762             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
763             [EditorBrowsable(EditorBrowsableState.Never)]
764             Hiding,
765             /// <summary>
766             /// The popup is fully hidden
767             /// </summary>
768             /// <since_tizen> 3 </since_tizen>
769             /// This will be deprecated
770             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
771             [EditorBrowsable(EditorBrowsableState.Never)]
772             Hidden
773         }
774
775         /// <summary>
776         /// The animation modes within the popup.<br />
777         /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
778         /// </summary>
779         /// <since_tizen> 3 </since_tizen>
780         /// This will be deprecated
781         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
782         [EditorBrowsable(EditorBrowsableState.Never)]
783         public enum AnimationModeType
784         {
785             /// <summary>
786             /// No animation.
787             /// </summary>
788             /// <since_tizen> 3 </since_tizen>
789             /// This will be deprecated
790             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
791             [EditorBrowsable(EditorBrowsableState.Never)]
792             None,
793             /// <summary>
794             /// Popup zooms in and out animating the scale property.
795             /// </summary>
796             /// <since_tizen> 3 </since_tizen>
797             /// This will be deprecated
798             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
799             [EditorBrowsable(EditorBrowsableState.Never)]
800             Zoom,
801             /// <summary>
802             /// Popup fades in and out
803             /// </summary>
804             /// <since_tizen> 3 </since_tizen>
805             /// This will be deprecated
806             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
807             [EditorBrowsable(EditorBrowsableState.Never)]
808             Fade,
809             /// <summary>
810             /// Use the EntryAnimation and ExitAnimation animation properties.
811             /// </summary>
812             /// <since_tizen> 3 </since_tizen>
813             /// This will be deprecated
814             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
815             [EditorBrowsable(EditorBrowsableState.Never)]
816             Custom
817         }
818
819         /// <summary>
820         /// The types of the contextual layout.<br />
821         /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
822         /// NON_CONTEXTUAL disables any contextual positioning.<br />
823         /// </summary>
824         /// <since_tizen> 3 </since_tizen>
825         /// This will be deprecated
826         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
827         [EditorBrowsable(EditorBrowsableState.Never)]
828         public enum ContextualModeType
829         {
830             /// <summary>
831             /// any contextual positioning
832             /// </summary>
833             /// <since_tizen> 3 </since_tizen>
834             /// This will be deprecated
835             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
836             [EditorBrowsable(EditorBrowsableState.Never)]
837             NonContextual,
838             /// <summary>
839             /// Above
840             /// </summary>
841             /// <since_tizen> 3 </since_tizen>
842             /// This will be deprecated
843             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
844             [EditorBrowsable(EditorBrowsableState.Never)]
845             Above,
846             /// <summary>
847             /// Rright
848             /// </summary>
849             /// <since_tizen> 3 </since_tizen>
850             /// This will be deprecated
851             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
852             [EditorBrowsable(EditorBrowsableState.Never)]
853             Rright,
854             /// <summary>
855             /// Below
856             /// </summary>
857             /// <since_tizen> 3 </since_tizen>
858             /// This will be deprecated
859             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
860             [EditorBrowsable(EditorBrowsableState.Never)]
861             Below,
862             /// <summary>
863             /// Left
864             /// </summary>
865             /// <since_tizen> 3 </since_tizen>
866             /// This will be deprecated
867             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
868             [EditorBrowsable(EditorBrowsableState.Never)]
869             Left
870         }
871
872         /// <summary>
873         /// The popup title.
874         /// </summary>
875         /// <since_tizen> 3 </since_tizen>
876         /// This will be deprecated
877         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
878         [EditorBrowsable(EditorBrowsableState.Never)]
879         public PropertyMap Title
880         {
881             get
882             {
883                 return (PropertyMap)GetValue(TitleProperty);
884             }
885             set
886             {
887                 SetValue(TitleProperty, value);
888             }
889         }
890
891         /// <summary>
892         /// The popup content.
893         /// </summary>
894         /// <since_tizen> 3 </since_tizen>
895         /// This will be deprecated
896         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
897         [EditorBrowsable(EditorBrowsableState.Never)]
898         public PropertyMap Content
899         {
900             get
901             {
902                 return (PropertyMap)GetValue(ContentProperty);
903             }
904             set
905             {
906                 SetValue(ContentProperty, value);
907             }
908         }
909
910         /// <summary>
911         /// The popup footer.
912         /// </summary>
913         /// <since_tizen> 3 </since_tizen>
914         /// This will be deprecated
915         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
916         [EditorBrowsable(EditorBrowsableState.Never)]
917         public PropertyMap Footer
918         {
919             get
920             {
921                 return (PropertyMap)GetValue(FooterProperty);
922             }
923             set
924             {
925                 SetValue(FooterProperty, value);
926             }
927         }
928
929         /// <summary>
930         /// The popup display state.
931         /// </summary>
932         /// <since_tizen> 3 </since_tizen>
933         /// This will be deprecated
934         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
935         [EditorBrowsable(EditorBrowsableState.Never)]
936         public DisplayStateType DisplayState
937         {
938             get
939             {
940                 return (DisplayStateType)GetValue(DisplayStateProperty);
941             }
942             set
943             {
944                 SetValue(DisplayStateProperty, value);
945             }
946         }
947
948         /// <summary>
949         /// The touch transparent.
950         /// </summary>
951         /// <since_tizen> 3 </since_tizen>
952         /// This will be deprecated
953         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
954         [EditorBrowsable(EditorBrowsableState.Never)]
955         public bool TouchTransparent
956         {
957             get
958             {
959                 return (bool)GetValue(TouchTransparentProperty);
960             }
961             set
962             {
963                 SetValue(TouchTransparentProperty, value);
964             }
965         }
966
967         /// <summary>
968         /// The popup tail visibility.
969         /// </summary>
970         /// <since_tizen> 3 </since_tizen>
971         /// This will be deprecated
972         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
973         [EditorBrowsable(EditorBrowsableState.Never)]
974         public bool TailVisibility
975         {
976             get
977             {
978                 return (bool)GetValue(TailVisibilityProperty);
979             }
980             set
981             {
982                 SetValue(TailVisibilityProperty, value);
983             }
984         }
985
986         /// <summary>
987         /// The popup tail position.
988         /// </summary>
989         /// <since_tizen> 3 </since_tizen>
990         /// This will be deprecated
991         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
992         [EditorBrowsable(EditorBrowsableState.Never)]
993         public Vector3 TailPosition
994         {
995             get
996             {
997                 return (Vector3)GetValue(TailPositionProperty);
998             }
999             set
1000             {
1001                 SetValue(TailPositionProperty, value);
1002             }
1003         }
1004
1005         /// <summary>
1006         /// The contextual mode.
1007         /// </summary>
1008         /// <since_tizen> 3 </since_tizen>
1009         /// This will be deprecated
1010         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1011         [EditorBrowsable(EditorBrowsableState.Never)]
1012         public ContextualModeType ContextualMode
1013         {
1014             get
1015             {
1016                 return (ContextualModeType)GetValue(ContextualModeProperty);
1017             }
1018             set
1019             {
1020                 SetValue(ContextualModeProperty, value);
1021             }
1022         }
1023
1024         /// <summary>
1025         /// The animation duration.
1026         /// </summary>
1027         /// <since_tizen> 3 </since_tizen>
1028         /// This will be deprecated
1029         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1030         [EditorBrowsable(EditorBrowsableState.Never)]
1031         public float AnimationDuration
1032         {
1033             get
1034             {
1035                 return (float)GetValue(AnimationDurationProperty);
1036             }
1037             set
1038             {
1039                 SetValue(AnimationDurationProperty, value);
1040             }
1041         }
1042
1043         /// <summary>
1044         /// The animation mode.
1045         /// </summary>
1046         /// <since_tizen> 3 </since_tizen>
1047         /// This will be deprecated
1048         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1049         [EditorBrowsable(EditorBrowsableState.Never)]
1050         public AnimationModeType AnimationMode
1051         {
1052             get
1053             {
1054                 return (AnimationModeType)GetValue(AnimationModeProperty);
1055             }
1056             set
1057             {
1058                 SetValue(AnimationModeProperty, value);
1059             }
1060         }
1061
1062         /// <summary>
1063         /// The entry animation.
1064         /// </summary>
1065         /// <since_tizen> 3 </since_tizen>
1066         /// This will be deprecated
1067         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1068         [EditorBrowsable(EditorBrowsableState.Never)]
1069         public PropertyMap EntryAnimation
1070         {
1071             get
1072             {
1073                 return (PropertyMap)GetValue(EntryAnimationProperty);
1074             }
1075             set
1076             {
1077                 SetValue(EntryAnimationProperty, value);
1078             }
1079         }
1080
1081         /// <summary>
1082         /// The exit animation.
1083         /// </summary>
1084         /// <since_tizen> 3 </since_tizen>
1085         /// This will be deprecated
1086         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1087         [EditorBrowsable(EditorBrowsableState.Never)]
1088         public PropertyMap ExitAnimation
1089         {
1090             get
1091             {
1092                 return (PropertyMap)GetValue(ExitAnimationProperty);
1093             }
1094             set
1095             {
1096                 SetValue(ExitAnimationProperty, value);
1097             }
1098         }
1099
1100         /// <summary>
1101         /// The auto hide delay.
1102         /// </summary>
1103         /// <since_tizen> 3 </since_tizen>
1104         /// This will be deprecated
1105         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1106         [EditorBrowsable(EditorBrowsableState.Never)]
1107         public int AutoHideDelay
1108         {
1109             get
1110             {
1111                 return (int)GetValue(AutoHideDelayProperty);
1112             }
1113             set
1114             {
1115                 SetValue(AutoHideDelayProperty, value);
1116             }
1117         }
1118
1119         /// <summary>
1120         /// The backing enabled.
1121         /// </summary>
1122         /// <since_tizen> 3 </since_tizen>
1123         /// This will be deprecated
1124         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1125         [EditorBrowsable(EditorBrowsableState.Never)]
1126         public bool BackingEnabled
1127         {
1128             get
1129             {
1130                 return (bool)GetValue(BackingEnabledProperty);
1131             }
1132             set
1133             {
1134                 SetValue(BackingEnabledProperty, value);
1135             }
1136         }
1137
1138         /// <summary>
1139         /// The backing color.
1140         /// </summary>
1141         /// <since_tizen> 3 </since_tizen>
1142         /// This will be deprecated
1143         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1144         [EditorBrowsable(EditorBrowsableState.Never)]
1145         public Vector4 BackingColor
1146         {
1147             get
1148             {
1149                 return (Vector4)GetValue(BackingColorProperty);
1150             }
1151             set
1152             {
1153                 SetValue(BackingColorProperty, value);
1154             }
1155         }
1156
1157         /// <summary>
1158         /// The background image.
1159         /// </summary>
1160         /// <since_tizen> 3 </since_tizen>
1161         /// This will be deprecated
1162         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1163         [EditorBrowsable(EditorBrowsableState.Never)]
1164         public string PopupBackgroundImage
1165         {
1166             get
1167             {
1168                 return (string)GetValue(PopupBackgroundImageProperty);
1169             }
1170             set
1171             {
1172                 SetValue(PopupBackgroundImageProperty, value);
1173             }
1174         }
1175
1176         /// <summary>
1177         /// The background border.
1178         /// </summary>
1179         /// <since_tizen> 3 </since_tizen>
1180         /// This will be deprecated
1181         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1182         [EditorBrowsable(EditorBrowsableState.Never)]
1183         public Rectangle PopupBackgroundBorder
1184         {
1185             get
1186             {
1187                 return (Rectangle)GetValue(PopupBackgroundBorderProperty);
1188             }
1189             set
1190             {
1191                 SetValue(PopupBackgroundBorderProperty, value);
1192             }
1193         }
1194
1195         /// <summary>
1196         /// The tail up image.
1197         /// </summary>
1198         /// <since_tizen> 3 </since_tizen>
1199         /// This will be deprecated
1200         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1201         [EditorBrowsable(EditorBrowsableState.Never)]
1202         public string TailUpImage
1203         {
1204             get
1205             {
1206                 return (string)GetValue(TailUpImageProperty);
1207             }
1208             set
1209             {
1210                 SetValue(TailUpImageProperty, value);
1211             }
1212         }
1213
1214         /// <summary>
1215         /// The tail down image.
1216         /// </summary>
1217         /// <since_tizen> 3 </since_tizen>
1218         /// This will be deprecated
1219         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1220         [EditorBrowsable(EditorBrowsableState.Never)]
1221         public string TailDownImage
1222         {
1223             get
1224             {
1225                 return (string)GetValue(TailDownImageProperty);
1226             }
1227             set
1228             {
1229                 SetValue(TailDownImageProperty, value);
1230             }
1231         }
1232
1233         /// <summary>
1234         /// The tail left image.
1235         /// </summary>
1236         /// <since_tizen> 3 </since_tizen>
1237         /// This will be deprecated
1238         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1239         [EditorBrowsable(EditorBrowsableState.Never)]
1240         public string TailLeftImage
1241         {
1242             get
1243             {
1244                 return (string)GetValue(TailLeftImageProperty);
1245             }
1246             set
1247             {
1248                 SetValue(TailLeftImageProperty, value);
1249             }
1250         }
1251
1252         /// <summary>
1253         /// The tail right image.
1254         /// </summary>
1255         /// <since_tizen> 3 </since_tizen>
1256         /// This will be deprecated
1257         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1258         [EditorBrowsable(EditorBrowsableState.Never)]
1259         public string TailRightImage
1260         {
1261             get
1262             {
1263                 return (string)GetValue(TailRightImageProperty);
1264             }
1265             set
1266             {
1267                 SetValue(TailRightImageProperty, value);
1268             }
1269         }
1270
1271         /// <summary>
1272         /// Sets the title for this popup.
1273         /// </summary>
1274         /// <param name="titleView">The actor to set the title.</param>
1275         /// <since_tizen> 3 </since_tizen>
1276         /// This will be deprecated
1277         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1278         [EditorBrowsable(EditorBrowsableState.Never)]
1279         public void SetTitle(View titleView)
1280         {
1281             Interop.Popup.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
1282             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1283         }
1284
1285         /// <summary>
1286         /// Sets the content actor.
1287         /// </summary>
1288         /// <param name="content">The actor to use.</param>
1289         /// <since_tizen> 3 </since_tizen>
1290         /// This will be deprecated
1291         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1292         [EditorBrowsable(EditorBrowsableState.Never)]
1293         public void SetContent(View content)
1294         {
1295             Interop.Popup.Popup_SetContent(swigCPtr, View.getCPtr(content));
1296             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1297         }
1298
1299         /// <summary>
1300         /// Sets the actor to use for the footer in this popup.
1301         /// </summary>
1302         /// <param name="footer">The footer actor to be added to this popup.</param>
1303         /// <since_tizen> 3 </since_tizen>
1304         /// This will be deprecated
1305         [EditorBrowsable(EditorBrowsableState.Never)]
1306         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1307         public void SetFooter(View footer)
1308         {
1309             Interop.Popup.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
1310             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1311         }
1312
1313         /// <summary>
1314         /// Sets the display state of popup.<br />
1315         /// There are 4 total display states.<br />
1316         /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
1317         /// <br />
1318         /// The other two states are getable, but not setable, and are there for consistency.<br />
1319         /// <br />
1320         /// | Value    | Setting the state              | Getting the state              |<br />
1321         /// |----------|--------------------------------|--------------------------------|<br />
1322         /// | SHOWN    | Show the popup                 | The popup is fully shown       |<br />
1323         /// | HIDDEN   | Hide the popup                 | The popup is fully hidden      |<br />
1324         /// | SHOWING  |                                | The popup is transitioning in  |<br />
1325         /// | HIDING   |                                | The popup is transitioning out |<br />
1326         /// <br />
1327         /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
1328         /// </summary>
1329         /// <param name="displayState">The desired display state to change to.</param>
1330         /// <since_tizen> 3 </since_tizen>
1331         /// This will be deprecated
1332         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1333         [EditorBrowsable(EditorBrowsableState.Never)]
1334         public void SetDisplayState(Popup.DisplayStateType displayState)
1335         {
1336             Interop.Popup.Popup_SetDisplayState(swigCPtr, (int)displayState);
1337             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1338         }
1339
1340         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
1341         {
1342             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1343         }
1344
1345         internal View GetTitle()
1346         {
1347             //to fix memory leak issue, match the handle count with native side.
1348             IntPtr cPtr = Interop.Popup.Popup_GetTitle(swigCPtr);
1349             View ret = this.GetInstanceSafely<View>(cPtr);
1350             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1351             return ret;
1352         }
1353
1354         internal View GetContent()
1355         {
1356             //to fix memory leak issue, match the handle count with native side.
1357             IntPtr cPtr = Interop.Popup.Popup_GetContent(swigCPtr);
1358             View ret = this.GetInstanceSafely<View>(cPtr);
1359             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1360             return ret;
1361         }
1362
1363         internal View GetFooter()
1364         {
1365             //to fix memory leak issue, match the handle count with native side.
1366             IntPtr cPtr = Interop.Popup.Popup_GetFooter(swigCPtr);
1367             View ret = this.GetInstanceSafely<View>(cPtr);
1368             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1369             return ret;
1370         }
1371
1372         internal Popup.DisplayStateType GetDisplayState()
1373         {
1374             Popup.DisplayStateType ret = (Popup.DisplayStateType)Interop.Popup.Popup_GetDisplayState(swigCPtr);
1375             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1376             return ret;
1377         }
1378
1379         internal VoidSignal OutsideTouchedSignal()
1380         {
1381             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_OutsideTouchedSignal(swigCPtr), false);
1382             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1383             return ret;
1384         }
1385
1386         internal VoidSignal ShowingSignal()
1387         {
1388             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShowingSignal(swigCPtr), false);
1389             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1390             return ret;
1391         }
1392
1393         internal VoidSignal ShownSignal()
1394         {
1395             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShownSignal(swigCPtr), false);
1396             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1397             return ret;
1398         }
1399
1400         internal VoidSignal HidingSignal()
1401         {
1402             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HidingSignal(swigCPtr), false);
1403             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1404             return ret;
1405         }
1406
1407         internal VoidSignal HiddenSignal()
1408         {
1409             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HiddenSignal(swigCPtr), false);
1410             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1411             return ret;
1412         }
1413
1414         /// <summary>
1415         /// Dispose.
1416         /// </summary>
1417         /// <param name="type">The dispose type</param>
1418         /// <since_tizen> 3 </since_tizen>
1419         /// This will be deprecated
1420         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1421         [EditorBrowsable(EditorBrowsableState.Never)]
1422         protected override void Dispose(DisposeTypes type)
1423         {
1424             if (disposed)
1425             {
1426                 return;
1427             }
1428
1429             //Release your own unmanaged resources here.
1430             //You should not access any managed member here except static instance.
1431             //because the execution order of Finalizes is non-deterministic.
1432             if (this != null)
1433             {
1434                 if (_popUpHiddenEventCallbackDelegate != null)
1435                 {
1436                     HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
1437                 }
1438
1439                 if (_popUpHidingEventCallbackDelegate != null)
1440                 {
1441                     HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
1442                 }
1443             }
1444
1445             if (_popUpShownEventCallbackDelegate != null)
1446             {
1447                 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
1448             }
1449
1450             if (_popUpShowingEventCallbackDelegate != null)
1451             {
1452                 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
1453             }
1454
1455             if (_popUpOutsideTouchedEventCallbackDelegate != null)
1456             {
1457                 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
1458             }
1459
1460             if (swigCPtr.Handle != global::System.IntPtr.Zero)
1461             {
1462                 if (swigCMemOwn)
1463                 {
1464                     swigCMemOwn = false;
1465                     Interop.Popup.delete_Popup(swigCPtr);
1466                 }
1467                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1468             }
1469
1470             base.Dispose(type);
1471         }
1472
1473         // Callback for Popup OutsideTouchedSignal
1474         private void OnOutsideTouched()
1475         {
1476             TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
1477
1478             if (_popUpOutsideTouchedEventHandler != null)
1479             {
1480                 //here we send all data to user event handlers
1481                 _popUpOutsideTouchedEventHandler(this, e);
1482             }
1483         }
1484
1485         // Callback for ShowingSignal
1486         private void OnShowing()
1487         {
1488             ShowingEventArgs e = new ShowingEventArgs();
1489
1490             if (_popUpShowingEventHandler != null)
1491             {
1492                 //here we send all data to user event handlers
1493                 _popUpShowingEventHandler(this, e);
1494             }
1495         }
1496
1497         // Callback for ShownSignal
1498         private void OnShown()
1499         {
1500             ShownEventArgs e = new ShownEventArgs();
1501
1502             if (_popUpShownEventHandler != null)
1503             {
1504                 //here we send all data to user event handlers
1505                 _popUpShownEventHandler(this, e);
1506             }
1507         }
1508
1509         // Callback for HidingSignal
1510         private void OnHiding()
1511         {
1512             HidingEventArgs e = new HidingEventArgs();
1513
1514             if (_popUpHidingEventHandler != null)
1515             {
1516                 //here we send all data to user event handlers
1517                 _popUpHidingEventHandler(this, e);
1518             }
1519         }
1520
1521         // Callback for HiddenSignal
1522         private void OnHidden()
1523         {
1524             HiddenEventArgs e = new HiddenEventArgs();
1525
1526             if (_popUpHiddenEventHandler != null)
1527             {
1528                 //here we send all data to user event handlers
1529                 _popUpHiddenEventHandler(this, e);
1530             }
1531         }
1532
1533         /// <summary>
1534         /// Event arguments that passed via the OutsideTouchedEvent.
1535         /// </summary>
1536         /// <since_tizen> 3 </since_tizen>
1537         /// This will be deprecated
1538         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1539         [EditorBrowsable(EditorBrowsableState.Never)]
1540         public class TouchedOutsideEventArgs : EventArgs
1541         {
1542         }
1543
1544         /// <summary>
1545         /// Event arguments that passed via the ShowingEventArgs.
1546         /// </summary>
1547         /// <since_tizen> 3 </since_tizen>
1548         /// This will be deprecated
1549         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1550         [EditorBrowsable(EditorBrowsableState.Never)]
1551         public class ShowingEventArgs : EventArgs
1552         {
1553         }
1554
1555         /// <summary>
1556         /// Event arguments that passed via the ShownEventArgs.
1557         /// </summary>
1558         /// <since_tizen> 3 </since_tizen>
1559         /// This will be deprecated
1560         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1561         [EditorBrowsable(EditorBrowsableState.Never)]
1562         public class ShownEventArgs : EventArgs
1563         {
1564         }
1565
1566         /// <summary>
1567         /// Event arguments that passed via the HidingEventArgs.
1568         /// </summary>
1569         /// <since_tizen> 3 </since_tizen>
1570         /// This will be deprecated
1571         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1572         [EditorBrowsable(EditorBrowsableState.Never)]
1573         public class HidingEventArgs : EventArgs
1574         {
1575         }
1576
1577         /// <summary>
1578         /// Event arguments that passed via the HiddenEventArgs.
1579         /// </summary>
1580         /// <since_tizen> 3 </since_tizen>
1581         /// This will be deprecated
1582         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1583         [EditorBrowsable(EditorBrowsableState.Never)]
1584         public class HiddenEventArgs : EventArgs
1585         {
1586         }
1587
1588         internal new class Property
1589         {
1590             internal static readonly int TITLE = Interop.Popup.Popup_Property_TITLE_get();
1591             internal static readonly int CONTENT = Interop.Popup.Popup_Property_CONTENT_get();
1592             internal static readonly int FOOTER = Interop.Popup.Popup_Property_FOOTER_get();
1593             internal static readonly int DISPLAY_STATE = Interop.Popup.Popup_Property_DISPLAY_STATE_get();
1594             internal static readonly int TOUCH_TRANSPARENT = Interop.Popup.Popup_Property_TOUCH_TRANSPARENT_get();
1595             internal static readonly int TAIL_VISIBILITY = Interop.Popup.Popup_Property_TAIL_VISIBILITY_get();
1596             internal static readonly int TAIL_POSITION = Interop.Popup.Popup_Property_TAIL_POSITION_get();
1597             internal static readonly int CONTEXTUAL_MODE = Interop.Popup.Popup_Property_CONTEXTUAL_MODE_get();
1598             internal static readonly int ANIMATION_DURATION = Interop.Popup.Popup_Property_ANIMATION_DURATION_get();
1599             internal static readonly int ANIMATION_MODE = Interop.Popup.Popup_Property_ANIMATION_MODE_get();
1600             internal static readonly int ENTRY_ANIMATION = Interop.Popup.Popup_Property_ENTRY_ANIMATION_get();
1601             internal static readonly int EXIT_ANIMATION = Interop.Popup.Popup_Property_EXIT_ANIMATION_get();
1602             internal static readonly int AUTO_HIDE_DELAY = Interop.Popup.Popup_Property_AUTO_HIDE_DELAY_get();
1603             internal static readonly int BACKING_ENABLED = Interop.Popup.Popup_Property_BACKING_ENABLED_get();
1604             internal static readonly int BACKING_COLOR = Interop.Popup.Popup_Property_BACKING_COLOR_get();
1605             internal static readonly int POPUP_BACKGROUND_IMAGE = Interop.Popup.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
1606             internal static readonly int POPUP_BACKGROUND_BORDER = Interop.Popup.Popup_Property_POPUP_BACKGROUND_BORDER_get();
1607             internal static readonly int TAIL_UP_IMAGE = Interop.Popup.Popup_Property_TAIL_UP_IMAGE_get();
1608             internal static readonly int TAIL_DOWN_IMAGE = Interop.Popup.Popup_Property_TAIL_DOWN_IMAGE_get();
1609             internal static readonly int TAIL_LEFT_IMAGE = Interop.Popup.Popup_Property_TAIL_LEFT_IMAGE_get();
1610             internal static readonly int TAIL_RIGHT_IMAGE = Interop.Popup.Popup_Property_TAIL_RIGHT_IMAGE_get();
1611         }
1612     }
1613 }