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 /// <since_tizen> 3 </since_tizen>
28 public class Popup : View
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
45 /// <param name="type">The dispose type</param>
46 /// <since_tizen> 3 </since_tizen>
47 protected override void Dispose(DisposeTypes type)
54 if (type == DisposeTypes.Explicit)
57 //Release your own managed resources here.
58 //You should release all of your own disposable objects here.
62 //Release your own unmanaged resources here.
63 //You should not access any managed member here except static instance.
64 //because the execution order of Finalizes is non-deterministic.
66 if (_popUpHiddenEventCallbackDelegate != null)
68 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
71 if (_popUpHidingEventCallbackDelegate != null)
73 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
76 if (_popUpShownEventCallbackDelegate != null)
78 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
81 if (_popUpShowingEventCallbackDelegate != null)
83 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
86 if (_popUpOutsideTouchedEventCallbackDelegate != null)
88 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
91 if (swigCPtr.Handle != global::System.IntPtr.Zero)
96 NDalicPINVOKE.delete_Popup(swigCPtr);
98 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
108 /// Event arguments that passed via the OutsideTouchedEvent.
110 /// <since_tizen> 3 </since_tizen>
111 public class TouchedOutsideEventArgs : EventArgs
116 /// Event arguments that passed via the ShowingEventArgs.
118 /// <since_tizen> 3 </since_tizen>
119 public class ShowingEventArgs : EventArgs
124 /// Event arguments that passed via the ShownEventArgs.
126 /// <since_tizen> 3 </since_tizen>
127 public class ShownEventArgs : EventArgs
132 /// Event arguments that passed via the HidingEventArgs.
134 /// <since_tizen> 3 </since_tizen>
135 public class HidingEventArgs : EventArgs
140 /// Event arguments that passed via the HiddenEventArgs.
142 /// <since_tizen> 3 </since_tizen>
143 public class HiddenEventArgs : EventArgs
147 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
148 private delegate void OutsideTouchedEventCallbackDelegate();
149 private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
150 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
152 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
153 private delegate void ShowingEventCallbackDelegate();
154 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
155 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
157 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
158 private delegate void ShownEventCallbackDelegate();
159 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
160 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
162 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
163 private delegate void HidingEventCallbackDelegate();
164 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
165 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
167 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
168 private delegate void HiddenEventCallbackDelegate();
169 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
170 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
173 /// An event is sent when the user has touched outside the dialog.
175 /// <since_tizen> 3 </since_tizen>
176 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
180 if (_popUpOutsideTouchedEventHandler == null)
182 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
183 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
185 _popUpOutsideTouchedEventHandler += value;
189 _popUpOutsideTouchedEventHandler -= value;
190 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
192 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
197 // Callback for Popup OutsideTouchedSignal
198 private void OnOutsideTouched()
200 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
202 if (_popUpOutsideTouchedEventHandler != null)
204 //here we send all data to user event handlers
205 _popUpOutsideTouchedEventHandler(this, e);
210 /// An event is sent when the popup starts showing.
212 /// <since_tizen> 3 </since_tizen>
213 public event EventHandler<ShowingEventArgs> Showing
217 if (_popUpShowingEventHandler == null)
219 _popUpShowingEventCallbackDelegate = (OnShowing);
220 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
222 _popUpShowingEventHandler += value;
226 _popUpShowingEventHandler -= value;
227 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
229 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
234 // Callback for ShowingSignal
235 private void OnShowing()
237 ShowingEventArgs e = new ShowingEventArgs();
239 if (_popUpShowingEventHandler != null)
241 //here we send all data to user event handlers
242 _popUpShowingEventHandler(this, e);
248 /// An event is sent when the popup has been fully displayed.
250 /// <since_tizen> 3 </since_tizen>
251 public event EventHandler<ShownEventArgs> Shown
255 if (_popUpShownEventHandler == null)
257 _popUpShownEventCallbackDelegate = (OnShown);
258 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
260 _popUpShownEventHandler += value;
264 _popUpShownEventHandler -= value;
265 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
267 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
272 // Callback for ShownSignal
273 private void OnShown()
275 ShownEventArgs e = new ShownEventArgs();
277 if (_popUpShownEventHandler != null)
279 //here we send all data to user event handlers
280 _popUpShownEventHandler(this, e);
285 /// An event is sent when the popup starts to hide.
287 /// <since_tizen> 3 </since_tizen>
288 public event EventHandler<HidingEventArgs> Hiding
292 if (_popUpHidingEventHandler == null)
294 _popUpHidingEventCallbackDelegate = (OnHiding);
295 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
297 _popUpHidingEventHandler += value;
301 _popUpHidingEventHandler -= value;
302 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
304 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
309 // Callback for HidingSignal
310 private void OnHiding()
312 HidingEventArgs e = new HidingEventArgs();
314 if (_popUpHidingEventHandler != null)
316 //here we send all data to user event handlers
317 _popUpHidingEventHandler(this, e);
322 /// An event is sent when the popup has been completely hidden.
324 /// <since_tizen> 3 </since_tizen>
325 public event EventHandler<HiddenEventArgs> Hidden
329 if (_popUpHiddenEventHandler == null)
331 _popUpHiddenEventCallbackDelegate = (OnHidden);
332 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
334 _popUpHiddenEventHandler += value;
338 _popUpHiddenEventHandler -= value;
339 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
341 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
346 // Callback for HiddenSignal
347 private void OnHidden()
349 HiddenEventArgs e = new HiddenEventArgs();
351 if (_popUpHiddenEventHandler != null)
353 //here we send all data to user event handlers
354 _popUpHiddenEventHandler(this, e);
358 internal new class Property
360 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
361 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
362 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
363 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
364 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
365 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
366 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
367 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
368 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
369 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
370 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
371 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
372 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
373 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
374 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
375 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
376 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
377 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
378 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
379 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
380 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
384 /// Creates the popup.
386 /// <since_tizen> 3 </since_tizen>
387 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
389 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
394 /// Downcasts a handle to popup handle.
396 /// <since_tizen> 3 </since_tizen>
397 /// Please do not use! this will be deprecated!
398 /// Instead please use as keyword.
399 [Obsolete("Please do not use! This will be deprecated! Please use as keyword instead!")]
400 [EditorBrowsable(EditorBrowsableState.Never)]
401 public new static Popup DownCast(BaseHandle handle)
403 Popup ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup;
404 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
409 /// Sets the title for this popup.
411 /// <param name="titleView">The actor to set the title.</param>
412 /// <since_tizen> 3 </since_tizen>
413 public void SetTitle(View titleView)
415 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
419 internal View GetTitle()
421 IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
422 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
424 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
429 /// Sets the content actor.
431 /// <param name="content">The actor to use.</param>
432 /// <since_tizen> 3 </since_tizen>
433 public void SetContent(View content)
435 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
439 internal View GetContent()
441 IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
442 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
444 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
449 /// Sets the actor to use for the footer in this popup.
451 /// <param name="footer">The footer actor to be added to this popup.</param>
452 /// <since_tizen> 3 </since_tizen>
453 public void SetFooter(View footer)
455 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
459 internal View GetFooter()
461 IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
462 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
464 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
469 /// Sets the display state of popup.<br />
470 /// There are 4 total display states.<br />
471 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
473 /// The other two states are getable, but not setable, and are there for consistency.<br />
475 /// | Value | Setting the state | Getting the state |<br />
476 /// |----------|--------------------------------|--------------------------------|<br />
477 /// | SHOWN | Show the popup | The popup is fully shown |<br />
478 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
479 /// | SHOWING | | The popup is transitioning in |<br />
480 /// | HIDING | | The popup is transitioning out |<br />
482 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
484 /// <param name="displayState">The desired display state to change to.</param>
485 /// <since_tizen> 3 </since_tizen>
486 public void SetDisplayState(Popup.DisplayStateType displayState)
488 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
492 internal Popup.DisplayStateType GetDisplayState()
494 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
495 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
499 internal VoidSignal OutsideTouchedSignal()
501 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
502 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
506 internal VoidSignal ShowingSignal()
508 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
509 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
513 internal VoidSignal ShownSignal()
515 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
516 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 internal VoidSignal HidingSignal()
522 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
523 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527 internal VoidSignal HiddenSignal()
529 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
530 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
535 /// The display states of the popup.
537 /// <since_tizen> 3 </since_tizen>
538 public enum DisplayStateType
541 /// The popup is transitioning in
543 /// <since_tizen> 3 </since_tizen>
546 /// The popup is fully shown
548 /// <since_tizen> 3 </since_tizen>
551 /// The popup is transitioning out
553 /// <since_tizen> 3 </since_tizen>
556 /// The popup is fully hidden
558 /// <since_tizen> 3 </since_tizen>
563 /// The animation modes within the popup.<br />
564 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
566 /// <since_tizen> 3 </since_tizen>
567 public enum AnimationModeType
572 /// <since_tizen> 3 </since_tizen>
575 /// Popup zooms in and out animating the scale property.
577 /// <since_tizen> 3 </since_tizen>
580 /// Popup fades in and out
582 /// <since_tizen> 3 </since_tizen>
585 /// Use the EntryAnimation and ExitAnimation animation properties.
587 /// <since_tizen> 3 </since_tizen>
592 /// The types of the contextual layout.<br />
593 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
594 /// NON_CONTEXTUAL disables any contextual positioning.<br />
596 /// <since_tizen> 3 </since_tizen>
597 public enum ContextualModeType
600 /// any contextual positioning
602 /// <since_tizen> 3 </since_tizen>
607 /// <since_tizen> 3 </since_tizen>
612 /// <since_tizen> 3 </since_tizen>
617 /// <since_tizen> 3 </since_tizen>
622 /// <since_tizen> 3 </since_tizen>
629 /// <since_tizen> 3 </since_tizen>
630 public PropertyMap Title
634 PropertyMap temp = new PropertyMap();
635 GetProperty(Popup.Property.TITLE).Get(temp);
640 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
644 /// The popup content.
646 /// <since_tizen> 3 </since_tizen>
647 public PropertyMap Content
651 PropertyMap temp = new PropertyMap();
652 GetProperty(Popup.Property.CONTENT).Get(temp);
657 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
661 /// The popup footer.
663 /// <since_tizen> 3 </since_tizen>
664 public PropertyMap Footer
668 PropertyMap temp = new PropertyMap();
669 GetProperty(Popup.Property.FOOTER).Get(temp);
674 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
678 /// The popup display state.
680 /// <since_tizen> 3 </since_tizen>
681 public DisplayStateType DisplayState
686 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
688 NUILog.Error("DisplayState get error!");
693 return DisplayStateType.Showing;
695 return DisplayStateType.Shown;
697 return DisplayStateType.Hiding;
699 return DisplayStateType.Hidden;
701 return DisplayStateType.Hidden;
706 string valueToString = "";
709 case DisplayStateType.Showing:
711 valueToString = "SHOWING";
714 case DisplayStateType.Shown:
716 valueToString = "SHOWN";
719 case DisplayStateType.Hiding:
721 valueToString = "HIDING";
724 case DisplayStateType.Hidden:
726 valueToString = "HIDDEN";
731 valueToString = "HIDDEN";
735 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
739 /// The touch transparent.
741 /// <since_tizen> 3 </since_tizen>
742 public bool TouchTransparent
747 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
752 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
756 /// The popup tail visibility.
758 /// <since_tizen> 3 </since_tizen>
759 public bool TailVisibility
764 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
769 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
773 /// The popup tail position.
775 /// <since_tizen> 3 </since_tizen>
776 public Vector3 TailPosition
780 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
781 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
786 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
790 /// The contextual mode.
792 /// <since_tizen> 3 </since_tizen>
793 public ContextualModeType ContextualMode
798 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
800 NUILog.Error("ContextualMode get error!");
804 case "NON_CONTEXTUAL":
805 return ContextualModeType.NonContextual;
807 return ContextualModeType.Above;
809 return ContextualModeType.Rright;
811 return ContextualModeType.Below;
813 return ContextualModeType.Left;
815 return ContextualModeType.Below;
820 string valueToString = "";
823 case ContextualModeType.NonContextual:
825 valueToString = "NON_CONTEXTUAL";
828 case ContextualModeType.Above:
830 valueToString = "ABOVE";
833 case ContextualModeType.Rright:
835 valueToString = "RIGHT";
838 case ContextualModeType.Below:
840 valueToString = "BELOW";
843 case ContextualModeType.Left:
845 valueToString = "LEFT";
850 valueToString = "BELOW";
854 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
858 /// The animation duration.
860 /// <since_tizen> 3 </since_tizen>
861 public float AnimationDuration
866 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
871 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
875 /// The animation mode.
877 /// <since_tizen> 3 </since_tizen>
878 public AnimationModeType AnimationMode
883 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
885 NUILog.Error("AnimationMode get error!");
890 return AnimationModeType.None;
892 return AnimationModeType.Zoom;
894 return AnimationModeType.Fade;
896 return AnimationModeType.Custom;
898 return AnimationModeType.Fade;
903 string valueToString = "";
906 case AnimationModeType.None:
908 valueToString = "NONE";
911 case AnimationModeType.Zoom:
913 valueToString = "ZOOM";
916 case AnimationModeType.Fade:
918 valueToString = "FADE";
921 case AnimationModeType.Custom:
923 valueToString = "CUSTOM";
928 valueToString = "FADE";
932 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
936 /// The entry animation.
938 /// <since_tizen> 3 </since_tizen>
939 public PropertyMap EntryAnimation
943 PropertyMap temp = new PropertyMap();
944 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
949 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
953 /// The exit animation.
955 /// <since_tizen> 3 </since_tizen>
956 public PropertyMap ExitAnimation
960 PropertyMap temp = new PropertyMap();
961 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
966 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
970 /// The auto hide delay.
972 /// <since_tizen> 3 </since_tizen>
973 public int AutoHideDelay
978 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
983 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
987 /// The backing enabled.
989 /// <since_tizen> 3 </since_tizen>
990 public bool BackingEnabled
995 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
1000 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
1004 /// The backing color.
1006 /// <since_tizen> 3 </since_tizen>
1007 public Vector4 BackingColor
1011 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1012 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
1017 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
1021 /// The background image.
1023 /// <since_tizen> 3 </since_tizen>
1024 public string PopupBackgroundImage
1029 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
1034 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
1038 /// The background border.
1040 /// <since_tizen> 3 </since_tizen>
1041 public Rectangle PopupBackgroundBorder
1045 Rectangle temp = new Rectangle(0, 0, 0, 0);
1046 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
1051 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
1055 /// The tail up image.
1057 /// <since_tizen> 3 </since_tizen>
1058 public string TailUpImage
1063 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
1068 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1072 /// The tail down image.
1074 /// <since_tizen> 3 </since_tizen>
1075 public string TailDownImage
1080 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1085 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1089 /// The tail left image.
1091 /// <since_tizen> 3 </since_tizen>
1092 public string TailLeftImage
1097 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1102 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1106 /// The tail right image.
1108 /// <since_tizen> 3 </since_tizen>
1109 public string TailRightImage
1114 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1119 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));