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 /// Sets the title for this popup.
396 /// <param name="titleView">The actor to set the title.</param>
397 /// <since_tizen> 3 </since_tizen>
398 public void SetTitle(View titleView)
400 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
401 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404 internal View GetTitle()
406 IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
407 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
409 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
414 /// Sets the content actor.
416 /// <param name="content">The actor to use.</param>
417 /// <since_tizen> 3 </since_tizen>
418 public void SetContent(View content)
420 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
421 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
424 internal View GetContent()
426 IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
427 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
429 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434 /// Sets the actor to use for the footer in this popup.
436 /// <param name="footer">The footer actor to be added to this popup.</param>
437 /// <since_tizen> 3 </since_tizen>
438 public void SetFooter(View footer)
440 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
441 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
444 internal View GetFooter()
446 IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
447 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
449 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454 /// Sets the display state of popup.<br />
455 /// There are 4 total display states.<br />
456 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
458 /// The other two states are getable, but not setable, and are there for consistency.<br />
460 /// | Value | Setting the state | Getting the state |<br />
461 /// |----------|--------------------------------|--------------------------------|<br />
462 /// | SHOWN | Show the popup | The popup is fully shown |<br />
463 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
464 /// | SHOWING | | The popup is transitioning in |<br />
465 /// | HIDING | | The popup is transitioning out |<br />
467 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
469 /// <param name="displayState">The desired display state to change to.</param>
470 /// <since_tizen> 3 </since_tizen>
471 public void SetDisplayState(Popup.DisplayStateType displayState)
473 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
477 internal Popup.DisplayStateType GetDisplayState()
479 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
480 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 internal VoidSignal OutsideTouchedSignal()
486 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 internal VoidSignal ShowingSignal()
493 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498 internal VoidSignal ShownSignal()
500 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 internal VoidSignal HidingSignal()
507 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
508 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
512 internal VoidSignal HiddenSignal()
514 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
520 /// The display states of the popup.
522 /// <since_tizen> 3 </since_tizen>
523 public enum DisplayStateType
526 /// The popup is transitioning in
528 /// <since_tizen> 3 </since_tizen>
531 /// The popup is fully shown
533 /// <since_tizen> 3 </since_tizen>
536 /// The popup is transitioning out
538 /// <since_tizen> 3 </since_tizen>
541 /// The popup is fully hidden
543 /// <since_tizen> 3 </since_tizen>
548 /// The animation modes within the popup.<br />
549 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
551 /// <since_tizen> 3 </since_tizen>
552 public enum AnimationModeType
557 /// <since_tizen> 3 </since_tizen>
560 /// Popup zooms in and out animating the scale property.
562 /// <since_tizen> 3 </since_tizen>
565 /// Popup fades in and out
567 /// <since_tizen> 3 </since_tizen>
570 /// Use the EntryAnimation and ExitAnimation animation properties.
572 /// <since_tizen> 3 </since_tizen>
577 /// The types of the contextual layout.<br />
578 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
579 /// NON_CONTEXTUAL disables any contextual positioning.<br />
581 /// <since_tizen> 3 </since_tizen>
582 public enum ContextualModeType
585 /// any contextual positioning
587 /// <since_tizen> 3 </since_tizen>
592 /// <since_tizen> 3 </since_tizen>
597 /// <since_tizen> 3 </since_tizen>
602 /// <since_tizen> 3 </since_tizen>
607 /// <since_tizen> 3 </since_tizen>
614 /// <since_tizen> 3 </since_tizen>
615 public PropertyMap Title
619 PropertyMap temp = new PropertyMap();
620 GetProperty(Popup.Property.TITLE).Get(temp);
625 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
629 /// The popup content.
631 /// <since_tizen> 3 </since_tizen>
632 public PropertyMap Content
636 PropertyMap temp = new PropertyMap();
637 GetProperty(Popup.Property.CONTENT).Get(temp);
642 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
646 /// The popup footer.
648 /// <since_tizen> 3 </since_tizen>
649 public PropertyMap Footer
653 PropertyMap temp = new PropertyMap();
654 GetProperty(Popup.Property.FOOTER).Get(temp);
659 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
663 /// The popup display state.
665 /// <since_tizen> 3 </since_tizen>
666 public DisplayStateType DisplayState
671 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
673 NUILog.Error("DisplayState get error!");
678 return DisplayStateType.Showing;
680 return DisplayStateType.Shown;
682 return DisplayStateType.Hiding;
684 return DisplayStateType.Hidden;
686 return DisplayStateType.Hidden;
691 string valueToString = "";
694 case DisplayStateType.Showing:
696 valueToString = "SHOWING";
699 case DisplayStateType.Shown:
701 valueToString = "SHOWN";
704 case DisplayStateType.Hiding:
706 valueToString = "HIDING";
709 case DisplayStateType.Hidden:
711 valueToString = "HIDDEN";
716 valueToString = "HIDDEN";
720 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
724 /// The touch transparent.
726 /// <since_tizen> 3 </since_tizen>
727 public bool TouchTransparent
732 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
737 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
741 /// The popup tail visibility.
743 /// <since_tizen> 3 </since_tizen>
744 public bool TailVisibility
749 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
754 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
758 /// The popup tail position.
760 /// <since_tizen> 3 </since_tizen>
761 public Vector3 TailPosition
765 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
766 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
771 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
775 /// The contextual mode.
777 /// <since_tizen> 3 </since_tizen>
778 public ContextualModeType ContextualMode
783 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
785 NUILog.Error("ContextualMode get error!");
789 case "NON_CONTEXTUAL":
790 return ContextualModeType.NonContextual;
792 return ContextualModeType.Above;
794 return ContextualModeType.Rright;
796 return ContextualModeType.Below;
798 return ContextualModeType.Left;
800 return ContextualModeType.Below;
805 string valueToString = "";
808 case ContextualModeType.NonContextual:
810 valueToString = "NON_CONTEXTUAL";
813 case ContextualModeType.Above:
815 valueToString = "ABOVE";
818 case ContextualModeType.Rright:
820 valueToString = "RIGHT";
823 case ContextualModeType.Below:
825 valueToString = "BELOW";
828 case ContextualModeType.Left:
830 valueToString = "LEFT";
835 valueToString = "BELOW";
839 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
843 /// The animation duration.
845 /// <since_tizen> 3 </since_tizen>
846 public float AnimationDuration
851 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
856 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
860 /// The animation mode.
862 /// <since_tizen> 3 </since_tizen>
863 public AnimationModeType AnimationMode
868 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
870 NUILog.Error("AnimationMode get error!");
875 return AnimationModeType.None;
877 return AnimationModeType.Zoom;
879 return AnimationModeType.Fade;
881 return AnimationModeType.Custom;
883 return AnimationModeType.Fade;
888 string valueToString = "";
891 case AnimationModeType.None:
893 valueToString = "NONE";
896 case AnimationModeType.Zoom:
898 valueToString = "ZOOM";
901 case AnimationModeType.Fade:
903 valueToString = "FADE";
906 case AnimationModeType.Custom:
908 valueToString = "CUSTOM";
913 valueToString = "FADE";
917 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
921 /// The entry animation.
923 /// <since_tizen> 3 </since_tizen>
924 public PropertyMap EntryAnimation
928 PropertyMap temp = new PropertyMap();
929 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
934 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
938 /// The exit animation.
940 /// <since_tizen> 3 </since_tizen>
941 public PropertyMap ExitAnimation
945 PropertyMap temp = new PropertyMap();
946 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
951 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
955 /// The auto hide delay.
957 /// <since_tizen> 3 </since_tizen>
958 public int AutoHideDelay
963 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
968 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
972 /// The backing enabled.
974 /// <since_tizen> 3 </since_tizen>
975 public bool BackingEnabled
980 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
985 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
989 /// The backing color.
991 /// <since_tizen> 3 </since_tizen>
992 public Vector4 BackingColor
996 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
997 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
1002 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
1006 /// The background image.
1008 /// <since_tizen> 3 </since_tizen>
1009 public string PopupBackgroundImage
1014 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
1019 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
1023 /// The background border.
1025 /// <since_tizen> 3 </since_tizen>
1026 public Rectangle PopupBackgroundBorder
1030 Rectangle temp = new Rectangle(0, 0, 0, 0);
1031 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
1036 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
1040 /// The tail up image.
1042 /// <since_tizen> 3 </since_tizen>
1043 public string TailUpImage
1048 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
1053 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1057 /// The tail down image.
1059 /// <since_tizen> 3 </since_tizen>
1060 public string TailDownImage
1065 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1070 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1074 /// The tail left image.
1076 /// <since_tizen> 3 </since_tizen>
1077 public string TailLeftImage
1082 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1087 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1091 /// The tail right image.
1093 /// <since_tizen> 3 </since_tizen>
1094 public string TailRightImage
1099 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1104 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));