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.
67 if (_popUpHiddenEventCallbackDelegate != null)
69 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
72 if (_popUpHidingEventCallbackDelegate != null)
74 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
78 if (_popUpShownEventCallbackDelegate != null)
80 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
83 if (_popUpShowingEventCallbackDelegate != null)
85 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
88 if (_popUpOutsideTouchedEventCallbackDelegate != null)
90 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
93 if (swigCPtr.Handle != global::System.IntPtr.Zero)
98 NDalicPINVOKE.delete_Popup(swigCPtr);
100 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
110 /// Event arguments that passed via the OutsideTouchedEvent.
112 /// <since_tizen> 3 </since_tizen>
113 public class TouchedOutsideEventArgs : EventArgs
118 /// Event arguments that passed via the ShowingEventArgs.
120 /// <since_tizen> 3 </since_tizen>
121 public class ShowingEventArgs : EventArgs
126 /// Event arguments that passed via the ShownEventArgs.
128 /// <since_tizen> 3 </since_tizen>
129 public class ShownEventArgs : EventArgs
134 /// Event arguments that passed via the HidingEventArgs.
136 /// <since_tizen> 3 </since_tizen>
137 public class HidingEventArgs : EventArgs
142 /// Event arguments that passed via the HiddenEventArgs.
144 /// <since_tizen> 3 </since_tizen>
145 public class HiddenEventArgs : EventArgs
149 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
150 private delegate void OutsideTouchedEventCallbackDelegate();
151 private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
152 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
154 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
155 private delegate void ShowingEventCallbackDelegate();
156 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
157 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
159 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
160 private delegate void ShownEventCallbackDelegate();
161 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
162 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
164 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
165 private delegate void HidingEventCallbackDelegate();
166 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
167 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
169 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
170 private delegate void HiddenEventCallbackDelegate();
171 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
172 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
175 /// An event is sent when the user has touched outside the dialog.
177 /// <since_tizen> 3 </since_tizen>
178 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
182 if (_popUpOutsideTouchedEventHandler == null)
184 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
185 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
187 _popUpOutsideTouchedEventHandler += value;
191 _popUpOutsideTouchedEventHandler -= value;
192 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
194 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
199 // Callback for Popup OutsideTouchedSignal
200 private void OnOutsideTouched()
202 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
204 if (_popUpOutsideTouchedEventHandler != null)
206 //here we send all data to user event handlers
207 _popUpOutsideTouchedEventHandler(this, e);
212 /// An event is sent when the popup starts showing.
214 /// <since_tizen> 3 </since_tizen>
215 public event EventHandler<ShowingEventArgs> Showing
219 if (_popUpShowingEventHandler == null)
221 _popUpShowingEventCallbackDelegate = (OnShowing);
222 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
224 _popUpShowingEventHandler += value;
228 _popUpShowingEventHandler -= value;
229 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
231 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
236 // Callback for ShowingSignal
237 private void OnShowing()
239 ShowingEventArgs e = new ShowingEventArgs();
241 if (_popUpShowingEventHandler != null)
243 //here we send all data to user event handlers
244 _popUpShowingEventHandler(this, e);
250 /// An event is sent when the popup has been fully displayed.
252 /// <since_tizen> 3 </since_tizen>
253 public event EventHandler<ShownEventArgs> Shown
257 if (_popUpShownEventHandler == null)
259 _popUpShownEventCallbackDelegate = (OnShown);
260 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
262 _popUpShownEventHandler += value;
266 _popUpShownEventHandler -= value;
267 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
269 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
274 // Callback for ShownSignal
275 private void OnShown()
277 ShownEventArgs e = new ShownEventArgs();
279 if (_popUpShownEventHandler != null)
281 //here we send all data to user event handlers
282 _popUpShownEventHandler(this, e);
287 /// An event is sent when the popup starts to hide.
289 /// <since_tizen> 3 </since_tizen>
290 public event EventHandler<HidingEventArgs> Hiding
294 if (_popUpHidingEventHandler == null)
296 _popUpHidingEventCallbackDelegate = (OnHiding);
297 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
299 _popUpHidingEventHandler += value;
303 _popUpHidingEventHandler -= value;
304 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
306 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
311 // Callback for HidingSignal
312 private void OnHiding()
314 HidingEventArgs e = new HidingEventArgs();
316 if (_popUpHidingEventHandler != null)
318 //here we send all data to user event handlers
319 _popUpHidingEventHandler(this, e);
324 /// An event is sent when the popup has been completely hidden.
326 /// <since_tizen> 3 </since_tizen>
327 public event EventHandler<HiddenEventArgs> Hidden
331 if (_popUpHiddenEventHandler == null)
333 _popUpHiddenEventCallbackDelegate = (OnHidden);
334 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
336 _popUpHiddenEventHandler += value;
340 _popUpHiddenEventHandler -= value;
341 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
343 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
348 // Callback for HiddenSignal
349 private void OnHidden()
351 HiddenEventArgs e = new HiddenEventArgs();
353 if (_popUpHiddenEventHandler != null)
355 //here we send all data to user event handlers
356 _popUpHiddenEventHandler(this, e);
360 internal new class Property
362 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
363 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
364 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
365 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
366 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
367 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
368 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
369 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
370 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
371 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
372 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
373 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
374 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
375 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
376 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
377 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
378 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
379 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
380 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
381 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
382 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
386 /// Creates the popup.
388 /// <since_tizen> 3 </since_tizen>
389 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
391 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
396 /// Sets the title for this popup.
398 /// <param name="titleView">The actor to set the title.</param>
399 /// <since_tizen> 3 </since_tizen>
400 public void SetTitle(View titleView)
402 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
403 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
406 internal View GetTitle()
408 View view = new View(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true, true);
409 View ret = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
411 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
416 /// Sets the content actor.
418 /// <param name="content">The actor to use.</param>
419 /// <since_tizen> 3 </since_tizen>
420 public void SetContent(View content)
422 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
423 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
426 internal View GetContent()
428 View view = new View(NDalicPINVOKE.Popup_GetContent(swigCPtr), true, true);
429 View ret = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
431 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
436 /// Sets the actor to use for the footer in this popup.
438 /// <param name="footer">The footer actor to be added to this popup.</param>
439 /// <since_tizen> 3 </since_tizen>
440 public void SetFooter(View footer)
442 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
443 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
446 internal View GetFooter()
448 View view = new View(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true, true);
449 View ret = Registry.GetManagedBaseHandleFromNativePtr(view) as View;
451 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
456 /// Sets the display state of popup.<br />
457 /// There are 4 total display states.<br />
458 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
460 /// The other two states are getable, but not setable, and are there for consistency.<br />
462 /// | Value | Setting the state | Getting the state |<br />
463 /// |----------|--------------------------------|--------------------------------|<br />
464 /// | SHOWN | Show the popup | The popup is fully shown |<br />
465 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
466 /// | SHOWING | | The popup is transitioning in |<br />
467 /// | HIDING | | The popup is transitioning out |<br />
469 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
471 /// <param name="displayState">The desired display state to change to.</param>
472 /// <since_tizen> 3 </since_tizen>
473 public void SetDisplayState(Popup.DisplayStateType displayState)
475 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
476 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 internal Popup.DisplayStateType GetDisplayState()
481 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
482 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
486 internal VoidSignal OutsideTouchedSignal()
488 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
489 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
493 internal VoidSignal ShowingSignal()
495 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
496 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
500 internal VoidSignal ShownSignal()
502 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
503 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
507 internal VoidSignal HidingSignal()
509 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
510 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
514 internal VoidSignal HiddenSignal()
516 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
517 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 /// The display states of the popup.
524 /// <since_tizen> 3 </since_tizen>
525 public enum DisplayStateType
528 /// The popup is transitioning in
530 /// <since_tizen> 3 </since_tizen>
533 /// The popup is fully shown
535 /// <since_tizen> 3 </since_tizen>
538 /// The popup is transitioning out
540 /// <since_tizen> 3 </since_tizen>
543 /// The popup is fully hidden
545 /// <since_tizen> 3 </since_tizen>
550 /// The animation modes within the popup.<br />
551 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
553 /// <since_tizen> 3 </since_tizen>
554 public enum AnimationModeType
559 /// <since_tizen> 3 </since_tizen>
562 /// Popup zooms in and out animating the scale property.
564 /// <since_tizen> 3 </since_tizen>
567 /// Popup fades in and out
569 /// <since_tizen> 3 </since_tizen>
572 /// Use the EntryAnimation and ExitAnimation animation properties.
574 /// <since_tizen> 3 </since_tizen>
579 /// The types of the contextual layout.<br />
580 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
581 /// NON_CONTEXTUAL disables any contextual positioning.<br />
583 /// <since_tizen> 3 </since_tizen>
584 public enum ContextualModeType
587 /// any contextual positioning
589 /// <since_tizen> 3 </since_tizen>
594 /// <since_tizen> 3 </since_tizen>
599 /// <since_tizen> 3 </since_tizen>
604 /// <since_tizen> 3 </since_tizen>
609 /// <since_tizen> 3 </since_tizen>
616 /// <since_tizen> 3 </since_tizen>
617 public PropertyMap Title
621 PropertyMap temp = new PropertyMap();
622 GetProperty(Popup.Property.TITLE).Get(temp);
627 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
631 /// The popup content.
633 /// <since_tizen> 3 </since_tizen>
634 public PropertyMap Content
638 PropertyMap temp = new PropertyMap();
639 GetProperty(Popup.Property.CONTENT).Get(temp);
644 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
648 /// The popup footer.
650 /// <since_tizen> 3 </since_tizen>
651 public PropertyMap Footer
655 PropertyMap temp = new PropertyMap();
656 GetProperty(Popup.Property.FOOTER).Get(temp);
661 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
665 /// The popup display state.
667 /// <since_tizen> 3 </since_tizen>
668 public DisplayStateType DisplayState
673 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
675 NUILog.Error("DisplayState get error!");
680 return DisplayStateType.Showing;
682 return DisplayStateType.Shown;
684 return DisplayStateType.Hiding;
686 return DisplayStateType.Hidden;
688 return DisplayStateType.Hidden;
693 string valueToString = "";
696 case DisplayStateType.Showing:
698 valueToString = "SHOWING";
701 case DisplayStateType.Shown:
703 valueToString = "SHOWN";
706 case DisplayStateType.Hiding:
708 valueToString = "HIDING";
711 case DisplayStateType.Hidden:
713 valueToString = "HIDDEN";
718 valueToString = "HIDDEN";
722 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
726 /// The touch transparent.
728 /// <since_tizen> 3 </since_tizen>
729 public bool TouchTransparent
734 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
739 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
743 /// The popup tail visibility.
745 /// <since_tizen> 3 </since_tizen>
746 public bool TailVisibility
751 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
756 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
760 /// The popup tail position.
762 /// <since_tizen> 3 </since_tizen>
763 public Vector3 TailPosition
767 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
768 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
773 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
777 /// The contextual mode.
779 /// <since_tizen> 3 </since_tizen>
780 public ContextualModeType ContextualMode
785 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
787 NUILog.Error("ContextualMode get error!");
791 case "NON_CONTEXTUAL":
792 return ContextualModeType.NonContextual;
794 return ContextualModeType.Above;
796 return ContextualModeType.Rright;
798 return ContextualModeType.Below;
800 return ContextualModeType.Left;
802 return ContextualModeType.Below;
807 string valueToString = "";
810 case ContextualModeType.NonContextual:
812 valueToString = "NON_CONTEXTUAL";
815 case ContextualModeType.Above:
817 valueToString = "ABOVE";
820 case ContextualModeType.Rright:
822 valueToString = "RIGHT";
825 case ContextualModeType.Below:
827 valueToString = "BELOW";
830 case ContextualModeType.Left:
832 valueToString = "LEFT";
837 valueToString = "BELOW";
841 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
845 /// The animation duration.
847 /// <since_tizen> 3 </since_tizen>
848 public float AnimationDuration
853 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
858 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
862 /// The animation mode.
864 /// <since_tizen> 3 </since_tizen>
865 public AnimationModeType AnimationMode
870 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
872 NUILog.Error("AnimationMode get error!");
877 return AnimationModeType.None;
879 return AnimationModeType.Zoom;
881 return AnimationModeType.Fade;
883 return AnimationModeType.Custom;
885 return AnimationModeType.Fade;
890 string valueToString = "";
893 case AnimationModeType.None:
895 valueToString = "NONE";
898 case AnimationModeType.Zoom:
900 valueToString = "ZOOM";
903 case AnimationModeType.Fade:
905 valueToString = "FADE";
908 case AnimationModeType.Custom:
910 valueToString = "CUSTOM";
915 valueToString = "FADE";
919 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
923 /// The entry animation.
925 /// <since_tizen> 3 </since_tizen>
926 public PropertyMap EntryAnimation
930 PropertyMap temp = new PropertyMap();
931 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
936 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
940 /// The exit animation.
942 /// <since_tizen> 3 </since_tizen>
943 public PropertyMap ExitAnimation
947 PropertyMap temp = new PropertyMap();
948 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
953 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
957 /// The auto hide delay.
959 /// <since_tizen> 3 </since_tizen>
960 public int AutoHideDelay
965 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
970 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
974 /// The backing enabled.
976 /// <since_tizen> 3 </since_tizen>
977 public bool BackingEnabled
982 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
987 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
991 /// The backing color.
993 /// <since_tizen> 3 </since_tizen>
994 public Vector4 BackingColor
998 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
999 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
1004 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
1008 /// The background image.
1010 /// <since_tizen> 3 </since_tizen>
1011 public string PopupBackgroundImage
1016 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
1021 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
1025 /// The background border.
1027 /// <since_tizen> 3 </since_tizen>
1028 public Rectangle PopupBackgroundBorder
1032 Rectangle temp = new Rectangle(0, 0, 0, 0);
1033 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
1038 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
1042 /// The tail up image.
1044 /// <since_tizen> 3 </since_tizen>
1045 public string TailUpImage
1050 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
1055 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1059 /// The tail down image.
1061 /// <since_tizen> 3 </since_tizen>
1062 public string TailDownImage
1067 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1072 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1076 /// The tail left image.
1078 /// <since_tizen> 3 </since_tizen>
1079 public string TailLeftImage
1084 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1089 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1093 /// The tail right image.
1095 /// <since_tizen> 3 </since_tizen>
1096 public string TailRightImage
1101 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1106 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));