2 * Copyright(c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
19 using System.Runtime.InteropServices;
20 using Tizen.NUI.BaseComponents;
21 using Tizen.NUI.Binding;
23 namespace Tizen.NUI.UIComponents
26 /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields.
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
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) =>
39 var popup = (Popup)bindable;
42 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TITLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
45 defaultValueCreator:(bindable) =>
47 var popup = (Popup)bindable;
48 PropertyMap temp = new PropertyMap();
49 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TITLE).Get(temp);
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) =>
57 var popup = (Popup)bindable;
60 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTENT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
63 defaultValueCreator:(bindable) =>
65 var popup = (Popup)bindable;
66 PropertyMap temp = new PropertyMap();
67 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTENT).Get(temp);
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) =>
75 var popup = (Popup)bindable;
78 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.FOOTER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
81 defaultValueCreator:(bindable) =>
83 var popup = (Popup)bindable;
84 PropertyMap temp = new PropertyMap();
85 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.FOOTER).Get(temp);
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) =>
93 var popup = (Popup)bindable;
94 string valueToString = "";
97 switch ((DisplayStateType)newValue)
99 case DisplayStateType.Showing:
101 valueToString = "SHOWING";
104 case DisplayStateType.Shown:
106 valueToString = "SHOWN";
109 case DisplayStateType.Hiding:
111 valueToString = "HIDING";
114 case DisplayStateType.Hidden:
116 valueToString = "HIDDEN";
121 valueToString = "HIDDEN";
125 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
128 defaultValueCreator:(bindable) =>
130 var popup = (Popup)bindable;
132 if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE).Get(out temp) == false)
134 NUILog.Error("DisplayState get error!");
139 return DisplayStateType.Showing;
141 return DisplayStateType.Shown;
143 return DisplayStateType.Hiding;
145 return DisplayStateType.Hidden;
147 return DisplayStateType.Hidden;
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) =>
155 var popup = (Popup)bindable;
156 if (newValue != null)
158 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue((bool)newValue));
161 defaultValueCreator:(bindable) =>
163 var popup = (Popup)bindable;
165 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
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) =>
173 var popup = (Popup)bindable;
174 if (newValue != null)
176 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue((bool)newValue));
179 defaultValueCreator:(bindable) =>
181 var popup = (Popup)bindable;
183 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY).Get(out temp);
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) =>
191 var popup = (Popup)bindable;
192 if (newValue != null)
194 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue));
197 defaultValueCreator:(bindable) =>
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);
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) =>
209 var popup = (Popup)bindable;
210 string valueToString = "";
211 if (newValue != null)
213 switch ((ContextualModeType)newValue)
215 case ContextualModeType.NonContextual:
217 valueToString = "NON_CONTEXTUAL";
220 case ContextualModeType.Above:
222 valueToString = "ABOVE";
225 case ContextualModeType.Rright:
227 valueToString = "RIGHT";
230 case ContextualModeType.Below:
232 valueToString = "BELOW";
235 case ContextualModeType.Left:
237 valueToString = "LEFT";
242 valueToString = "BELOW";
246 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
249 defaultValueCreator:(bindable) =>
251 var popup = (Popup)bindable;
253 if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
255 NUILog.Error("ContextualMode get error!");
259 case "NON_CONTEXTUAL":
260 return ContextualModeType.NonContextual;
262 return ContextualModeType.Above;
264 return ContextualModeType.Rright;
266 return ContextualModeType.Below;
268 return ContextualModeType.Left;
270 return ContextualModeType.Below;
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) =>
278 var popup = (Popup)bindable;
279 if (newValue != null)
281 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
284 defaultValueCreator:(bindable) =>
286 var popup = (Popup)bindable;
288 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION).Get(out temp);
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) =>
296 var popup = (Popup)bindable;
297 string valueToString = "";
298 if (newValue != null)
300 switch ((AnimationModeType)newValue)
302 case AnimationModeType.None:
304 valueToString = "NONE";
307 case AnimationModeType.Zoom:
309 valueToString = "ZOOM";
312 case AnimationModeType.Fade:
314 valueToString = "FADE";
317 case AnimationModeType.Custom:
319 valueToString = "CUSTOM";
324 valueToString = "FADE";
328 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
331 defaultValueCreator:(bindable) =>
333 var popup = (Popup)bindable;
335 if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE).Get(out temp) == false)
337 NUILog.Error("AnimationMode get error!");
342 return AnimationModeType.None;
344 return AnimationModeType.Zoom;
346 return AnimationModeType.Fade;
348 return AnimationModeType.Custom;
350 return AnimationModeType.Fade;
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) =>
358 var popup = (Popup)bindable;
359 if (newValue != null)
361 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
364 defaultValueCreator:(bindable) =>
366 var popup = (Popup)bindable;
367 PropertyMap temp = new PropertyMap();
368 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION).Get(temp);
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) =>
376 var popup = (Popup)bindable;
377 if (newValue != null)
379 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
382 defaultValueCreator:(bindable) =>
384 var popup = (Popup)bindable;
385 PropertyMap temp = new PropertyMap();
386 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION).Get(temp);
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) =>
394 var popup = (Popup)bindable;
395 if (newValue != null)
397 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue((int)newValue));
400 defaultValueCreator:(bindable) =>
402 var popup = (Popup)bindable;
404 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
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) =>
412 var popup = (Popup)bindable;
413 if (newValue != null)
415 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
418 defaultValueCreator:(bindable) =>
420 var popup = (Popup)bindable;
422 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED).Get(out temp);
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) =>
430 var popup = (Popup)bindable;
431 if (newValue != null)
433 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
436 defaultValueCreator:(bindable) =>
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);
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) =>
448 var popup = (Popup)bindable;
449 if (newValue != null)
451 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
454 defaultValueCreator:(bindable) =>
456 var popup = (Popup)bindable;
458 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
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) =>
466 var popup = (Popup)bindable;
467 if (newValue != null)
469 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue((Rectangle)newValue));
472 defaultValueCreator:(bindable) =>
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);
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) =>
484 var popup = (Popup)bindable;
485 if (newValue != null)
487 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
490 defaultValueCreator:(bindable) =>
492 var popup = (Popup)bindable;
494 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE).Get(out temp);
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) =>
502 var popup = (Popup)bindable;
503 if (newValue != null)
505 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
508 defaultValueCreator:(bindable) =>
510 var popup = (Popup)bindable;
512 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
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) =>
520 var popup = (Popup)bindable;
521 if (newValue != null)
523 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
526 defaultValueCreator:(bindable) =>
528 var popup = (Popup)bindable;
530 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
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) =>
538 var popup = (Popup)bindable;
539 if (newValue != null)
541 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
544 defaultValueCreator:(bindable) =>
546 var popup = (Popup)bindable;
548 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
552 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
553 private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
554 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
555 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
556 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
557 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
558 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
559 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
560 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
561 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
562 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
565 /// Creates the popup.
567 /// <since_tizen> 3 </since_tizen>
568 /// This will be deprecated
569 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
570 [EditorBrowsable(EditorBrowsableState.Never)]
571 public Popup() : this(Interop.Popup.Popup_New(), true)
573 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
576 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Popup.Popup_SWIGUpcast(cPtr), cMemoryOwn)
578 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
581 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
582 private delegate void OutsideTouchedEventCallbackDelegate();
583 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
584 private delegate void ShowingEventCallbackDelegate();
585 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
586 private delegate void ShownEventCallbackDelegate();
587 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
588 private delegate void HidingEventCallbackDelegate();
589 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
590 private delegate void HiddenEventCallbackDelegate();
593 /// An event is sent when the user has touched outside the dialog.
595 /// <since_tizen> 3 </since_tizen>
596 /// This will be deprecated
597 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
598 [EditorBrowsable(EditorBrowsableState.Never)]
599 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
603 if (_popUpOutsideTouchedEventHandler == null)
605 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
606 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
608 _popUpOutsideTouchedEventHandler += value;
612 _popUpOutsideTouchedEventHandler -= value;
613 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
615 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
621 /// An event is sent when the popup starts showing.
623 /// <since_tizen> 3 </since_tizen>
624 /// This will be deprecated
625 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
626 [EditorBrowsable(EditorBrowsableState.Never)]
627 public event EventHandler<ShowingEventArgs> Showing
631 if (_popUpShowingEventHandler == null)
633 _popUpShowingEventCallbackDelegate = (OnShowing);
634 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
636 _popUpShowingEventHandler += value;
640 _popUpShowingEventHandler -= value;
641 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
643 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
649 /// An event is sent when the popup has been fully displayed.
651 /// <since_tizen> 3 </since_tizen>
652 /// This will be deprecated
653 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
654 [EditorBrowsable(EditorBrowsableState.Never)]
655 public event EventHandler<ShownEventArgs> Shown
659 if (_popUpShownEventHandler == null)
661 _popUpShownEventCallbackDelegate = (OnShown);
662 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
664 _popUpShownEventHandler += value;
668 _popUpShownEventHandler -= value;
669 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
671 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
677 /// An event is sent when the popup starts to hide.
679 /// <since_tizen> 3 </since_tizen>
680 /// This will be deprecated
681 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
682 [EditorBrowsable(EditorBrowsableState.Never)]
683 public event EventHandler<HidingEventArgs> Hiding
687 if (_popUpHidingEventHandler == null)
689 _popUpHidingEventCallbackDelegate = (OnHiding);
690 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
692 _popUpHidingEventHandler += value;
696 _popUpHidingEventHandler -= value;
697 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
699 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
705 /// An event is sent when the popup has been completely hidden.
707 /// <since_tizen> 3 </since_tizen>
708 /// This will be deprecated
709 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
710 [EditorBrowsable(EditorBrowsableState.Never)]
711 public event EventHandler<HiddenEventArgs> Hidden
715 if (_popUpHiddenEventHandler == null)
717 _popUpHiddenEventCallbackDelegate = (OnHidden);
718 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
720 _popUpHiddenEventHandler += value;
724 _popUpHiddenEventHandler -= value;
725 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
727 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
733 /// The display states of the popup.
735 /// <since_tizen> 3 </since_tizen>
736 /// This will be deprecated
737 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
738 [EditorBrowsable(EditorBrowsableState.Never)]
739 public enum DisplayStateType
742 /// The popup is transitioning in
744 /// <since_tizen> 3 </since_tizen>
745 /// This will be deprecated
746 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
747 [EditorBrowsable(EditorBrowsableState.Never)]
750 /// The popup is fully shown
752 /// <since_tizen> 3 </since_tizen>
753 /// This will be deprecated
754 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
755 [EditorBrowsable(EditorBrowsableState.Never)]
758 /// The popup is transitioning out
760 /// <since_tizen> 3 </since_tizen>
761 /// This will be deprecated
762 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
763 [EditorBrowsable(EditorBrowsableState.Never)]
766 /// The popup is fully hidden
768 /// <since_tizen> 3 </since_tizen>
769 /// This will be deprecated
770 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
771 [EditorBrowsable(EditorBrowsableState.Never)]
776 /// The animation modes within the popup.<br />
777 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
779 /// <since_tizen> 3 </since_tizen>
780 /// This will be deprecated
781 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
782 [EditorBrowsable(EditorBrowsableState.Never)]
783 public enum AnimationModeType
788 /// <since_tizen> 3 </since_tizen>
789 /// This will be deprecated
790 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
791 [EditorBrowsable(EditorBrowsableState.Never)]
794 /// Popup zooms in and out animating the scale property.
796 /// <since_tizen> 3 </since_tizen>
797 /// This will be deprecated
798 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
799 [EditorBrowsable(EditorBrowsableState.Never)]
802 /// Popup fades in and out
804 /// <since_tizen> 3 </since_tizen>
805 /// This will be deprecated
806 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
807 [EditorBrowsable(EditorBrowsableState.Never)]
810 /// Use the EntryAnimation and ExitAnimation animation properties.
812 /// <since_tizen> 3 </since_tizen>
813 /// This will be deprecated
814 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
815 [EditorBrowsable(EditorBrowsableState.Never)]
820 /// The types of the contextual layout.<br />
821 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
822 /// NON_CONTEXTUAL disables any contextual positioning.<br />
824 /// <since_tizen> 3 </since_tizen>
825 /// This will be deprecated
826 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
827 [EditorBrowsable(EditorBrowsableState.Never)]
828 public enum ContextualModeType
831 /// any contextual positioning
833 /// <since_tizen> 3 </since_tizen>
834 /// This will be deprecated
835 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
836 [EditorBrowsable(EditorBrowsableState.Never)]
841 /// <since_tizen> 3 </since_tizen>
842 /// This will be deprecated
843 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
844 [EditorBrowsable(EditorBrowsableState.Never)]
849 /// <since_tizen> 3 </since_tizen>
850 /// This will be deprecated
851 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
852 [EditorBrowsable(EditorBrowsableState.Never)]
857 /// <since_tizen> 3 </since_tizen>
858 /// This will be deprecated
859 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
860 [EditorBrowsable(EditorBrowsableState.Never)]
865 /// <since_tizen> 3 </since_tizen>
866 /// This will be deprecated
867 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
868 [EditorBrowsable(EditorBrowsableState.Never)]
875 /// <since_tizen> 3 </since_tizen>
876 /// This will be deprecated
877 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
878 [EditorBrowsable(EditorBrowsableState.Never)]
879 public PropertyMap Title
883 return (PropertyMap)GetValue(TitleProperty);
887 SetValue(TitleProperty, value);
892 /// The popup content.
894 /// <since_tizen> 3 </since_tizen>
895 /// This will be deprecated
896 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
897 [EditorBrowsable(EditorBrowsableState.Never)]
898 public PropertyMap Content
902 return (PropertyMap)GetValue(ContentProperty);
906 SetValue(ContentProperty, value);
911 /// The popup footer.
913 /// <since_tizen> 3 </since_tizen>
914 /// This will be deprecated
915 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
916 [EditorBrowsable(EditorBrowsableState.Never)]
917 public PropertyMap Footer
921 return (PropertyMap)GetValue(FooterProperty);
925 SetValue(FooterProperty, value);
930 /// The popup display state.
932 /// <since_tizen> 3 </since_tizen>
933 /// This will be deprecated
934 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
935 [EditorBrowsable(EditorBrowsableState.Never)]
936 public DisplayStateType DisplayState
940 return (DisplayStateType)GetValue(DisplayStateProperty);
944 SetValue(DisplayStateProperty, value);
949 /// The touch transparent.
951 /// <since_tizen> 3 </since_tizen>
952 /// This will be deprecated
953 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
954 [EditorBrowsable(EditorBrowsableState.Never)]
955 public bool TouchTransparent
959 return (bool)GetValue(TouchTransparentProperty);
963 SetValue(TouchTransparentProperty, value);
968 /// The popup tail visibility.
970 /// <since_tizen> 3 </since_tizen>
971 /// This will be deprecated
972 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
973 [EditorBrowsable(EditorBrowsableState.Never)]
974 public bool TailVisibility
978 return (bool)GetValue(TailVisibilityProperty);
982 SetValue(TailVisibilityProperty, value);
987 /// The popup tail position.
989 /// <since_tizen> 3 </since_tizen>
990 /// This will be deprecated
991 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
992 [EditorBrowsable(EditorBrowsableState.Never)]
993 public Vector3 TailPosition
997 return (Vector3)GetValue(TailPositionProperty);
1001 SetValue(TailPositionProperty, value);
1006 /// The contextual mode.
1008 /// <since_tizen> 3 </since_tizen>
1009 /// This will be deprecated
1010 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1011 [EditorBrowsable(EditorBrowsableState.Never)]
1012 public ContextualModeType ContextualMode
1016 return (ContextualModeType)GetValue(ContextualModeProperty);
1020 SetValue(ContextualModeProperty, value);
1025 /// The animation duration.
1027 /// <since_tizen> 3 </since_tizen>
1028 /// This will be deprecated
1029 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1030 [EditorBrowsable(EditorBrowsableState.Never)]
1031 public float AnimationDuration
1035 return (float)GetValue(AnimationDurationProperty);
1039 SetValue(AnimationDurationProperty, value);
1044 /// The animation mode.
1046 /// <since_tizen> 3 </since_tizen>
1047 /// This will be deprecated
1048 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1049 [EditorBrowsable(EditorBrowsableState.Never)]
1050 public AnimationModeType AnimationMode
1054 return (AnimationModeType)GetValue(AnimationModeProperty);
1058 SetValue(AnimationModeProperty, value);
1063 /// The entry animation.
1065 /// <since_tizen> 3 </since_tizen>
1066 /// This will be deprecated
1067 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1068 [EditorBrowsable(EditorBrowsableState.Never)]
1069 public PropertyMap EntryAnimation
1073 return (PropertyMap)GetValue(EntryAnimationProperty);
1077 SetValue(EntryAnimationProperty, value);
1082 /// The exit animation.
1084 /// <since_tizen> 3 </since_tizen>
1085 /// This will be deprecated
1086 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1087 [EditorBrowsable(EditorBrowsableState.Never)]
1088 public PropertyMap ExitAnimation
1092 return (PropertyMap)GetValue(ExitAnimationProperty);
1096 SetValue(ExitAnimationProperty, value);
1101 /// The auto hide delay.
1103 /// <since_tizen> 3 </since_tizen>
1104 /// This will be deprecated
1105 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1106 [EditorBrowsable(EditorBrowsableState.Never)]
1107 public int AutoHideDelay
1111 return (int)GetValue(AutoHideDelayProperty);
1115 SetValue(AutoHideDelayProperty, value);
1120 /// The backing enabled.
1122 /// <since_tizen> 3 </since_tizen>
1123 /// This will be deprecated
1124 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1125 [EditorBrowsable(EditorBrowsableState.Never)]
1126 public bool BackingEnabled
1130 return (bool)GetValue(BackingEnabledProperty);
1134 SetValue(BackingEnabledProperty, value);
1139 /// The backing color.
1141 /// <since_tizen> 3 </since_tizen>
1142 /// This will be deprecated
1143 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1144 [EditorBrowsable(EditorBrowsableState.Never)]
1145 public Vector4 BackingColor
1149 return (Vector4)GetValue(BackingColorProperty);
1153 SetValue(BackingColorProperty, value);
1158 /// The background image.
1160 /// <since_tizen> 3 </since_tizen>
1161 /// This will be deprecated
1162 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1163 [EditorBrowsable(EditorBrowsableState.Never)]
1164 public string PopupBackgroundImage
1168 return (string)GetValue(PopupBackgroundImageProperty);
1172 SetValue(PopupBackgroundImageProperty, value);
1177 /// The background border.
1179 /// <since_tizen> 3 </since_tizen>
1180 /// This will be deprecated
1181 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1182 [EditorBrowsable(EditorBrowsableState.Never)]
1183 public Rectangle PopupBackgroundBorder
1187 return (Rectangle)GetValue(PopupBackgroundBorderProperty);
1191 SetValue(PopupBackgroundBorderProperty, value);
1196 /// The tail up image.
1198 /// <since_tizen> 3 </since_tizen>
1199 /// This will be deprecated
1200 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1201 [EditorBrowsable(EditorBrowsableState.Never)]
1202 public string TailUpImage
1206 return (string)GetValue(TailUpImageProperty);
1210 SetValue(TailUpImageProperty, value);
1215 /// The tail down image.
1217 /// <since_tizen> 3 </since_tizen>
1218 /// This will be deprecated
1219 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1220 [EditorBrowsable(EditorBrowsableState.Never)]
1221 public string TailDownImage
1225 return (string)GetValue(TailDownImageProperty);
1229 SetValue(TailDownImageProperty, value);
1234 /// The tail left image.
1236 /// <since_tizen> 3 </since_tizen>
1237 /// This will be deprecated
1238 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1239 [EditorBrowsable(EditorBrowsableState.Never)]
1240 public string TailLeftImage
1244 return (string)GetValue(TailLeftImageProperty);
1248 SetValue(TailLeftImageProperty, value);
1253 /// The tail right image.
1255 /// <since_tizen> 3 </since_tizen>
1256 /// This will be deprecated
1257 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1258 [EditorBrowsable(EditorBrowsableState.Never)]
1259 public string TailRightImage
1263 return (string)GetValue(TailRightImageProperty);
1267 SetValue(TailRightImageProperty, value);
1272 /// Sets the title for this popup.
1274 /// <param name="titleView">The actor to set the title.</param>
1275 /// <since_tizen> 3 </since_tizen>
1276 /// This will be deprecated
1277 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1278 [EditorBrowsable(EditorBrowsableState.Never)]
1279 public void SetTitle(View titleView)
1281 Interop.Popup.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1286 /// Sets the content actor.
1288 /// <param name="content">The actor to use.</param>
1289 /// <since_tizen> 3 </since_tizen>
1290 /// This will be deprecated
1291 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1292 [EditorBrowsable(EditorBrowsableState.Never)]
1293 public void SetContent(View content)
1295 Interop.Popup.Popup_SetContent(swigCPtr, View.getCPtr(content));
1296 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1300 /// Sets the actor to use for the footer in this popup.
1302 /// <param name="footer">The footer actor to be added to this popup.</param>
1303 /// <since_tizen> 3 </since_tizen>
1304 /// This will be deprecated
1305 [EditorBrowsable(EditorBrowsableState.Never)]
1306 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1307 public void SetFooter(View footer)
1309 Interop.Popup.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
1310 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1314 /// Sets the display state of popup.<br />
1315 /// There are 4 total display states.<br />
1316 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
1318 /// The other two states are getable, but not setable, and are there for consistency.<br />
1320 /// | Value | Setting the state | Getting the state |<br />
1321 /// |----------|--------------------------------|--------------------------------|<br />
1322 /// | SHOWN | Show the popup | The popup is fully shown |<br />
1323 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
1324 /// | SHOWING | | The popup is transitioning in |<br />
1325 /// | HIDING | | The popup is transitioning out |<br />
1327 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
1329 /// <param name="displayState">The desired display state to change to.</param>
1330 /// <since_tizen> 3 </since_tizen>
1331 /// This will be deprecated
1332 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1333 [EditorBrowsable(EditorBrowsableState.Never)]
1334 public void SetDisplayState(Popup.DisplayStateType displayState)
1336 Interop.Popup.Popup_SetDisplayState(swigCPtr, (int)displayState);
1337 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1340 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
1342 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1345 internal View GetTitle()
1347 //to fix memory leak issue, match the handle count with native side.
1348 IntPtr cPtr = Interop.Popup.Popup_GetTitle(swigCPtr);
1349 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1350 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
1351 Interop.BaseHandle.delete_BaseHandle(CPtr);
1352 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1354 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1358 internal View GetContent()
1360 //to fix memory leak issue, match the handle count with native side.
1361 IntPtr cPtr = Interop.Popup.Popup_GetContent(swigCPtr);
1362 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1363 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
1364 Interop.BaseHandle.delete_BaseHandle(CPtr);
1365 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1367 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1371 internal View GetFooter()
1373 //to fix memory leak issue, match the handle count with native side.
1374 IntPtr cPtr = Interop.Popup.Popup_GetFooter(swigCPtr);
1375 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1376 View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
1377 Interop.BaseHandle.delete_BaseHandle(CPtr);
1378 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1384 internal Popup.DisplayStateType GetDisplayState()
1386 Popup.DisplayStateType ret = (Popup.DisplayStateType)Interop.Popup.Popup_GetDisplayState(swigCPtr);
1387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1391 internal VoidSignal OutsideTouchedSignal()
1393 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_OutsideTouchedSignal(swigCPtr), false);
1394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1398 internal VoidSignal ShowingSignal()
1400 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShowingSignal(swigCPtr), false);
1401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1405 internal VoidSignal ShownSignal()
1407 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShownSignal(swigCPtr), false);
1408 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1412 internal VoidSignal HidingSignal()
1414 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HidingSignal(swigCPtr), false);
1415 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1419 internal VoidSignal HiddenSignal()
1421 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HiddenSignal(swigCPtr), false);
1422 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1429 /// <param name="type">The dispose type</param>
1430 /// <since_tizen> 3 </since_tizen>
1431 /// This will be deprecated
1432 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1433 [EditorBrowsable(EditorBrowsableState.Never)]
1434 protected override void Dispose(DisposeTypes type)
1441 //Release your own unmanaged resources here.
1442 //You should not access any managed member here except static instance.
1443 //because the execution order of Finalizes is non-deterministic.
1446 if (_popUpHiddenEventCallbackDelegate != null)
1448 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
1451 if (_popUpHidingEventCallbackDelegate != null)
1453 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
1457 if (_popUpShownEventCallbackDelegate != null)
1459 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
1462 if (_popUpShowingEventCallbackDelegate != null)
1464 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
1467 if (_popUpOutsideTouchedEventCallbackDelegate != null)
1469 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
1472 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1476 swigCMemOwn = false;
1477 Interop.Popup.delete_Popup(swigCPtr);
1479 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1485 // Callback for Popup OutsideTouchedSignal
1486 private void OnOutsideTouched()
1488 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
1490 if (_popUpOutsideTouchedEventHandler != null)
1492 //here we send all data to user event handlers
1493 _popUpOutsideTouchedEventHandler(this, e);
1497 // Callback for ShowingSignal
1498 private void OnShowing()
1500 ShowingEventArgs e = new ShowingEventArgs();
1502 if (_popUpShowingEventHandler != null)
1504 //here we send all data to user event handlers
1505 _popUpShowingEventHandler(this, e);
1509 // Callback for ShownSignal
1510 private void OnShown()
1512 ShownEventArgs e = new ShownEventArgs();
1514 if (_popUpShownEventHandler != null)
1516 //here we send all data to user event handlers
1517 _popUpShownEventHandler(this, e);
1521 // Callback for HidingSignal
1522 private void OnHiding()
1524 HidingEventArgs e = new HidingEventArgs();
1526 if (_popUpHidingEventHandler != null)
1528 //here we send all data to user event handlers
1529 _popUpHidingEventHandler(this, e);
1533 // Callback for HiddenSignal
1534 private void OnHidden()
1536 HiddenEventArgs e = new HiddenEventArgs();
1538 if (_popUpHiddenEventHandler != null)
1540 //here we send all data to user event handlers
1541 _popUpHiddenEventHandler(this, e);
1546 /// Event arguments that passed via the OutsideTouchedEvent.
1548 /// <since_tizen> 3 </since_tizen>
1549 /// This will be deprecated
1550 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1551 [EditorBrowsable(EditorBrowsableState.Never)]
1552 public class TouchedOutsideEventArgs : EventArgs
1557 /// Event arguments that passed via the ShowingEventArgs.
1559 /// <since_tizen> 3 </since_tizen>
1560 /// This will be deprecated
1561 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1562 [EditorBrowsable(EditorBrowsableState.Never)]
1563 public class ShowingEventArgs : EventArgs
1568 /// Event arguments that passed via the ShownEventArgs.
1570 /// <since_tizen> 3 </since_tizen>
1571 /// This will be deprecated
1572 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1573 [EditorBrowsable(EditorBrowsableState.Never)]
1574 public class ShownEventArgs : EventArgs
1579 /// Event arguments that passed via the HidingEventArgs.
1581 /// <since_tizen> 3 </since_tizen>
1582 /// This will be deprecated
1583 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1584 [EditorBrowsable(EditorBrowsableState.Never)]
1585 public class HidingEventArgs : EventArgs
1590 /// Event arguments that passed via the HiddenEventArgs.
1592 /// <since_tizen> 3 </since_tizen>
1593 /// This will be deprecated
1594 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1595 [EditorBrowsable(EditorBrowsableState.Never)]
1596 public class HiddenEventArgs : EventArgs
1600 internal new class Property
1602 internal static readonly int TITLE = Interop.Popup.Popup_Property_TITLE_get();
1603 internal static readonly int CONTENT = Interop.Popup.Popup_Property_CONTENT_get();
1604 internal static readonly int FOOTER = Interop.Popup.Popup_Property_FOOTER_get();
1605 internal static readonly int DISPLAY_STATE = Interop.Popup.Popup_Property_DISPLAY_STATE_get();
1606 internal static readonly int TOUCH_TRANSPARENT = Interop.Popup.Popup_Property_TOUCH_TRANSPARENT_get();
1607 internal static readonly int TAIL_VISIBILITY = Interop.Popup.Popup_Property_TAIL_VISIBILITY_get();
1608 internal static readonly int TAIL_POSITION = Interop.Popup.Popup_Property_TAIL_POSITION_get();
1609 internal static readonly int CONTEXTUAL_MODE = Interop.Popup.Popup_Property_CONTEXTUAL_MODE_get();
1610 internal static readonly int ANIMATION_DURATION = Interop.Popup.Popup_Property_ANIMATION_DURATION_get();
1611 internal static readonly int ANIMATION_MODE = Interop.Popup.Popup_Property_ANIMATION_MODE_get();
1612 internal static readonly int ENTRY_ANIMATION = Interop.Popup.Popup_Property_ENTRY_ANIMATION_get();
1613 internal static readonly int EXIT_ANIMATION = Interop.Popup.Popup_Property_EXIT_ANIMATION_get();
1614 internal static readonly int AUTO_HIDE_DELAY = Interop.Popup.Popup_Property_AUTO_HIDE_DELAY_get();
1615 internal static readonly int BACKING_ENABLED = Interop.Popup.Popup_Property_BACKING_ENABLED_get();
1616 internal static readonly int BACKING_COLOR = Interop.Popup.Popup_Property_BACKING_COLOR_get();
1617 internal static readonly int POPUP_BACKGROUND_IMAGE = Interop.Popup.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
1618 internal static readonly int POPUP_BACKGROUND_BORDER = Interop.Popup.Popup_Property_POPUP_BACKGROUND_BORDER_get();
1619 internal static readonly int TAIL_UP_IMAGE = Interop.Popup.Popup_Property_TAIL_UP_IMAGE_get();
1620 internal static readonly int TAIL_DOWN_IMAGE = Interop.Popup.Popup_Property_TAIL_DOWN_IMAGE_get();
1621 internal static readonly int TAIL_LEFT_IMAGE = Interop.Popup.Popup_Property_TAIL_LEFT_IMAGE_get();
1622 internal static readonly int TAIL_RIGHT_IMAGE = Interop.Popup.Popup_Property_TAIL_RIGHT_IMAGE_get();