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