2 * Copyright(c) 2019 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 EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
553 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
554 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
555 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
556 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
557 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
558 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
559 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
560 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
561 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
564 /// Creates the popup.
566 /// <since_tizen> 3 </since_tizen>
567 /// This will be deprecated
568 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
569 [EditorBrowsable(EditorBrowsableState.Never)]
570 public Popup() : this(Interop.Popup.Popup_New(), true)
572 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
575 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Popup.Popup_SWIGUpcast(cPtr), cMemoryOwn)
579 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
580 private delegate void OutsideTouchedEventCallbackDelegate();
581 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
582 private delegate void ShowingEventCallbackDelegate();
583 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
584 private delegate void ShownEventCallbackDelegate();
585 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
586 private delegate void HidingEventCallbackDelegate();
587 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
588 private delegate void HiddenEventCallbackDelegate();
591 /// An event is sent when the user has touched outside the dialog.
593 /// <since_tizen> 3 </since_tizen>
594 /// This will be deprecated
595 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
596 [EditorBrowsable(EditorBrowsableState.Never)]
597 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
601 if (_popUpOutsideTouchedEventHandler == null)
603 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
604 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
606 _popUpOutsideTouchedEventHandler += value;
610 _popUpOutsideTouchedEventHandler -= value;
611 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
613 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
619 /// An event is sent when the popup starts showing.
621 /// <since_tizen> 3 </since_tizen>
622 /// This will be deprecated
623 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
624 [EditorBrowsable(EditorBrowsableState.Never)]
625 public event EventHandler<ShowingEventArgs> Showing
629 if (_popUpShowingEventHandler == null)
631 _popUpShowingEventCallbackDelegate = (OnShowing);
632 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
634 _popUpShowingEventHandler += value;
638 _popUpShowingEventHandler -= value;
639 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
641 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
647 /// An event is sent when the popup has been fully displayed.
649 /// <since_tizen> 3 </since_tizen>
650 /// This will be deprecated
651 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
652 [EditorBrowsable(EditorBrowsableState.Never)]
653 public event EventHandler<ShownEventArgs> Shown
657 if (_popUpShownEventHandler == null)
659 _popUpShownEventCallbackDelegate = (OnShown);
660 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
662 _popUpShownEventHandler += value;
666 _popUpShownEventHandler -= value;
667 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
669 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
675 /// An event is sent when the popup starts to hide.
677 /// <since_tizen> 3 </since_tizen>
678 /// This will be deprecated
679 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
680 [EditorBrowsable(EditorBrowsableState.Never)]
681 public event EventHandler<HidingEventArgs> Hiding
685 if (_popUpHidingEventHandler == null)
687 _popUpHidingEventCallbackDelegate = (OnHiding);
688 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
690 _popUpHidingEventHandler += value;
694 _popUpHidingEventHandler -= value;
695 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
697 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
703 /// An event is sent when the popup has been completely hidden.
705 /// <since_tizen> 3 </since_tizen>
706 /// This will be deprecated
707 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
708 [EditorBrowsable(EditorBrowsableState.Never)]
709 public event EventHandler<HiddenEventArgs> Hidden
713 if (_popUpHiddenEventHandler == null)
715 _popUpHiddenEventCallbackDelegate = (OnHidden);
716 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
718 _popUpHiddenEventHandler += value;
722 _popUpHiddenEventHandler -= value;
723 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
725 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
731 /// The display states of the popup.
733 /// <since_tizen> 3 </since_tizen>
734 /// This will be deprecated
735 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
736 [EditorBrowsable(EditorBrowsableState.Never)]
737 public enum DisplayStateType
740 /// The popup is transitioning in
742 /// <since_tizen> 3 </since_tizen>
743 /// This will be deprecated
744 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
745 [EditorBrowsable(EditorBrowsableState.Never)]
748 /// The popup is fully shown
750 /// <since_tizen> 3 </since_tizen>
751 /// This will be deprecated
752 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
753 [EditorBrowsable(EditorBrowsableState.Never)]
756 /// The popup is transitioning out
758 /// <since_tizen> 3 </since_tizen>
759 /// This will be deprecated
760 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
761 [EditorBrowsable(EditorBrowsableState.Never)]
764 /// The popup is fully hidden
766 /// <since_tizen> 3 </since_tizen>
767 /// This will be deprecated
768 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
769 [EditorBrowsable(EditorBrowsableState.Never)]
774 /// The animation modes within the popup.<br />
775 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
777 /// <since_tizen> 3 </since_tizen>
778 /// This will be deprecated
779 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
780 [EditorBrowsable(EditorBrowsableState.Never)]
781 public enum AnimationModeType
786 /// <since_tizen> 3 </since_tizen>
787 /// This will be deprecated
788 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
789 [EditorBrowsable(EditorBrowsableState.Never)]
792 /// Popup zooms in and out animating the scale property.
794 /// <since_tizen> 3 </since_tizen>
795 /// This will be deprecated
796 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
797 [EditorBrowsable(EditorBrowsableState.Never)]
800 /// Popup fades in and out
802 /// <since_tizen> 3 </since_tizen>
803 /// This will be deprecated
804 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
805 [EditorBrowsable(EditorBrowsableState.Never)]
808 /// Use the EntryAnimation and ExitAnimation animation properties.
810 /// <since_tizen> 3 </since_tizen>
811 /// This will be deprecated
812 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
813 [EditorBrowsable(EditorBrowsableState.Never)]
818 /// The types of the contextual layout.<br />
819 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
820 /// NON_CONTEXTUAL disables any contextual positioning.<br />
822 /// <since_tizen> 3 </since_tizen>
823 /// This will be deprecated
824 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
825 [EditorBrowsable(EditorBrowsableState.Never)]
826 public enum ContextualModeType
829 /// any contextual positioning
831 /// <since_tizen> 3 </since_tizen>
832 /// This will be deprecated
833 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
834 [EditorBrowsable(EditorBrowsableState.Never)]
839 /// <since_tizen> 3 </since_tizen>
840 /// This will be deprecated
841 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
842 [EditorBrowsable(EditorBrowsableState.Never)]
847 /// <since_tizen> 3 </since_tizen>
848 /// This will be deprecated
849 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
850 [EditorBrowsable(EditorBrowsableState.Never)]
855 /// <since_tizen> 3 </since_tizen>
856 /// This will be deprecated
857 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
858 [EditorBrowsable(EditorBrowsableState.Never)]
863 /// <since_tizen> 3 </since_tizen>
864 /// This will be deprecated
865 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
866 [EditorBrowsable(EditorBrowsableState.Never)]
873 /// <since_tizen> 3 </since_tizen>
874 /// This will be deprecated
875 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
876 [EditorBrowsable(EditorBrowsableState.Never)]
877 public PropertyMap Title
881 return (PropertyMap)GetValue(TitleProperty);
885 SetValue(TitleProperty, value);
890 /// The popup content.
892 /// <since_tizen> 3 </since_tizen>
893 /// This will be deprecated
894 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
895 [EditorBrowsable(EditorBrowsableState.Never)]
896 public PropertyMap Content
900 return (PropertyMap)GetValue(ContentProperty);
904 SetValue(ContentProperty, value);
909 /// The popup footer.
911 /// <since_tizen> 3 </since_tizen>
912 /// This will be deprecated
913 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
914 [EditorBrowsable(EditorBrowsableState.Never)]
915 public PropertyMap Footer
919 return (PropertyMap)GetValue(FooterProperty);
923 SetValue(FooterProperty, value);
928 /// The popup display state.
930 /// <since_tizen> 3 </since_tizen>
931 /// This will be deprecated
932 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
933 [EditorBrowsable(EditorBrowsableState.Never)]
934 public DisplayStateType DisplayState
938 return (DisplayStateType)GetValue(DisplayStateProperty);
942 SetValue(DisplayStateProperty, value);
947 /// The touch transparent.
949 /// <since_tizen> 3 </since_tizen>
950 /// This will be deprecated
951 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
952 [EditorBrowsable(EditorBrowsableState.Never)]
953 public bool TouchTransparent
957 return (bool)GetValue(TouchTransparentProperty);
961 SetValue(TouchTransparentProperty, value);
966 /// The popup tail visibility.
968 /// <since_tizen> 3 </since_tizen>
969 /// This will be deprecated
970 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
971 [EditorBrowsable(EditorBrowsableState.Never)]
972 public bool TailVisibility
976 return (bool)GetValue(TailVisibilityProperty);
980 SetValue(TailVisibilityProperty, value);
985 /// The popup tail position.
987 /// <since_tizen> 3 </since_tizen>
988 /// This will be deprecated
989 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
990 [EditorBrowsable(EditorBrowsableState.Never)]
991 public Vector3 TailPosition
995 return (Vector3)GetValue(TailPositionProperty);
999 SetValue(TailPositionProperty, value);
1004 /// The contextual mode.
1006 /// <since_tizen> 3 </since_tizen>
1007 /// This will be deprecated
1008 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1009 [EditorBrowsable(EditorBrowsableState.Never)]
1010 public ContextualModeType ContextualMode
1014 return (ContextualModeType)GetValue(ContextualModeProperty);
1018 SetValue(ContextualModeProperty, value);
1023 /// The animation duration.
1025 /// <since_tizen> 3 </since_tizen>
1026 /// This will be deprecated
1027 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1028 [EditorBrowsable(EditorBrowsableState.Never)]
1029 public float AnimationDuration
1033 return (float)GetValue(AnimationDurationProperty);
1037 SetValue(AnimationDurationProperty, value);
1042 /// The animation mode.
1044 /// <since_tizen> 3 </since_tizen>
1045 /// This will be deprecated
1046 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1047 [EditorBrowsable(EditorBrowsableState.Never)]
1048 public AnimationModeType AnimationMode
1052 return (AnimationModeType)GetValue(AnimationModeProperty);
1056 SetValue(AnimationModeProperty, value);
1061 /// The entry animation.
1063 /// <since_tizen> 3 </since_tizen>
1064 /// This will be deprecated
1065 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1066 [EditorBrowsable(EditorBrowsableState.Never)]
1067 public PropertyMap EntryAnimation
1071 return (PropertyMap)GetValue(EntryAnimationProperty);
1075 SetValue(EntryAnimationProperty, value);
1080 /// The exit animation.
1082 /// <since_tizen> 3 </since_tizen>
1083 /// This will be deprecated
1084 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1085 [EditorBrowsable(EditorBrowsableState.Never)]
1086 public PropertyMap ExitAnimation
1090 return (PropertyMap)GetValue(ExitAnimationProperty);
1094 SetValue(ExitAnimationProperty, value);
1099 /// The auto hide delay.
1101 /// <since_tizen> 3 </since_tizen>
1102 /// This will be deprecated
1103 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1104 [EditorBrowsable(EditorBrowsableState.Never)]
1105 public int AutoHideDelay
1109 return (int)GetValue(AutoHideDelayProperty);
1113 SetValue(AutoHideDelayProperty, value);
1118 /// The backing enabled.
1120 /// <since_tizen> 3 </since_tizen>
1121 /// This will be deprecated
1122 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1123 [EditorBrowsable(EditorBrowsableState.Never)]
1124 public bool BackingEnabled
1128 return (bool)GetValue(BackingEnabledProperty);
1132 SetValue(BackingEnabledProperty, value);
1137 /// The backing color.
1139 /// <since_tizen> 3 </since_tizen>
1140 /// This will be deprecated
1141 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1142 [EditorBrowsable(EditorBrowsableState.Never)]
1143 public Vector4 BackingColor
1147 return (Vector4)GetValue(BackingColorProperty);
1151 SetValue(BackingColorProperty, value);
1156 /// The background image.
1158 /// <since_tizen> 3 </since_tizen>
1159 /// This will be deprecated
1160 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1161 [EditorBrowsable(EditorBrowsableState.Never)]
1162 public string PopupBackgroundImage
1166 return (string)GetValue(PopupBackgroundImageProperty);
1170 SetValue(PopupBackgroundImageProperty, value);
1175 /// The background border.
1177 /// <since_tizen> 3 </since_tizen>
1178 /// This will be deprecated
1179 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1180 [EditorBrowsable(EditorBrowsableState.Never)]
1181 public Rectangle PopupBackgroundBorder
1185 return (Rectangle)GetValue(PopupBackgroundBorderProperty);
1189 SetValue(PopupBackgroundBorderProperty, value);
1194 /// The tail up image.
1196 /// <since_tizen> 3 </since_tizen>
1197 /// This will be deprecated
1198 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1199 [EditorBrowsable(EditorBrowsableState.Never)]
1200 public string TailUpImage
1204 return (string)GetValue(TailUpImageProperty);
1208 SetValue(TailUpImageProperty, value);
1213 /// The tail down image.
1215 /// <since_tizen> 3 </since_tizen>
1216 /// This will be deprecated
1217 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1218 [EditorBrowsable(EditorBrowsableState.Never)]
1219 public string TailDownImage
1223 return (string)GetValue(TailDownImageProperty);
1227 SetValue(TailDownImageProperty, value);
1232 /// The tail left image.
1234 /// <since_tizen> 3 </since_tizen>
1235 /// This will be deprecated
1236 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1237 [EditorBrowsable(EditorBrowsableState.Never)]
1238 public string TailLeftImage
1242 return (string)GetValue(TailLeftImageProperty);
1246 SetValue(TailLeftImageProperty, value);
1251 /// The tail right image.
1253 /// <since_tizen> 3 </since_tizen>
1254 /// This will be deprecated
1255 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1256 [EditorBrowsable(EditorBrowsableState.Never)]
1257 public string TailRightImage
1261 return (string)GetValue(TailRightImageProperty);
1265 SetValue(TailRightImageProperty, value);
1270 /// Sets the title for this popup.
1272 /// <param name="titleView">The actor to set the title.</param>
1273 /// <since_tizen> 3 </since_tizen>
1274 /// This will be deprecated
1275 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1276 [EditorBrowsable(EditorBrowsableState.Never)]
1277 public void SetTitle(View titleView)
1279 Interop.Popup.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
1280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1284 /// Sets the content actor.
1286 /// <param name="content">The actor to use.</param>
1287 /// <since_tizen> 3 </since_tizen>
1288 /// This will be deprecated
1289 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1290 [EditorBrowsable(EditorBrowsableState.Never)]
1291 public void SetContent(View content)
1293 Interop.Popup.Popup_SetContent(swigCPtr, View.getCPtr(content));
1294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1298 /// Sets the actor to use for the footer in this popup.
1300 /// <param name="footer">The footer actor to be added to this popup.</param>
1301 /// <since_tizen> 3 </since_tizen>
1302 /// This will be deprecated
1303 [EditorBrowsable(EditorBrowsableState.Never)]
1304 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1305 public void SetFooter(View footer)
1307 Interop.Popup.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
1308 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1312 /// Sets the display state of popup.<br />
1313 /// There are 4 total display states.<br />
1314 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
1316 /// The other two states are getable, but not setable, and are there for consistency.<br />
1318 /// | Value | Setting the state | Getting the state |<br />
1319 /// |----------|--------------------------------|--------------------------------|<br />
1320 /// | SHOWN | Show the popup | The popup is fully shown |<br />
1321 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
1322 /// | SHOWING | | The popup is transitioning in |<br />
1323 /// | HIDING | | The popup is transitioning out |<br />
1325 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
1327 /// <param name="displayState">The desired display state to change to.</param>
1328 /// <since_tizen> 3 </since_tizen>
1329 /// This will be deprecated
1330 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1331 [EditorBrowsable(EditorBrowsableState.Never)]
1332 public void SetDisplayState(Popup.DisplayStateType displayState)
1334 Interop.Popup.Popup_SetDisplayState(swigCPtr, (int)displayState);
1335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1338 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
1340 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
1343 internal View GetTitle()
1345 //to fix memory leak issue, match the handle count with native side.
1346 IntPtr cPtr = Interop.Popup.Popup_GetTitle(swigCPtr);
1347 View ret = this.GetInstanceSafely<View>(cPtr);
1348 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1352 internal View GetContent()
1354 //to fix memory leak issue, match the handle count with native side.
1355 IntPtr cPtr = Interop.Popup.Popup_GetContent(swigCPtr);
1356 View ret = this.GetInstanceSafely<View>(cPtr);
1357 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1361 internal View GetFooter()
1363 //to fix memory leak issue, match the handle count with native side.
1364 IntPtr cPtr = Interop.Popup.Popup_GetFooter(swigCPtr);
1365 View ret = this.GetInstanceSafely<View>(cPtr);
1366 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1370 internal Popup.DisplayStateType GetDisplayState()
1372 Popup.DisplayStateType ret = (Popup.DisplayStateType)Interop.Popup.Popup_GetDisplayState(swigCPtr);
1373 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1377 internal VoidSignal OutsideTouchedSignal()
1379 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_OutsideTouchedSignal(swigCPtr), false);
1380 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1384 internal VoidSignal ShowingSignal()
1386 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShowingSignal(swigCPtr), false);
1387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1391 internal VoidSignal ShownSignal()
1393 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShownSignal(swigCPtr), false);
1394 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1398 internal VoidSignal HidingSignal()
1400 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HidingSignal(swigCPtr), false);
1401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1405 internal VoidSignal HiddenSignal()
1407 VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HiddenSignal(swigCPtr), false);
1408 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1415 /// <param name="type">The dispose type</param>
1416 /// <since_tizen> 3 </since_tizen>
1417 /// This will be deprecated
1418 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1419 [EditorBrowsable(EditorBrowsableState.Never)]
1420 protected override void Dispose(DisposeTypes type)
1427 //Release your own unmanaged resources here.
1428 //You should not access any managed member here except static instance.
1429 //because the execution order of Finalizes is non-deterministic.
1432 if (_popUpHiddenEventCallbackDelegate != null)
1434 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
1437 if (_popUpHidingEventCallbackDelegate != null)
1439 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
1443 if (_popUpShownEventCallbackDelegate != null)
1445 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
1448 if (_popUpShowingEventCallbackDelegate != null)
1450 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
1453 if (_popUpOutsideTouchedEventCallbackDelegate != null)
1455 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
1461 /// This will not be public opened.
1462 [EditorBrowsable(EditorBrowsableState.Never)]
1463 protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
1465 Interop.Popup.delete_Popup(swigCPtr);
1468 // Callback for Popup OutsideTouchedSignal
1469 private void OnOutsideTouched()
1471 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
1473 if (_popUpOutsideTouchedEventHandler != null)
1475 //here we send all data to user event handlers
1476 _popUpOutsideTouchedEventHandler(this, e);
1480 // Callback for ShowingSignal
1481 private void OnShowing()
1483 ShowingEventArgs e = new ShowingEventArgs();
1485 if (_popUpShowingEventHandler != null)
1487 //here we send all data to user event handlers
1488 _popUpShowingEventHandler(this, e);
1492 // Callback for ShownSignal
1493 private void OnShown()
1495 ShownEventArgs e = new ShownEventArgs();
1497 if (_popUpShownEventHandler != null)
1499 //here we send all data to user event handlers
1500 _popUpShownEventHandler(this, e);
1504 // Callback for HidingSignal
1505 private void OnHiding()
1507 HidingEventArgs e = new HidingEventArgs();
1509 if (_popUpHidingEventHandler != null)
1511 //here we send all data to user event handlers
1512 _popUpHidingEventHandler(this, e);
1516 // Callback for HiddenSignal
1517 private void OnHidden()
1519 HiddenEventArgs e = new HiddenEventArgs();
1521 if (_popUpHiddenEventHandler != null)
1523 //here we send all data to user event handlers
1524 _popUpHiddenEventHandler(this, e);
1529 /// Event arguments that passed via the OutsideTouchedEvent.
1531 /// <since_tizen> 3 </since_tizen>
1532 /// This will be deprecated
1533 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1534 [EditorBrowsable(EditorBrowsableState.Never)]
1535 public class TouchedOutsideEventArgs : EventArgs
1540 /// Event arguments that passed via the ShowingEventArgs.
1542 /// <since_tizen> 3 </since_tizen>
1543 /// This will be deprecated
1544 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1545 [EditorBrowsable(EditorBrowsableState.Never)]
1546 public class ShowingEventArgs : EventArgs
1551 /// Event arguments that passed via the ShownEventArgs.
1553 /// <since_tizen> 3 </since_tizen>
1554 /// This will be deprecated
1555 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1556 [EditorBrowsable(EditorBrowsableState.Never)]
1557 public class ShownEventArgs : EventArgs
1562 /// Event arguments that passed via the HidingEventArgs.
1564 /// <since_tizen> 3 </since_tizen>
1565 /// This will be deprecated
1566 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1567 [EditorBrowsable(EditorBrowsableState.Never)]
1568 public class HidingEventArgs : EventArgs
1573 /// Event arguments that passed via the HiddenEventArgs.
1575 /// <since_tizen> 3 </since_tizen>
1576 /// This will be deprecated
1577 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
1578 [EditorBrowsable(EditorBrowsableState.Never)]
1579 public class HiddenEventArgs : EventArgs
1583 internal new class Property
1585 internal static readonly int TITLE = Interop.Popup.Popup_Property_TITLE_get();
1586 internal static readonly int CONTENT = Interop.Popup.Popup_Property_CONTENT_get();
1587 internal static readonly int FOOTER = Interop.Popup.Popup_Property_FOOTER_get();
1588 internal static readonly int DISPLAY_STATE = Interop.Popup.Popup_Property_DISPLAY_STATE_get();
1589 internal static readonly int TOUCH_TRANSPARENT = Interop.Popup.Popup_Property_TOUCH_TRANSPARENT_get();
1590 internal static readonly int TAIL_VISIBILITY = Interop.Popup.Popup_Property_TAIL_VISIBILITY_get();
1591 internal static readonly int TAIL_POSITION = Interop.Popup.Popup_Property_TAIL_POSITION_get();
1592 internal static readonly int CONTEXTUAL_MODE = Interop.Popup.Popup_Property_CONTEXTUAL_MODE_get();
1593 internal static readonly int ANIMATION_DURATION = Interop.Popup.Popup_Property_ANIMATION_DURATION_get();
1594 internal static readonly int ANIMATION_MODE = Interop.Popup.Popup_Property_ANIMATION_MODE_get();
1595 internal static readonly int ENTRY_ANIMATION = Interop.Popup.Popup_Property_ENTRY_ANIMATION_get();
1596 internal static readonly int EXIT_ANIMATION = Interop.Popup.Popup_Property_EXIT_ANIMATION_get();
1597 internal static readonly int AUTO_HIDE_DELAY = Interop.Popup.Popup_Property_AUTO_HIDE_DELAY_get();
1598 internal static readonly int BACKING_ENABLED = Interop.Popup.Popup_Property_BACKING_ENABLED_get();
1599 internal static readonly int BACKING_COLOR = Interop.Popup.Popup_Property_BACKING_COLOR_get();
1600 internal static readonly int POPUP_BACKGROUND_IMAGE = Interop.Popup.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
1601 internal static readonly int POPUP_BACKGROUND_BORDER = Interop.Popup.Popup_Property_POPUP_BACKGROUND_BORDER_get();
1602 internal static readonly int TAIL_UP_IMAGE = Interop.Popup.Popup_Property_TAIL_UP_IMAGE_get();
1603 internal static readonly int TAIL_DOWN_IMAGE = Interop.Popup.Popup_Property_TAIL_DOWN_IMAGE_get();
1604 internal static readonly int TAIL_LEFT_IMAGE = Interop.Popup.Popup_Property_TAIL_LEFT_IMAGE_get();
1605 internal static readonly int TAIL_RIGHT_IMAGE = Interop.Popup.Popup_Property_TAIL_RIGHT_IMAGE_get();