2 using System.ComponentModel;
3 using Tizen.NUI.Binding;
5 namespace Tizen.NUI.UIComponents
7 public partial class Popup
9 /// This will be deprecated
10 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
11 [EditorBrowsable(EditorBrowsableState.Never)]
12 public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
14 var popup = (Popup)bindable;
17 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TITLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
20 defaultValueCreator: (bindable) =>
22 var popup = (Popup)bindable;
23 PropertyMap temp = new PropertyMap();
24 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TITLE).Get(temp);
27 /// This will be deprecated
28 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
29 [EditorBrowsable(EditorBrowsableState.Never)]
30 public static readonly BindableProperty ContentProperty = BindableProperty.Create("Content", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
32 var popup = (Popup)bindable;
35 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTENT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
38 defaultValueCreator: (bindable) =>
40 var popup = (Popup)bindable;
41 PropertyMap temp = new PropertyMap();
42 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTENT).Get(temp);
45 /// This will be deprecated
46 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
47 [EditorBrowsable(EditorBrowsableState.Never)]
48 public static readonly BindableProperty FooterProperty = BindableProperty.Create("Footer", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
50 var popup = (Popup)bindable;
53 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.FOOTER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
56 defaultValueCreator: (bindable) =>
58 var popup = (Popup)bindable;
59 PropertyMap temp = new PropertyMap();
60 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.FOOTER).Get(temp);
63 /// This will be deprecated
64 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
65 [EditorBrowsable(EditorBrowsableState.Never)]
66 public static readonly BindableProperty DisplayStateProperty = BindableProperty.Create("DisplayState", typeof(DisplayStateType), typeof(Popup), DisplayStateType.Hidden, propertyChanged: (bindable, oldValue, newValue) =>
68 var popup = (Popup)bindable;
69 string valueToString = "";
72 switch ((DisplayStateType)newValue)
74 case DisplayStateType.Showing:
76 valueToString = "SHOWING";
79 case DisplayStateType.Shown:
81 valueToString = "SHOWN";
84 case DisplayStateType.Hiding:
86 valueToString = "HIDING";
89 case DisplayStateType.Hidden:
91 valueToString = "HIDDEN";
96 valueToString = "HIDDEN";
100 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
103 defaultValueCreator: (bindable) =>
105 var popup = (Popup)bindable;
107 if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE).Get(out temp) == false)
109 NUILog.Error("DisplayState get error!");
114 return DisplayStateType.Showing;
116 return DisplayStateType.Shown;
118 return DisplayStateType.Hiding;
120 return DisplayStateType.Hidden;
122 return DisplayStateType.Hidden;
125 /// This will be deprecated
126 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
127 [EditorBrowsable(EditorBrowsableState.Never)]
128 public static readonly BindableProperty TouchTransparentProperty = BindableProperty.Create("TouchTransparent", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) =>
130 var popup = (Popup)bindable;
131 if (newValue != null)
133 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue((bool)newValue));
136 defaultValueCreator: (bindable) =>
138 var popup = (Popup)bindable;
140 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
143 /// This will be deprecated
144 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
145 [EditorBrowsable(EditorBrowsableState.Never)]
146 public static readonly BindableProperty TailVisibilityProperty = BindableProperty.Create("TailVisibility", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) =>
148 var popup = (Popup)bindable;
149 if (newValue != null)
151 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue((bool)newValue));
154 defaultValueCreator: (bindable) =>
156 var popup = (Popup)bindable;
158 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY).Get(out temp);
161 /// This will be deprecated
162 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
163 [EditorBrowsable(EditorBrowsableState.Never)]
164 public static readonly BindableProperty TailPositionProperty = BindableProperty.Create("TailPosition", typeof(Vector3), typeof(Popup), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) =>
166 var popup = (Popup)bindable;
167 if (newValue != null)
169 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue));
172 defaultValueCreator: (bindable) =>
174 var popup = (Popup)bindable;
175 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
176 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION).Get(temp);
179 /// This will be deprecated
180 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
181 [EditorBrowsable(EditorBrowsableState.Never)]
182 public static readonly BindableProperty ContextualModeProperty = BindableProperty.Create("ContextualMode", typeof(ContextualModeType), typeof(Popup), ContextualModeType.Below, propertyChanged: (bindable, oldValue, newValue) =>
184 var popup = (Popup)bindable;
185 string valueToString = "";
186 if (newValue != null)
188 switch ((ContextualModeType)newValue)
190 case ContextualModeType.NonContextual:
192 valueToString = "NON_CONTEXTUAL";
195 case ContextualModeType.Above:
197 valueToString = "ABOVE";
200 case ContextualModeType.Rright:
202 valueToString = "RIGHT";
205 case ContextualModeType.Below:
207 valueToString = "BELOW";
210 case ContextualModeType.Left:
212 valueToString = "LEFT";
217 valueToString = "BELOW";
221 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
224 defaultValueCreator: (bindable) =>
226 var popup = (Popup)bindable;
228 if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
230 NUILog.Error("ContextualMode get error!");
234 case "NON_CONTEXTUAL":
235 return ContextualModeType.NonContextual;
237 return ContextualModeType.Above;
239 return ContextualModeType.Rright;
241 return ContextualModeType.Below;
243 return ContextualModeType.Left;
245 return ContextualModeType.Below;
248 /// This will be deprecated
249 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
250 [EditorBrowsable(EditorBrowsableState.Never)]
251 public static readonly BindableProperty AnimationDurationProperty = BindableProperty.Create("AnimationDuration", typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) =>
253 var popup = (Popup)bindable;
254 if (newValue != null)
256 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
259 defaultValueCreator: (bindable) =>
261 var popup = (Popup)bindable;
263 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION).Get(out temp);
266 /// This will be deprecated
267 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
268 [EditorBrowsable(EditorBrowsableState.Never)]
269 public static readonly BindableProperty AnimationModeProperty = BindableProperty.Create("AnimationMode", typeof(AnimationModeType), typeof(Popup), AnimationModeType.Fade, propertyChanged: (bindable, oldValue, newValue) =>
271 var popup = (Popup)bindable;
272 string valueToString = "";
273 if (newValue != null)
275 switch ((AnimationModeType)newValue)
277 case AnimationModeType.None:
279 valueToString = "NONE";
282 case AnimationModeType.Zoom:
284 valueToString = "ZOOM";
287 case AnimationModeType.Fade:
289 valueToString = "FADE";
292 case AnimationModeType.Custom:
294 valueToString = "CUSTOM";
299 valueToString = "FADE";
303 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
306 defaultValueCreator: (bindable) =>
308 var popup = (Popup)bindable;
310 if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE).Get(out temp) == false)
312 NUILog.Error("AnimationMode get error!");
317 return AnimationModeType.None;
319 return AnimationModeType.Zoom;
321 return AnimationModeType.Fade;
323 return AnimationModeType.Custom;
325 return AnimationModeType.Fade;
328 /// This will be deprecated
329 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
330 [EditorBrowsable(EditorBrowsableState.Never)]
331 public static readonly BindableProperty EntryAnimationProperty = BindableProperty.Create("EntryAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
333 var popup = (Popup)bindable;
334 if (newValue != null)
336 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
339 defaultValueCreator: (bindable) =>
341 var popup = (Popup)bindable;
342 PropertyMap temp = new PropertyMap();
343 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION).Get(temp);
346 /// This will be deprecated
347 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
348 [EditorBrowsable(EditorBrowsableState.Never)]
349 public static readonly BindableProperty ExitAnimationProperty = BindableProperty.Create("ExitAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
351 var popup = (Popup)bindable;
352 if (newValue != null)
354 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
357 defaultValueCreator: (bindable) =>
359 var popup = (Popup)bindable;
360 PropertyMap temp = new PropertyMap();
361 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION).Get(temp);
364 /// This will be deprecated
365 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
366 [EditorBrowsable(EditorBrowsableState.Never)]
367 public static readonly BindableProperty AutoHideDelayProperty = BindableProperty.Create("AutoHideDelay", typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) =>
369 var popup = (Popup)bindable;
370 if (newValue != null)
372 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue((int)newValue));
375 defaultValueCreator: (bindable) =>
377 var popup = (Popup)bindable;
379 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
382 /// This will be deprecated
383 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
384 [EditorBrowsable(EditorBrowsableState.Never)]
385 public static readonly BindableProperty BackingEnabledProperty = BindableProperty.Create("BackingEnabled", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) =>
387 var popup = (Popup)bindable;
388 if (newValue != null)
390 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue));
393 defaultValueCreator: (bindable) =>
395 var popup = (Popup)bindable;
397 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED).Get(out temp);
400 /// This will be deprecated
401 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
402 [EditorBrowsable(EditorBrowsableState.Never)]
403 public static readonly BindableProperty BackingColorProperty = BindableProperty.Create("BackingColor", typeof(Vector4), typeof(Popup), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
405 var popup = (Popup)bindable;
406 if (newValue != null)
408 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
411 defaultValueCreator: (bindable) =>
413 var popup = (Popup)bindable;
414 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
415 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR).Get(temp);
418 /// This will be deprecated
419 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
420 [EditorBrowsable(EditorBrowsableState.Never)]
421 public static readonly BindableProperty PopupBackgroundImageProperty = BindableProperty.Create("PopupBackgroundImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
423 var popup = (Popup)bindable;
424 if (newValue != null)
426 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
429 defaultValueCreator: (bindable) =>
431 var popup = (Popup)bindable;
433 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
436 /// This will be deprecated
437 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
438 [EditorBrowsable(EditorBrowsableState.Never)]
439 public static readonly BindableProperty PopupBackgroundBorderProperty = BindableProperty.Create("PopupBackgroundBorder", typeof(Rectangle), typeof(Popup), new Rectangle(0, 0, 0, 0), propertyChanged: (bindable, oldValue, newValue) =>
441 var popup = (Popup)bindable;
442 if (newValue != null)
444 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue((Rectangle)newValue));
447 defaultValueCreator: (bindable) =>
449 var popup = (Popup)bindable;
450 Rectangle temp = new Rectangle(0, 0, 0, 0);
451 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
454 /// This will be deprecated
455 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
456 [EditorBrowsable(EditorBrowsableState.Never)]
457 public static readonly BindableProperty TailUpImageProperty = BindableProperty.Create("TailUpImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
459 var popup = (Popup)bindable;
460 if (newValue != null)
462 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
465 defaultValueCreator: (bindable) =>
467 var popup = (Popup)bindable;
469 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE).Get(out temp);
472 /// This will be deprecated
473 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
474 [EditorBrowsable(EditorBrowsableState.Never)]
475 public static readonly BindableProperty TailDownImageProperty = BindableProperty.Create("TailDownImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
477 var popup = (Popup)bindable;
478 if (newValue != null)
480 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
483 defaultValueCreator: (bindable) =>
485 var popup = (Popup)bindable;
487 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
490 /// This will be deprecated
491 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
492 [EditorBrowsable(EditorBrowsableState.Never)]
493 public static readonly BindableProperty TailLeftImageProperty = BindableProperty.Create("TailLeftImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
495 var popup = (Popup)bindable;
496 if (newValue != null)
498 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
501 defaultValueCreator: (bindable) =>
503 var popup = (Popup)bindable;
505 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
508 /// This will be deprecated
509 [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")]
510 [EditorBrowsable(EditorBrowsableState.Never)]
511 public static readonly BindableProperty TailRightImageProperty = BindableProperty.Create("TailRightImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
513 var popup = (Popup)bindable;
514 if (newValue != null)
516 Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
519 defaultValueCreator: (bindable) =>
521 var popup = (Popup)bindable;
523 Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);