2 * Copyright(c) 2017 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;
22 namespace Tizen.NUI.UIComponents
25 /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields.
27 public class Popup : View
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
36 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
38 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
44 /// <param name="type">The dispose type</param>
45 /// <since_tizen> 3 </since_tizen>
46 protected override void Dispose(DisposeTypes type)
53 if (type == DisposeTypes.Explicit)
56 //Release your own managed resources here.
57 //You should release all of your own disposable objects here.
61 //Release your own unmanaged resources here.
62 //You should not access any managed member here except static instance.
63 //because the execution order of Finalizes is non-deterministic.
65 if (_popUpHiddenEventCallbackDelegate != null)
67 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
70 if (_popUpHidingEventCallbackDelegate != null)
72 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
75 if (_popUpShownEventCallbackDelegate != null)
77 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
80 if (_popUpShowingEventCallbackDelegate != null)
82 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
85 if (_popUpOutsideTouchedEventCallbackDelegate != null)
87 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
90 if (swigCPtr.Handle != global::System.IntPtr.Zero)
95 NDalicPINVOKE.delete_Popup(swigCPtr);
97 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
107 /// Event arguments that passed via the OutsideTouchedEvent.
109 public class TouchedOutsideEventArgs : EventArgs
114 /// Event arguments that passed via the ShowingEventArgs.
116 public class ShowingEventArgs : EventArgs
121 /// Event arguments that passed via the ShownEventArgs.
123 public class ShownEventArgs : EventArgs
128 /// Event arguments that passed via the HidingEventArgs.
130 public class HidingEventArgs : EventArgs
135 /// Event arguments that passed via the HiddenEventArgs.
137 public class HiddenEventArgs : EventArgs
141 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
142 private delegate void OutsideTouchedEventCallbackDelegate();
143 private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
144 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
146 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
147 private delegate void ShowingEventCallbackDelegate();
148 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
149 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
151 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
152 private delegate void ShownEventCallbackDelegate();
153 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
154 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
156 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
157 private delegate void HidingEventCallbackDelegate();
158 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
159 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
161 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
162 private delegate void HiddenEventCallbackDelegate();
163 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
164 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
167 /// An event is sent when the user has touched outside the dialog.
169 /// <since_tizen> 4 </since_tizen>
170 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
174 if (_popUpOutsideTouchedEventHandler == null)
176 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
177 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
179 _popUpOutsideTouchedEventHandler += value;
183 _popUpOutsideTouchedEventHandler -= value;
184 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
186 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
191 // Callback for Popup OutsideTouchedSignal
192 private void OnOutsideTouched()
194 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
196 if (_popUpOutsideTouchedEventHandler != null)
198 //here we send all data to user event handlers
199 _popUpOutsideTouchedEventHandler(this, e);
204 /// An event is sent when the popup starts showing.
206 /// <since_tizen> 3 </since_tizen>
207 public event EventHandler<ShowingEventArgs> Showing
211 if (_popUpShowingEventHandler == null)
213 _popUpShowingEventCallbackDelegate = (OnShowing);
214 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
216 _popUpShowingEventHandler += value;
220 _popUpShowingEventHandler -= value;
221 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
223 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
228 // Callback for ShowingSignal
229 private void OnShowing()
231 ShowingEventArgs e = new ShowingEventArgs();
233 if (_popUpShowingEventHandler != null)
235 //here we send all data to user event handlers
236 _popUpShowingEventHandler(this, e);
242 /// An event is sent when the popup has been fully displayed.
244 /// <since_tizen> 3 </since_tizen>
245 public event EventHandler<ShownEventArgs> Shown
249 if (_popUpShownEventHandler == null)
251 _popUpShownEventCallbackDelegate = (OnShown);
252 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
254 _popUpShownEventHandler += value;
258 _popUpShownEventHandler -= value;
259 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
261 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
266 // Callback for ShownSignal
267 private void OnShown()
269 ShownEventArgs e = new ShownEventArgs();
271 if (_popUpShownEventHandler != null)
273 //here we send all data to user event handlers
274 _popUpShownEventHandler(this, e);
279 /// An event is sent when the popup starts to hide.
281 /// <since_tizen> 3 </since_tizen>
282 public event EventHandler<HidingEventArgs> Hiding
286 if (_popUpHidingEventHandler == null)
288 _popUpHidingEventCallbackDelegate = (OnHiding);
289 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
291 _popUpHidingEventHandler += value;
295 _popUpHidingEventHandler -= value;
296 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
298 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
303 // Callback for HidingSignal
304 private void OnHiding()
306 HidingEventArgs e = new HidingEventArgs();
308 if (_popUpHidingEventHandler != null)
310 //here we send all data to user event handlers
311 _popUpHidingEventHandler(this, e);
316 /// An event is sent when the popup has been completely hidden.
318 /// <since_tizen> 3 </since_tizen>
319 public event EventHandler<HiddenEventArgs> Hidden
323 if (_popUpHiddenEventHandler == null)
325 _popUpHiddenEventCallbackDelegate = (OnHidden);
326 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
328 _popUpHiddenEventHandler += value;
332 _popUpHiddenEventHandler -= value;
333 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
335 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
340 // Callback for HiddenSignal
341 private void OnHidden()
343 HiddenEventArgs e = new HiddenEventArgs();
345 if (_popUpHiddenEventHandler != null)
347 //here we send all data to user event handlers
348 _popUpHiddenEventHandler(this, e);
352 internal new class Property
354 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
355 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
356 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
357 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
358 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
359 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
360 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
361 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
362 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
363 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
364 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
365 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
366 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
367 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
368 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
369 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
370 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
371 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
372 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
373 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
374 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
378 /// Creates the popup.
380 /// <since_tizen> 3 </since_tizen>
381 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
383 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
388 /// Downcasts a handle to popup handle.
390 /// <since_tizen> 3 </since_tizen>
391 /// Please do not use! this will be deprecated!
392 /// Instead please use as keyword.
393 [Obsolete("Please DO NOT use! This will be deprecated, instead please USE as keyword.")]
394 [EditorBrowsable(EditorBrowsableState.Never)]
395 public new static Popup DownCast(BaseHandle handle)
397 Popup ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup;
398 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
403 /// Sets the title for this popup.
405 /// <param name="titleView">The actor to set the title.</param>
406 /// <since_tizen> 3 </since_tizen>
407 public void SetTitle(View titleView)
409 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
410 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
413 internal View GetTitle()
415 IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
416 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
418 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
423 /// Sets the content actor.
425 /// <param name="content">The actor to use.</param>
426 /// <since_tizen> 3 </since_tizen>
427 public void SetContent(View content)
429 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
430 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
433 internal View GetContent()
435 IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
436 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
438 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
443 /// Sets the actor to use for the footer in this popup.
445 /// <param name="footer">The footer actor to be added to this popup.</param>
446 /// <since_tizen> 3 </since_tizen>
447 public void SetFooter(View footer)
449 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
450 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
453 internal View GetFooter()
455 IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
456 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
458 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
463 /// Sets the display state of popup.<br />
464 /// There are 4 total display states.<br />
465 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
467 /// The other two states are getable, but not setable, and are there for consistency.<br />
469 /// | Value | Setting the state | Getting the state |<br />
470 /// |----------|--------------------------------|--------------------------------|<br />
471 /// | SHOWN | Show the popup | The popup is fully shown |<br />
472 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
473 /// | SHOWING | | The popup is transitioning in |<br />
474 /// | HIDING | | The popup is transitioning out |<br />
476 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
478 /// <param name="displayState">The desired display state to change to.</param>
479 /// <since_tizen> 3 </since_tizen>
480 public void SetDisplayState(Popup.DisplayStateType displayState)
482 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
483 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486 internal Popup.DisplayStateType GetDisplayState()
488 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
493 internal VoidSignal OutsideTouchedSignal()
495 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
500 internal VoidSignal ShowingSignal()
502 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
503 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507 internal VoidSignal ShownSignal()
509 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
510 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514 internal VoidSignal HidingSignal()
516 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
517 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
521 internal VoidSignal HiddenSignal()
523 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
524 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
529 /// The display states of the popup.
531 /// <since_tizen> 3 </since_tizen>
532 public enum DisplayStateType
535 /// The popup is transitioning in
537 /// <since_tizen> 3 </since_tizen>
540 /// The popup is fully shown
542 /// <since_tizen> 3 </since_tizen>
545 /// The popup is transitioning out
547 /// <since_tizen> 3 </since_tizen>
550 /// The popup is fully hidden
552 /// <since_tizen> 3 </since_tizen>
557 /// The animation modes within the popup.<br />
558 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
560 /// <since_tizen> 3 </since_tizen>
561 public enum AnimationModeType
566 /// <since_tizen> 3 </since_tizen>
569 /// Popup zooms in and out animating the scale property.
571 /// <since_tizen> 3 </since_tizen>
574 /// Popup fades in and out
576 /// <since_tizen> 3 </since_tizen>
579 /// Use the EntryAnimation and ExitAnimation animation properties.
581 /// <since_tizen> 3 </since_tizen>
586 /// The types of the contextual layout.<br />
587 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
588 /// NON_CONTEXTUAL disables any contextual positioning.<br />
590 /// <since_tizen> 3 </since_tizen>
591 public enum ContextualModeType
594 /// any contextual positioning
596 /// <since_tizen> 3 </since_tizen>
601 /// <since_tizen> 3 </since_tizen>
606 /// <since_tizen> 3 </since_tizen>
611 /// <since_tizen> 3 </since_tizen>
616 /// <since_tizen> 3 </since_tizen>
623 /// <since_tizen> 3 </since_tizen>
624 public PropertyMap Title
628 PropertyMap temp = new PropertyMap();
629 GetProperty(Popup.Property.TITLE).Get(temp);
634 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
638 /// The popup content.
640 /// <since_tizen> 3 </since_tizen>
641 public PropertyMap Content
645 PropertyMap temp = new PropertyMap();
646 GetProperty(Popup.Property.CONTENT).Get(temp);
651 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
655 /// The popup footer.
657 /// <since_tizen> 3 </since_tizen>
658 public PropertyMap Footer
662 PropertyMap temp = new PropertyMap();
663 GetProperty(Popup.Property.FOOTER).Get(temp);
668 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
672 /// The popup display state.
674 /// <since_tizen> 3 </since_tizen>
675 public DisplayStateType DisplayState
680 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
682 NUILog.Error("DisplayState get error!");
687 return DisplayStateType.Showing;
689 return DisplayStateType.Shown;
691 return DisplayStateType.Hiding;
693 return DisplayStateType.Hidden;
695 return DisplayStateType.Hidden;
700 string valueToString = "";
703 case DisplayStateType.Showing:
705 valueToString = "SHOWING";
708 case DisplayStateType.Shown:
710 valueToString = "SHOWN";
713 case DisplayStateType.Hiding:
715 valueToString = "HIDING";
718 case DisplayStateType.Hidden:
720 valueToString = "HIDDEN";
725 valueToString = "HIDDEN";
729 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
733 /// The touch transparent.
735 /// <since_tizen> 3 </since_tizen>
736 public bool TouchTransparent
741 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
746 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
750 /// The popup tail visibility.
752 /// <since_tizen> 3 </since_tizen>
753 public bool TailVisibility
758 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
763 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
767 /// The popup tail position.
769 /// <since_tizen> 3 </since_tizen>
770 public Vector3 TailPosition
774 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
775 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
780 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
784 /// The contextual mode.
786 /// <since_tizen> 3 </since_tizen>
787 public ContextualModeType ContextualMode
792 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
794 NUILog.Error("ContextualMode get error!");
798 case "NON_CONTEXTUAL":
799 return ContextualModeType.NonContextual;
801 return ContextualModeType.Above;
803 return ContextualModeType.Rright;
805 return ContextualModeType.Below;
807 return ContextualModeType.Left;
809 return ContextualModeType.Below;
814 string valueToString = "";
817 case ContextualModeType.NonContextual:
819 valueToString = "NON_CONTEXTUAL";
822 case ContextualModeType.Above:
824 valueToString = "ABOVE";
827 case ContextualModeType.Rright:
829 valueToString = "RIGHT";
832 case ContextualModeType.Below:
834 valueToString = "BELOW";
837 case ContextualModeType.Left:
839 valueToString = "LEFT";
844 valueToString = "BELOW";
848 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
852 /// The animation duration.
854 /// <since_tizen> 3 </since_tizen>
855 public float AnimationDuration
860 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
865 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
869 /// The animation mode.
871 /// <since_tizen> 3 </since_tizen>
872 public AnimationModeType AnimationMode
877 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
879 NUILog.Error("AnimationMode get error!");
884 return AnimationModeType.None;
886 return AnimationModeType.Zoom;
888 return AnimationModeType.Fade;
890 return AnimationModeType.Custom;
892 return AnimationModeType.Fade;
897 string valueToString = "";
900 case AnimationModeType.None:
902 valueToString = "NONE";
905 case AnimationModeType.Zoom:
907 valueToString = "ZOOM";
910 case AnimationModeType.Fade:
912 valueToString = "FADE";
915 case AnimationModeType.Custom:
917 valueToString = "CUSTOM";
922 valueToString = "FADE";
926 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
930 /// The entry animation.
932 /// <since_tizen> 3 </since_tizen>
933 public PropertyMap EntryAnimation
937 PropertyMap temp = new PropertyMap();
938 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
943 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
947 /// The exit animation.
949 /// <since_tizen> 3 </since_tizen>
950 public PropertyMap ExitAnimation
954 PropertyMap temp = new PropertyMap();
955 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
960 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
964 /// The auto hide delay.
966 /// <since_tizen> 3 </since_tizen>
967 public int AutoHideDelay
972 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
977 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
981 /// The backing enabled.
983 /// <since_tizen> 3 </since_tizen>
984 public bool BackingEnabled
989 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
994 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
998 /// The backing color.
1000 /// <since_tizen> 3 </since_tizen>
1001 public Vector4 BackingColor
1005 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1006 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
1011 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
1015 /// The background image.
1017 /// <since_tizen> 3 </since_tizen>
1018 public string PopupBackgroundImage
1023 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
1028 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
1032 /// The background border.
1034 /// <since_tizen> 3 </since_tizen>
1035 public Rectangle PopupBackgroundBorder
1039 Rectangle temp = new Rectangle(0, 0, 0, 0);
1040 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
1045 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
1049 /// The tail up image.
1051 /// <since_tizen> 3 </since_tizen>
1052 public string TailUpImage
1057 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
1062 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1066 /// The tail down image.
1068 /// <since_tizen> 3 </since_tizen>
1069 public string TailDownImage
1074 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1079 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1083 /// The tail left image.
1085 /// <since_tizen> 3 </since_tizen>
1086 public string TailLeftImage
1091 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1096 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1100 /// The tail right image.
1102 /// <since_tizen> 3 </since_tizen>
1103 public string TailRightImage
1108 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1113 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));