[NUI] Refactor dispose pattern to reduce duplication (#1112)
[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 EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
553         private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
554         private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
555         private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
556         private EventHandler<ShownEventArgs> _popUpShownEventHandler;
557         private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
558         private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
559         private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
560         private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
561         private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
562
563         /// <summary>
564         /// Creates the popup.
565         /// </summary>
566         /// <since_tizen> 3 </since_tizen>
567         /// This will be deprecated
568         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
569         [EditorBrowsable(EditorBrowsableState.Never)]
570         public Popup() : this(Interop.Popup.Popup_New(), true)
571         {
572             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573         }
574
575         internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Popup.Popup_SWIGUpcast(cPtr), cMemoryOwn)
576         {
577         }
578
579         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
580         private delegate void OutsideTouchedEventCallbackDelegate();
581         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
582         private delegate void ShowingEventCallbackDelegate();
583         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
584         private delegate void ShownEventCallbackDelegate();
585         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
586         private delegate void HidingEventCallbackDelegate();
587         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
588         private delegate void HiddenEventCallbackDelegate();
589
590         /// <summary>
591         /// An event is sent when the user has touched outside the dialog.
592         /// </summary>
593         /// <since_tizen> 3 </since_tizen>
594         /// This will be deprecated
595         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
596         [EditorBrowsable(EditorBrowsableState.Never)]
597         public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
598         {
599             add
600             {
601                 if (_popUpOutsideTouchedEventHandler == null)
602                 {
603                     _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
604                     OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
605                 }
606                 _popUpOutsideTouchedEventHandler += value;
607             }
608             remove
609             {
610                 _popUpOutsideTouchedEventHandler -= value;
611                 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
612                 {
613                     this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
614                 }
615             }
616         }
617
618         /// <summary>
619         /// An event is sent when the popup starts showing.
620         /// </summary>
621         /// <since_tizen> 3 </since_tizen>
622         /// This will be deprecated
623         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
624         [EditorBrowsable(EditorBrowsableState.Never)]
625         public event EventHandler<ShowingEventArgs> Showing
626         {
627             add
628             {
629                 if (_popUpShowingEventHandler == null)
630                 {
631                     _popUpShowingEventCallbackDelegate = (OnShowing);
632                     ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
633                 }
634                 _popUpShowingEventHandler += value;
635             }
636             remove
637             {
638                 _popUpShowingEventHandler -= value;
639                 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
640                 {
641                     ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
642                 }
643             }
644         }
645
646         /// <summary>
647         /// An event is sent when the popup has been fully displayed.
648         /// </summary>
649         /// <since_tizen> 3 </since_tizen>
650         /// This will be deprecated
651         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
652         [EditorBrowsable(EditorBrowsableState.Never)]
653         public event EventHandler<ShownEventArgs> Shown
654         {
655             add
656             {
657                 if (_popUpShownEventHandler == null)
658                 {
659                     _popUpShownEventCallbackDelegate = (OnShown);
660                     ShownSignal().Connect(_popUpShownEventCallbackDelegate);
661                 }
662                 _popUpShownEventHandler += value;
663             }
664             remove
665             {
666                 _popUpShownEventHandler -= value;
667                 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
668                 {
669                     ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
670                 }
671             }
672         }
673
674         /// <summary>
675         /// An event is sent when the popup starts to hide.
676         /// </summary>
677         /// <since_tizen> 3 </since_tizen>
678         /// This will be deprecated
679         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
680         [EditorBrowsable(EditorBrowsableState.Never)]
681         public event EventHandler<HidingEventArgs> Hiding
682         {
683             add
684             {
685                 if (_popUpHidingEventHandler == null)
686                 {
687                     _popUpHidingEventCallbackDelegate = (OnHiding);
688                     HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
689                 }
690                 _popUpHidingEventHandler += value;
691             }
692             remove
693             {
694                 _popUpHidingEventHandler -= value;
695                 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
696                 {
697                     HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
698                 }
699             }
700         }
701
702         /// <summary>
703         /// An event is sent when the popup has been completely hidden.
704         /// </summary>
705         /// <since_tizen> 3 </since_tizen>
706         /// This will be deprecated
707         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
708         [EditorBrowsable(EditorBrowsableState.Never)]
709         public event EventHandler<HiddenEventArgs> Hidden
710         {
711             add
712             {
713                 if (_popUpHiddenEventHandler == null)
714                 {
715                     _popUpHiddenEventCallbackDelegate = (OnHidden);
716                     HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
717                 }
718                 _popUpHiddenEventHandler += value;
719             }
720             remove
721             {
722                 _popUpHiddenEventHandler -= value;
723                 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
724                 {
725                     HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
726                 }
727             }
728         }
729
730         /// <summary>
731         /// The display states of the popup.
732         /// </summary>
733         /// <since_tizen> 3 </since_tizen>
734         /// This will be deprecated
735         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
736         [EditorBrowsable(EditorBrowsableState.Never)]
737         public enum DisplayStateType
738         {
739             /// <summary>
740             /// The popup is transitioning in
741             /// </summary>
742             /// <since_tizen> 3 </since_tizen>
743             /// This will be deprecated
744             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
745             [EditorBrowsable(EditorBrowsableState.Never)]
746             Showing,
747             /// <summary>
748             /// The popup is fully shown
749             /// </summary>
750             /// <since_tizen> 3 </since_tizen>
751             /// This will be deprecated
752             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
753             [EditorBrowsable(EditorBrowsableState.Never)]
754             Shown,
755             /// <summary>
756             /// The popup is transitioning out
757             /// </summary>
758             /// <since_tizen> 3 </since_tizen>
759             /// This will be deprecated
760             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
761             [EditorBrowsable(EditorBrowsableState.Never)]
762             Hiding,
763             /// <summary>
764             /// The popup is fully hidden
765             /// </summary>
766             /// <since_tizen> 3 </since_tizen>
767             /// This will be deprecated
768             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
769             [EditorBrowsable(EditorBrowsableState.Never)]
770             Hidden
771         }
772
773         /// <summary>
774         /// The animation modes within the popup.<br />
775         /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
776         /// </summary>
777         /// <since_tizen> 3 </since_tizen>
778         /// This will be deprecated
779         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
780         [EditorBrowsable(EditorBrowsableState.Never)]
781         public enum AnimationModeType
782         {
783             /// <summary>
784             /// No animation.
785             /// </summary>
786             /// <since_tizen> 3 </since_tizen>
787             /// This will be deprecated
788             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
789             [EditorBrowsable(EditorBrowsableState.Never)]
790             None,
791             /// <summary>
792             /// Popup zooms in and out animating the scale property.
793             /// </summary>
794             /// <since_tizen> 3 </since_tizen>
795             /// This will be deprecated
796             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
797             [EditorBrowsable(EditorBrowsableState.Never)]
798             Zoom,
799             /// <summary>
800             /// Popup fades in and out
801             /// </summary>
802             /// <since_tizen> 3 </since_tizen>
803             /// This will be deprecated
804             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
805             [EditorBrowsable(EditorBrowsableState.Never)]
806             Fade,
807             /// <summary>
808             /// Use the EntryAnimation and ExitAnimation animation properties.
809             /// </summary>
810             /// <since_tizen> 3 </since_tizen>
811             /// This will be deprecated
812             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
813             [EditorBrowsable(EditorBrowsableState.Never)]
814             Custom
815         }
816
817         /// <summary>
818         /// The types of the contextual layout.<br />
819         /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
820         /// NON_CONTEXTUAL disables any contextual positioning.<br />
821         /// </summary>
822         /// <since_tizen> 3 </since_tizen>
823         /// This will be deprecated
824         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
825         [EditorBrowsable(EditorBrowsableState.Never)]
826         public enum ContextualModeType
827         {
828             /// <summary>
829             /// any contextual positioning
830             /// </summary>
831             /// <since_tizen> 3 </since_tizen>
832             /// This will be deprecated
833             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
834             [EditorBrowsable(EditorBrowsableState.Never)]
835             NonContextual,
836             /// <summary>
837             /// Above
838             /// </summary>
839             /// <since_tizen> 3 </since_tizen>
840             /// This will be deprecated
841             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
842             [EditorBrowsable(EditorBrowsableState.Never)]
843             Above,
844             /// <summary>
845             /// Rright
846             /// </summary>
847             /// <since_tizen> 3 </since_tizen>
848             /// This will be deprecated
849             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
850             [EditorBrowsable(EditorBrowsableState.Never)]
851             Rright,
852             /// <summary>
853             /// Below
854             /// </summary>
855             /// <since_tizen> 3 </since_tizen>
856             /// This will be deprecated
857             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
858             [EditorBrowsable(EditorBrowsableState.Never)]
859             Below,
860             /// <summary>
861             /// Left
862             /// </summary>
863             /// <since_tizen> 3 </since_tizen>
864             /// This will be deprecated
865             [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
866             [EditorBrowsable(EditorBrowsableState.Never)]
867             Left
868         }
869
870         /// <summary>
871         /// The popup title.
872         /// </summary>
873         /// <since_tizen> 3 </since_tizen>
874         /// This will be deprecated
875         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
876         [EditorBrowsable(EditorBrowsableState.Never)]
877         public PropertyMap Title
878         {
879             get
880             {
881                 return (PropertyMap)GetValue(TitleProperty);
882             }
883             set
884             {
885                 SetValue(TitleProperty, value);
886             }
887         }
888
889         /// <summary>
890         /// The popup content.
891         /// </summary>
892         /// <since_tizen> 3 </since_tizen>
893         /// This will be deprecated
894         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
895         [EditorBrowsable(EditorBrowsableState.Never)]
896         public PropertyMap Content
897         {
898             get
899             {
900                 return (PropertyMap)GetValue(ContentProperty);
901             }
902             set
903             {
904                 SetValue(ContentProperty, value);
905             }
906         }
907
908         /// <summary>
909         /// The popup footer.
910         /// </summary>
911         /// <since_tizen> 3 </since_tizen>
912         /// This will be deprecated
913         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
914         [EditorBrowsable(EditorBrowsableState.Never)]
915         public PropertyMap Footer
916         {
917             get
918             {
919                 return (PropertyMap)GetValue(FooterProperty);
920             }
921             set
922             {
923                 SetValue(FooterProperty, value);
924             }
925         }
926
927         /// <summary>
928         /// The popup display state.
929         /// </summary>
930         /// <since_tizen> 3 </since_tizen>
931         /// This will be deprecated
932         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
933         [EditorBrowsable(EditorBrowsableState.Never)]
934         public DisplayStateType DisplayState
935         {
936             get
937             {
938                 return (DisplayStateType)GetValue(DisplayStateProperty);
939             }
940             set
941             {
942                 SetValue(DisplayStateProperty, value);
943             }
944         }
945
946         /// <summary>
947         /// The touch transparent.
948         /// </summary>
949         /// <since_tizen> 3 </since_tizen>
950         /// This will be deprecated
951         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
952         [EditorBrowsable(EditorBrowsableState.Never)]
953         public bool TouchTransparent
954         {
955             get
956             {
957                 return (bool)GetValue(TouchTransparentProperty);
958             }
959             set
960             {
961                 SetValue(TouchTransparentProperty, value);
962             }
963         }
964
965         /// <summary>
966         /// The popup tail visibility.
967         /// </summary>
968         /// <since_tizen> 3 </since_tizen>
969         /// This will be deprecated
970         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
971         [EditorBrowsable(EditorBrowsableState.Never)]
972         public bool TailVisibility
973         {
974             get
975             {
976                 return (bool)GetValue(TailVisibilityProperty);
977             }
978             set
979             {
980                 SetValue(TailVisibilityProperty, value);
981             }
982         }
983
984         /// <summary>
985         /// The popup tail position.
986         /// </summary>
987         /// <since_tizen> 3 </since_tizen>
988         /// This will be deprecated
989         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
990         [EditorBrowsable(EditorBrowsableState.Never)]
991         public Vector3 TailPosition
992         {
993             get
994             {
995                 return (Vector3)GetValue(TailPositionProperty);
996             }
997             set
998             {
999                 SetValue(TailPositionProperty, value);
1000             }
1001         }
1002
1003         /// <summary>
1004         /// The contextual mode.
1005         /// </summary>
1006         /// <since_tizen> 3 </since_tizen>
1007         /// This will be deprecated
1008         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1009         [EditorBrowsable(EditorBrowsableState.Never)]
1010         public ContextualModeType ContextualMode
1011         {
1012             get
1013             {
1014                 return (ContextualModeType)GetValue(ContextualModeProperty);
1015             }
1016             set
1017             {
1018                 SetValue(ContextualModeProperty, value);
1019             }
1020         }
1021
1022         /// <summary>
1023         /// The animation duration.
1024         /// </summary>
1025         /// <since_tizen> 3 </since_tizen>
1026         /// This will be deprecated
1027         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1028         [EditorBrowsable(EditorBrowsableState.Never)]
1029         public float AnimationDuration
1030         {
1031             get
1032             {
1033                 return (float)GetValue(AnimationDurationProperty);
1034             }
1035             set
1036             {
1037                 SetValue(AnimationDurationProperty, value);
1038             }
1039         }
1040
1041         /// <summary>
1042         /// The animation mode.
1043         /// </summary>
1044         /// <since_tizen> 3 </since_tizen>
1045         /// This will be deprecated
1046         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1047         [EditorBrowsable(EditorBrowsableState.Never)]
1048         public AnimationModeType AnimationMode
1049         {
1050             get
1051             {
1052                 return (AnimationModeType)GetValue(AnimationModeProperty);
1053             }
1054             set
1055             {
1056                 SetValue(AnimationModeProperty, value);
1057             }
1058         }
1059
1060         /// <summary>
1061         /// The entry animation.
1062         /// </summary>
1063         /// <since_tizen> 3 </since_tizen>
1064         /// This will be deprecated
1065         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1066         [EditorBrowsable(EditorBrowsableState.Never)]
1067         public PropertyMap EntryAnimation
1068         {
1069             get
1070             {
1071                 return (PropertyMap)GetValue(EntryAnimationProperty);
1072             }
1073             set
1074             {
1075                 SetValue(EntryAnimationProperty, value);
1076             }
1077         }
1078
1079         /// <summary>
1080         /// The exit animation.
1081         /// </summary>
1082         /// <since_tizen> 3 </since_tizen>
1083         /// This will be deprecated
1084         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1085         [EditorBrowsable(EditorBrowsableState.Never)]
1086         public PropertyMap ExitAnimation
1087         {
1088             get
1089             {
1090                 return (PropertyMap)GetValue(ExitAnimationProperty);
1091             }
1092             set
1093             {
1094                 SetValue(ExitAnimationProperty, value);
1095             }
1096         }
1097
1098         /// <summary>
1099         /// The auto hide delay.
1100         /// </summary>
1101         /// <since_tizen> 3 </since_tizen>
1102         /// This will be deprecated
1103         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1104         [EditorBrowsable(EditorBrowsableState.Never)]
1105         public int AutoHideDelay
1106         {
1107             get
1108             {
1109                 return (int)GetValue(AutoHideDelayProperty);
1110             }
1111             set
1112             {
1113                 SetValue(AutoHideDelayProperty, value);
1114             }
1115         }
1116
1117         /// <summary>
1118         /// The backing enabled.
1119         /// </summary>
1120         /// <since_tizen> 3 </since_tizen>
1121         /// This will be deprecated
1122         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1123         [EditorBrowsable(EditorBrowsableState.Never)]
1124         public bool BackingEnabled
1125         {
1126             get
1127             {
1128                 return (bool)GetValue(BackingEnabledProperty);
1129             }
1130             set
1131             {
1132                 SetValue(BackingEnabledProperty, value);
1133             }
1134         }
1135
1136         /// <summary>
1137         /// The backing color.
1138         /// </summary>
1139         /// <since_tizen> 3 </since_tizen>
1140         /// This will be deprecated
1141         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1142         [EditorBrowsable(EditorBrowsableState.Never)]
1143         public Vector4 BackingColor
1144         {
1145             get
1146             {
1147                 return (Vector4)GetValue(BackingColorProperty);
1148             }
1149             set
1150             {
1151                 SetValue(BackingColorProperty, value);
1152             }
1153         }
1154
1155         /// <summary>
1156         /// The background image.
1157         /// </summary>
1158         /// <since_tizen> 3 </since_tizen>
1159         /// This will be deprecated
1160         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1161         [EditorBrowsable(EditorBrowsableState.Never)]
1162         public string PopupBackgroundImage
1163         {
1164             get
1165             {
1166                 return (string)GetValue(PopupBackgroundImageProperty);
1167             }
1168             set
1169             {
1170                 SetValue(PopupBackgroundImageProperty, value);
1171             }
1172         }
1173
1174         /// <summary>
1175         /// The background border.
1176         /// </summary>
1177         /// <since_tizen> 3 </since_tizen>
1178         /// This will be deprecated
1179         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1180         [EditorBrowsable(EditorBrowsableState.Never)]
1181         public Rectangle PopupBackgroundBorder
1182         {
1183             get
1184             {
1185                 return (Rectangle)GetValue(PopupBackgroundBorderProperty);
1186             }
1187             set
1188             {
1189                 SetValue(PopupBackgroundBorderProperty, value);
1190             }
1191         }
1192
1193         /// <summary>
1194         /// The tail up image.
1195         /// </summary>
1196         /// <since_tizen> 3 </since_tizen>
1197         /// This will be deprecated
1198         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1199         [EditorBrowsable(EditorBrowsableState.Never)]
1200         public string TailUpImage
1201         {
1202             get
1203             {
1204                 return (string)GetValue(TailUpImageProperty);
1205             }
1206             set
1207             {
1208                 SetValue(TailUpImageProperty, value);
1209             }
1210         }
1211
1212         /// <summary>
1213         /// The tail down image.
1214         /// </summary>
1215         /// <since_tizen> 3 </since_tizen>
1216         /// This will be deprecated
1217         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1218         [EditorBrowsable(EditorBrowsableState.Never)]
1219         public string TailDownImage
1220         {
1221             get
1222             {
1223                 return (string)GetValue(TailDownImageProperty);
1224             }
1225             set
1226             {
1227                 SetValue(TailDownImageProperty, value);
1228             }
1229         }
1230
1231         /// <summary>
1232         /// The tail left image.
1233         /// </summary>
1234         /// <since_tizen> 3 </since_tizen>
1235         /// This will be deprecated
1236         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1237         [EditorBrowsable(EditorBrowsableState.Never)]
1238         public string TailLeftImage
1239         {
1240             get
1241             {
1242                 return (string)GetValue(TailLeftImageProperty);
1243             }
1244             set
1245             {
1246                 SetValue(TailLeftImageProperty, value);
1247             }
1248         }
1249
1250         /// <summary>
1251         /// The tail right image.
1252         /// </summary>
1253         /// <since_tizen> 3 </since_tizen>
1254         /// This will be deprecated
1255         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1256         [EditorBrowsable(EditorBrowsableState.Never)]
1257         public string TailRightImage
1258         {
1259             get
1260             {
1261                 return (string)GetValue(TailRightImageProperty);
1262             }
1263             set
1264             {
1265                 SetValue(TailRightImageProperty, value);
1266             }
1267         }
1268
1269         /// <summary>
1270         /// Sets the title for this popup.
1271         /// </summary>
1272         /// <param name="titleView">The actor to set the title.</param>
1273         /// <since_tizen> 3 </since_tizen>
1274         /// This will be deprecated
1275         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1276         [EditorBrowsable(EditorBrowsableState.Never)]
1277         public void SetTitle(View titleView)
1278         {
1279             Interop.Popup.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
1280             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1281         }
1282
1283         /// <summary>
1284         /// Sets the content actor.
1285         /// </summary>
1286         /// <param name="content">The actor to use.</param>
1287         /// <since_tizen> 3 </since_tizen>
1288         /// This will be deprecated
1289         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1290         [EditorBrowsable(EditorBrowsableState.Never)]
1291         public void SetContent(View content)
1292         {
1293             Interop.Popup.Popup_SetContent(swigCPtr, View.getCPtr(content));
1294             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1295         }
1296
1297         /// <summary>
1298         /// Sets the actor to use for the footer in this popup.
1299         /// </summary>
1300         /// <param name="footer">The footer actor to be added to this popup.</param>
1301         /// <since_tizen> 3 </since_tizen>
1302         /// This will be deprecated
1303         [EditorBrowsable(EditorBrowsableState.Never)]
1304         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1305         public void SetFooter(View footer)
1306         {
1307             Interop.Popup.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
1308             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1309         }
1310
1311         /// <summary>
1312         /// Sets the display state of popup.<br />
1313         /// There are 4 total display states.<br />
1314         /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
1315         /// <br />
1316         /// The other two states are getable, but not setable, and are there for consistency.<br />
1317         /// <br />
1318         /// | Value    | Setting the state              | Getting the state              |<br />
1319         /// |----------|--------------------------------|--------------------------------|<br />
1320         /// | SHOWN    | Show the popup                 | The popup is fully shown       |<br />
1321         /// | HIDDEN   | Hide the popup                 | The popup is fully hidden      |<br />
1322         /// | SHOWING  |                                | The popup is transitioning in  |<br />
1323         /// | HIDING   |                                | The popup is transitioning out |<br />
1324         /// <br />
1325         /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
1326         /// </summary>
1327         /// <param name="displayState">The desired display state to change to.</param>
1328         /// <since_tizen> 3 </since_tizen>
1329         /// This will be deprecated
1330         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1331         [EditorBrowsable(EditorBrowsableState.Never)]
1332         public void SetDisplayState(Popup.DisplayStateType displayState)
1333         {
1334             Interop.Popup.Popup_SetDisplayState(swigCPtr, (int)displayState);
1335             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1336         }
1337
1338         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
1339         {
1340             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1341         }
1342
1343         internal View GetTitle()
1344         {
1345             //to fix memory leak issue, match the handle count with native side.
1346             IntPtr cPtr = Interop.Popup.Popup_GetTitle(swigCPtr);
1347             View ret = this.GetInstanceSafely<View>(cPtr);
1348             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1349             return ret;
1350         }
1351
1352         internal View GetContent()
1353         {
1354             //to fix memory leak issue, match the handle count with native side.
1355             IntPtr cPtr = Interop.Popup.Popup_GetContent(swigCPtr);
1356             View ret = this.GetInstanceSafely<View>(cPtr);
1357             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1358             return ret;
1359         }
1360
1361         internal View GetFooter()
1362         {
1363             //to fix memory leak issue, match the handle count with native side.
1364             IntPtr cPtr = Interop.Popup.Popup_GetFooter(swigCPtr);
1365             View ret = this.GetInstanceSafely<View>(cPtr);
1366             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1367             return ret;
1368         }
1369
1370         internal Popup.DisplayStateType GetDisplayState()
1371         {
1372             Popup.DisplayStateType ret = (Popup.DisplayStateType)Interop.Popup.Popup_GetDisplayState(swigCPtr);
1373             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1374             return ret;
1375         }
1376
1377         internal VoidSignal OutsideTouchedSignal()
1378         {
1379             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_OutsideTouchedSignal(swigCPtr), false);
1380             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1381             return ret;
1382         }
1383
1384         internal VoidSignal ShowingSignal()
1385         {
1386             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShowingSignal(swigCPtr), false);
1387             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1388             return ret;
1389         }
1390
1391         internal VoidSignal ShownSignal()
1392         {
1393             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShownSignal(swigCPtr), false);
1394             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1395             return ret;
1396         }
1397
1398         internal VoidSignal HidingSignal()
1399         {
1400             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HidingSignal(swigCPtr), false);
1401             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1402             return ret;
1403         }
1404
1405         internal VoidSignal HiddenSignal()
1406         {
1407             VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HiddenSignal(swigCPtr), false);
1408             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1409             return ret;
1410         }
1411
1412         /// <summary>
1413         /// Dispose.
1414         /// </summary>
1415         /// <param name="type">The dispose type</param>
1416         /// <since_tizen> 3 </since_tizen>
1417         /// This will be deprecated
1418         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1419         [EditorBrowsable(EditorBrowsableState.Never)]
1420         protected override void Dispose(DisposeTypes type)
1421         {
1422             if (disposed)
1423             {
1424                 return;
1425             }
1426
1427             //Release your own unmanaged resources here.
1428             //You should not access any managed member here except static instance.
1429             //because the execution order of Finalizes is non-deterministic.
1430             if (this != null)
1431             {
1432                 if (_popUpHiddenEventCallbackDelegate != null)
1433                 {
1434                     HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
1435                 }
1436
1437                 if (_popUpHidingEventCallbackDelegate != null)
1438                 {
1439                     HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
1440                 }
1441             }
1442
1443             if (_popUpShownEventCallbackDelegate != null)
1444             {
1445                 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
1446             }
1447
1448             if (_popUpShowingEventCallbackDelegate != null)
1449             {
1450                 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
1451             }
1452
1453             if (_popUpOutsideTouchedEventCallbackDelegate != null)
1454             {
1455                 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
1456             }
1457
1458             base.Dispose(type);
1459         }
1460
1461         /// This will not be public opened.
1462         [EditorBrowsable(EditorBrowsableState.Never)]
1463         protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
1464         {
1465             Interop.Popup.delete_Popup(swigCPtr);
1466         }
1467
1468         // Callback for Popup OutsideTouchedSignal
1469         private void OnOutsideTouched()
1470         {
1471             TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
1472
1473             if (_popUpOutsideTouchedEventHandler != null)
1474             {
1475                 //here we send all data to user event handlers
1476                 _popUpOutsideTouchedEventHandler(this, e);
1477             }
1478         }
1479
1480         // Callback for ShowingSignal
1481         private void OnShowing()
1482         {
1483             ShowingEventArgs e = new ShowingEventArgs();
1484
1485             if (_popUpShowingEventHandler != null)
1486             {
1487                 //here we send all data to user event handlers
1488                 _popUpShowingEventHandler(this, e);
1489             }
1490         }
1491
1492         // Callback for ShownSignal
1493         private void OnShown()
1494         {
1495             ShownEventArgs e = new ShownEventArgs();
1496
1497             if (_popUpShownEventHandler != null)
1498             {
1499                 //here we send all data to user event handlers
1500                 _popUpShownEventHandler(this, e);
1501             }
1502         }
1503
1504         // Callback for HidingSignal
1505         private void OnHiding()
1506         {
1507             HidingEventArgs e = new HidingEventArgs();
1508
1509             if (_popUpHidingEventHandler != null)
1510             {
1511                 //here we send all data to user event handlers
1512                 _popUpHidingEventHandler(this, e);
1513             }
1514         }
1515
1516         // Callback for HiddenSignal
1517         private void OnHidden()
1518         {
1519             HiddenEventArgs e = new HiddenEventArgs();
1520
1521             if (_popUpHiddenEventHandler != null)
1522             {
1523                 //here we send all data to user event handlers
1524                 _popUpHiddenEventHandler(this, e);
1525             }
1526         }
1527
1528         /// <summary>
1529         /// Event arguments that passed via the OutsideTouchedEvent.
1530         /// </summary>
1531         /// <since_tizen> 3 </since_tizen>
1532         /// This will be deprecated
1533         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1534         [EditorBrowsable(EditorBrowsableState.Never)]
1535         public class TouchedOutsideEventArgs : EventArgs
1536         {
1537         }
1538
1539         /// <summary>
1540         /// Event arguments that passed via the ShowingEventArgs.
1541         /// </summary>
1542         /// <since_tizen> 3 </since_tizen>
1543         /// This will be deprecated
1544         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1545         [EditorBrowsable(EditorBrowsableState.Never)]
1546         public class ShowingEventArgs : EventArgs
1547         {
1548         }
1549
1550         /// <summary>
1551         /// Event arguments that passed via the ShownEventArgs.
1552         /// </summary>
1553         /// <since_tizen> 3 </since_tizen>
1554         /// This will be deprecated
1555         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1556         [EditorBrowsable(EditorBrowsableState.Never)]
1557         public class ShownEventArgs : EventArgs
1558         {
1559         }
1560
1561         /// <summary>
1562         /// Event arguments that passed via the HidingEventArgs.
1563         /// </summary>
1564         /// <since_tizen> 3 </since_tizen>
1565         /// This will be deprecated
1566         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1567         [EditorBrowsable(EditorBrowsableState.Never)]
1568         public class HidingEventArgs : EventArgs
1569         {
1570         }
1571
1572         /// <summary>
1573         /// Event arguments that passed via the HiddenEventArgs.
1574         /// </summary>
1575         /// <since_tizen> 3 </since_tizen>
1576         /// This will be deprecated
1577         [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1578         [EditorBrowsable(EditorBrowsableState.Never)]
1579         public class HiddenEventArgs : EventArgs
1580         {
1581         }
1582
1583         internal new class Property
1584         {
1585             internal static readonly int TITLE = Interop.Popup.Popup_Property_TITLE_get();
1586             internal static readonly int CONTENT = Interop.Popup.Popup_Property_CONTENT_get();
1587             internal static readonly int FOOTER = Interop.Popup.Popup_Property_FOOTER_get();
1588             internal static readonly int DISPLAY_STATE = Interop.Popup.Popup_Property_DISPLAY_STATE_get();
1589             internal static readonly int TOUCH_TRANSPARENT = Interop.Popup.Popup_Property_TOUCH_TRANSPARENT_get();
1590             internal static readonly int TAIL_VISIBILITY = Interop.Popup.Popup_Property_TAIL_VISIBILITY_get();
1591             internal static readonly int TAIL_POSITION = Interop.Popup.Popup_Property_TAIL_POSITION_get();
1592             internal static readonly int CONTEXTUAL_MODE = Interop.Popup.Popup_Property_CONTEXTUAL_MODE_get();
1593             internal static readonly int ANIMATION_DURATION = Interop.Popup.Popup_Property_ANIMATION_DURATION_get();
1594             internal static readonly int ANIMATION_MODE = Interop.Popup.Popup_Property_ANIMATION_MODE_get();
1595             internal static readonly int ENTRY_ANIMATION = Interop.Popup.Popup_Property_ENTRY_ANIMATION_get();
1596             internal static readonly int EXIT_ANIMATION = Interop.Popup.Popup_Property_EXIT_ANIMATION_get();
1597             internal static readonly int AUTO_HIDE_DELAY = Interop.Popup.Popup_Property_AUTO_HIDE_DELAY_get();
1598             internal static readonly int BACKING_ENABLED = Interop.Popup.Popup_Property_BACKING_ENABLED_get();
1599             internal static readonly int BACKING_COLOR = Interop.Popup.Popup_Property_BACKING_COLOR_get();
1600             internal static readonly int POPUP_BACKGROUND_IMAGE = Interop.Popup.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
1601             internal static readonly int POPUP_BACKGROUND_BORDER = Interop.Popup.Popup_Property_POPUP_BACKGROUND_BORDER_get();
1602             internal static readonly int TAIL_UP_IMAGE = Interop.Popup.Popup_Property_TAIL_UP_IMAGE_get();
1603             internal static readonly int TAIL_DOWN_IMAGE = Interop.Popup.Popup_Property_TAIL_DOWN_IMAGE_get();
1604             internal static readonly int TAIL_LEFT_IMAGE = Interop.Popup.Popup_Property_TAIL_LEFT_IMAGE_get();
1605             internal static readonly int TAIL_RIGHT_IMAGE = Interop.Popup.Popup_Property_TAIL_RIGHT_IMAGE_get();
1606         }
1607     }
1608 }