2 * Copyright(c) 2019 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.Collections.Generic;
19 using System.ComponentModel;
20 using System.Runtime.InteropServices;
21 using Tizen.NUI.Binding;
23 namespace Tizen.NUI.BaseComponents
26 /// View is the base class for all views.
28 /// <since_tizen> 3 </since_tizen>
29 public partial class View : Container, IResourcesProvider
32 /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
34 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
35 [EditorBrowsable(EditorBrowsableState.Never)]
36 public bool layoutSet = false;
39 /// Flag to allow Layouting to be disabled for Views.
40 /// Once a View has a Layout set then any children added to Views from then on will receive
41 /// automatic Layouts.
43 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
44 [EditorBrowsable(EditorBrowsableState.Never)]
45 public static bool layoutingDisabled{get; set;} = true;
47 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
48 private LayoutItem _layout; // Exclusive layout assigned to this View.
50 // List of transitions paired with the condition that uses the transition.
51 private Dictionary<TransitionCondition, TransitionList> _layoutTransitions;
52 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
53 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
54 private float _weight = 0.0f; // Weighting of child View in a Layout
55 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
56 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
57 private bool _backgroundImageSynchronosLoading = false;
58 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
59 private string[] transitionNames;
61 internal Size2D sizeSetExplicitly = new Size2D(); // Store size set by API, will be used in place of NaturalSize if not set.
64 /// Creates a new instance of a view.
66 /// <since_tizen> 3 </since_tizen>
67 public View() : this(Interop.View.View_New(), true)
69 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
73 /// Create a new instance of a View with setting the status of shown or hidden.
75 /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
76 /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
77 [EditorBrowsable(EditorBrowsableState.Never)]
78 public View(bool shown) : this(Interop.View.View_New(), true)
80 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
84 internal View(View uiControl, bool shown = true) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
86 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
93 internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
95 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
98 PositionUsesPivotPoint = false;
101 _onWindowSendEventCallback = SendViewAddedEventToWindow;
102 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
110 internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
112 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
120 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
121 [EditorBrowsable(EditorBrowsableState.Never)]
122 public bool IsResourcesCreated
126 return Application.Current.IsResourcesCreated;
130 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
131 [EditorBrowsable(EditorBrowsableState.Never)]
132 public ResourceDictionary XamlResources
136 return Application.Current.XamlResources;
140 Application.Current.XamlResources = value;
145 /// The StyleName, type string.
147 /// <since_tizen> 3 </since_tizen>
148 public string StyleName
152 return (string)GetValue(StyleNameProperty);
156 SetValue(StyleNameProperty, value);
157 NotifyPropertyChanged();
162 /// The mutually exclusive with "backgroundImage" and "background" type Vector4.
165 /// The property cascade chaining set is possible. For example, this (view.BackgroundColor.X = 0.1f;) is possible.
167 /// <since_tizen> 3 </since_tizen>
168 public Color BackgroundColor
172 Color temp = (Color)GetValue(BackgroundColorProperty);
173 return new Color(OnBackgroundColorChanged, temp.R, temp.G, temp.B, temp.A);
177 SetValue(BackgroundColorProperty, value);
178 NotifyPropertyChanged();
183 /// The mutually exclusive with "backgroundColor" and "background" type Map.
185 /// <since_tizen> 3 </since_tizen>
186 public string BackgroundImage
190 return (string)GetValue(BackgroundImageProperty);
194 SetValue(BackgroundImageProperty, value);
195 NotifyPropertyChanged();
200 /// The background of view.
202 /// <since_tizen> 3 </since_tizen>
203 public Tizen.NUI.PropertyMap Background
207 return (PropertyMap)GetValue(BackgroundProperty);
211 SetValue(BackgroundProperty, value);
212 NotifyPropertyChanged();
217 /// The current state of the view.
219 /// <since_tizen> 3 </since_tizen>
224 return (States)GetValue(StateProperty);
228 SetValue(StateProperty, value);
229 NotifyPropertyChanged();
234 /// The current sub state of the view.
236 /// <since_tizen> 3 </since_tizen>
237 public States SubState
241 return (States)GetValue(SubStateProperty);
245 SetValue(SubStateProperty, value);
246 NotifyPropertyChanged();
251 /// Displays a tooltip
253 /// <since_tizen> 3 </since_tizen>
254 public Tizen.NUI.PropertyMap Tooltip
258 return (PropertyMap)GetValue(TooltipProperty);
262 SetValue(TooltipProperty, value);
263 NotifyPropertyChanged();
268 /// Displays a tooltip as a text.
270 /// <since_tizen> 3 </since_tizen>
271 public string TooltipText
275 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
276 NotifyPropertyChanged();
281 /// The Child property of FlexContainer.<br />
282 /// The proportion of the free space in the container, the flex item will receive.<br />
283 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
285 /// <since_tizen> 3 </since_tizen>
290 return (float)GetValue(FlexProperty);
294 SetValue(FlexProperty, value);
295 NotifyPropertyChanged();
300 /// The Child property of FlexContainer.<br />
301 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
303 /// <since_tizen> 3 </since_tizen>
308 return (int)GetValue(AlignSelfProperty);
312 SetValue(AlignSelfProperty, value);
313 NotifyPropertyChanged();
318 /// The Child property of FlexContainer.<br />
319 /// The space around the flex item.<br />
322 /// The property cascade chaining set is possible. For example, this (view.FlexMargin.X = 0.1f;) is possible.
324 /// <since_tizen> 3 </since_tizen>
325 public Vector4 FlexMargin
329 Vector4 temp = (Vector4)GetValue(FlexMarginProperty);
330 return new Vector4(OnFlexMarginChanged, temp.X, temp.Y, temp.Z, temp.W);
334 SetValue(FlexMarginProperty, value);
335 NotifyPropertyChanged();
340 /// The top-left cell this child occupies, if not set, the first available cell is used.
343 /// The property cascade chaining set is possible. For example, this (view.CellIndex.X = 0.1f;) is possible.
345 /// <since_tizen> 3 </since_tizen>
346 public Vector2 CellIndex
350 Vector2 temp = (Vector2)GetValue(CellIndexProperty);
351 return new Vector2(OnCellIndexChanged, temp.X, temp.Y);
355 SetValue(CellIndexProperty, value);
356 NotifyPropertyChanged();
361 /// The number of rows this child occupies, if not set, the default value is 1.
363 /// <since_tizen> 3 </since_tizen>
368 return (float)GetValue(RowSpanProperty);
372 SetValue(RowSpanProperty, value);
373 NotifyPropertyChanged();
378 /// The number of columns this child occupies, if not set, the default value is 1.
380 /// <since_tizen> 3 </since_tizen>
381 public float ColumnSpan
385 return (float)GetValue(ColumnSpanProperty);
389 SetValue(ColumnSpanProperty, value);
390 NotifyPropertyChanged();
395 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
397 /// <since_tizen> 3 </since_tizen>
398 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
402 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
406 SetValue(CellHorizontalAlignmentProperty, value);
407 NotifyPropertyChanged();
412 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
414 /// <since_tizen> 3 </since_tizen>
415 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
419 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
423 SetValue(CellVerticalAlignmentProperty, value);
424 NotifyPropertyChanged();
429 /// The left focusable view.<br />
430 /// This will return null if not set.<br />
431 /// This will also return null if the specified left focusable view is not on a window.<br />
433 /// <since_tizen> 3 </since_tizen>
434 public View LeftFocusableView
436 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
439 return (View)GetValue(LeftFocusableViewProperty);
443 SetValue(LeftFocusableViewProperty, value);
444 NotifyPropertyChanged();
449 /// The right focusable view.<br />
450 /// This will return null if not set.<br />
451 /// This will also return null if the specified right focusable view is not on a window.<br />
453 /// <since_tizen> 3 </since_tizen>
454 public View RightFocusableView
456 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
459 return (View)GetValue(RightFocusableViewProperty);
463 SetValue(RightFocusableViewProperty, value);
464 NotifyPropertyChanged();
469 /// The up focusable view.<br />
470 /// This will return null if not set.<br />
471 /// This will also return null if the specified up focusable view is not on a window.<br />
473 /// <since_tizen> 3 </since_tizen>
474 public View UpFocusableView
476 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
479 return (View)GetValue(UpFocusableViewProperty);
483 SetValue(UpFocusableViewProperty, value);
484 NotifyPropertyChanged();
489 /// The down focusable view.<br />
490 /// This will return null if not set.<br />
491 /// This will also return null if the specified down focusable view is not on a window.<br />
493 /// <since_tizen> 3 </since_tizen>
494 public View DownFocusableView
496 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
499 return (View)GetValue(DownFocusableViewProperty);
503 SetValue(DownFocusableViewProperty, value);
504 NotifyPropertyChanged();
509 /// Whether the view should be focusable by keyboard navigation.
511 /// <since_tizen> 3 </since_tizen>
512 public bool Focusable
516 SetValue(FocusableProperty, value);
517 NotifyPropertyChanged();
521 return (bool)GetValue(FocusableProperty);
526 /// Retrieves the position of the view.<br />
527 /// The coordinates are relative to the view's parent.<br />
529 /// <since_tizen> 3 </since_tizen>
530 public Position CurrentPosition
534 return GetCurrentPosition();
539 /// Sets the size of a view for the width and the height.<br />
540 /// Geometry can be scaled to fit within this area.<br />
541 /// This does not interfere with the view's scale factor.<br />
542 /// The views default depth is the minimum of width and height.<br />
545 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
546 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
548 /// <since_tizen> 3 </since_tizen>
553 Size2D temp = (Size2D)GetValue(Size2DProperty);
554 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
558 sizeSetExplicitly = value; // Store size set by API, will be used in place of NaturalSize if not set.
559 SetValue(Size2DProperty, value);
560 // Set Specification so when layouts measure this View it matches the value set here.
561 // All Views are currently Layouts.
562 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
563 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
564 _widthPolicy = value.Width;
565 _heightPolicy = value.Height;
566 _layout?.RequestLayout();
567 NotifyPropertyChanged();
572 /// Retrieves the size of the view.<br />
573 /// The coordinates are relative to the view's parent.<br />
575 /// <since_tizen> 3 </since_tizen>
576 public Size2D CurrentSize
580 return GetCurrentSize();
585 /// Retrieves and sets the view's opacity.<br />
587 /// <since_tizen> 3 </since_tizen>
592 return (float)GetValue(OpacityProperty);
596 SetValue(OpacityProperty, value);
597 NotifyPropertyChanged();
602 /// Sets the position of the view for X and Y.<br />
603 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
604 /// If the position inheritance is disabled, sets the world position.<br />
607 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
608 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
610 /// <since_tizen> 3 </since_tizen>
611 public Position2D Position2D
615 Position2D temp = (Position2D)GetValue(Position2DProperty);
616 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
620 SetValue(Position2DProperty, value);
621 NotifyPropertyChanged();
626 /// Retrieves the screen postion of the view.<br />
628 /// <since_tizen> 3 </since_tizen>
629 public Vector2 ScreenPosition
633 Vector2 temp = new Vector2(0.0f, 0.0f);
634 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
640 /// Determines whether the pivot point should be used to determine the position of the view.
641 /// This is true by default.
643 /// <remarks>If false, then the top-left of the view is used for the position.
644 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
646 /// <since_tizen> 3 </since_tizen>
647 public bool PositionUsesPivotPoint
651 return (bool)GetValue(PositionUsesPivotPointProperty);
655 SetValue(PositionUsesPivotPointProperty, value);
656 NotifyPropertyChanged();
661 /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
663 /// <since_tizen> 3 </since_tizen>
664 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
666 "View view = new View(); " +
667 "view.PivotPoint = PivotPoint.Center; " +
668 "view.PositionUsesPivotPoint = true;" +
669 " Deprecated in API5: Will be removed in API8")]
670 [EditorBrowsable(EditorBrowsableState.Never)]
671 public bool PositionUsesAnchorPoint
676 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
681 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
682 NotifyPropertyChanged();
687 /// Queries whether the view is connected to the stage.<br />
688 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
690 /// <since_tizen> 3 </since_tizen>
691 public bool IsOnWindow
700 /// Gets the depth in the hierarchy for the view.
702 /// <since_tizen> 3 </since_tizen>
703 public int HierarchyDepth
707 return GetHierarchyDepth();
712 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
715 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
716 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
717 /// The values set by this property will likely change.
719 /// <since_tizen> 3 </since_tizen>
720 public int SiblingOrder
724 return (int)GetValue(SiblingOrderProperty);
728 SetValue(SiblingOrderProperty, value);
729 NotifyPropertyChanged();
734 /// Returns the natural size of the view.
737 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
739 /// <since_tizen> 5 </since_tizen>
740 public Vector3 NaturalSize
744 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
745 if (NDalicPINVOKE.SWIGPendingException.Pending)
746 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
752 /// Returns the natural size (Size2D) of the view.
755 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
757 /// <since_tizen> 4 </since_tizen>
758 public Size2D NaturalSize2D
762 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
763 if (NDalicPINVOKE.SWIGPendingException.Pending)
764 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
766 return new Size2D((int)temp.Width, (int)temp.Height);
771 /// Gets or sets the origin of a view within its parent's area.<br />
772 /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the parent, and (1.0, 1.0, 0.5) is the bottom-right corner.<br />
773 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
774 /// A view's position is the distance between this origin and the view's anchor-point.<br />
776 /// <pre>The view has been initialized.</pre>
777 /// <since_tizen> 3 </since_tizen>
778 public Position ParentOrigin
782 Position tmp = (Position)GetValue(ParentOriginProperty);
783 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
787 SetValue(ParentOriginProperty, value);
788 NotifyPropertyChanged();
793 /// Gets or sets the anchor-point of a view.<br />
794 /// This is expressed in unit coordinates, such that (0.0, 0.0, 0.5) is the top-left corner of the view, and (1.0, 1.0, 0.5) is the bottom-right corner.<br />
795 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
796 /// A view position is the distance between its parent-origin and this anchor-point.<br />
797 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
798 /// <pre>The view has been initialized.</pre>
801 /// The property cascade chaining set is possible. For example, this (view.PivotPoint.X = 0.1f;) is possible.
803 /// <since_tizen> 3 </since_tizen>
804 public Position PivotPoint
808 Position tmp = (Position)GetValue(PivotPointProperty);
809 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
813 SetValue(PivotPointProperty, value);
814 NotifyPropertyChanged();
819 /// Gets or sets the size width of the view.
823 /// Animatable - This property can be animated using <c>Animation</c> class.
826 /// <since_tizen> 3 </since_tizen>
827 public float SizeWidth
831 return (float)GetValue(SizeWidthProperty);
835 SetValue(SizeWidthProperty, value);
836 WidthSpecification = (int)Math.Ceiling(value);
837 NotifyPropertyChanged();
842 /// Gets or sets the size height of the view.
846 /// Animatable - This property can be animated using <c>Animation</c> class.
849 /// <since_tizen> 3 </since_tizen>
850 public float SizeHeight
854 return (float)GetValue(SizeHeightProperty);
858 SetValue(SizeHeightProperty, value);
859 HeightSpecification = (int)Math.Ceiling(value);
860 NotifyPropertyChanged();
865 /// Gets or sets the position of the view.<br />
866 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
867 /// If the position inheritance is disabled, sets the world position.<br />
871 /// Animatable - This property can be animated using <c>Animation</c> class.
873 /// The property cascade chaining set is possible. For example, this (view.Position.X = 1.0f;) is possible.
875 /// <since_tizen> 3 </since_tizen>
876 public Position Position
880 Position tmp = (Position)GetValue(PositionProperty);
881 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
885 SetValue(PositionProperty, value);
886 NotifyPropertyChanged();
891 /// Gets or sets the position X of the view.
895 /// Animatable - This property can be animated using <c>Animation</c> class.
898 /// <since_tizen> 3 </since_tizen>
899 public float PositionX
903 return (float)GetValue(PositionXProperty);
907 SetValue(PositionXProperty, value);
908 NotifyPropertyChanged();
913 /// Gets or sets the position Y of the view.
917 /// Animatable - This property can be animated using <c>Animation</c> class.
920 /// <since_tizen> 3 </since_tizen>
921 public float PositionY
925 return (float)GetValue(PositionYProperty);
929 SetValue(PositionYProperty, value);
930 NotifyPropertyChanged();
935 /// Gets or sets the position Z of the view.
939 /// Animatable - This property can be animated using <c>Animation</c> class.
942 /// <since_tizen> 3 </since_tizen>
943 public float PositionZ
947 return (float)GetValue(PositionZProperty);
951 SetValue(PositionZProperty, value);
952 NotifyPropertyChanged();
957 /// Gets or sets the world position of the view.
959 /// <since_tizen> 3 </since_tizen>
960 public Vector3 WorldPosition
964 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
965 GetProperty(View.Property.WORLD_POSITION).Get(temp);
971 /// Gets or sets the orientation of the view.<br />
972 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
976 /// This is an asynchronous method.
979 /// Animatable - This property can be animated using <c>Animation</c> class.
982 /// <since_tizen> 3 </since_tizen>
983 public Rotation Orientation
987 return (Rotation)GetValue(OrientationProperty);
991 SetValue(OrientationProperty, value);
992 NotifyPropertyChanged();
997 /// Gets or sets the world orientation of the view.<br />
999 /// <since_tizen> 3 </since_tizen>
1000 public Rotation WorldOrientation
1004 Rotation temp = new Rotation();
1005 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
1011 /// Gets or sets the scale factor applied to the view.<br />
1015 /// Animatable - This property can be animated using <c>Animation</c> class.
1017 /// The property cascade chaining set is possible. For example, this (view.Scale.X = 0.1f;) is possible.
1019 /// <since_tizen> 3 </since_tizen>
1020 public Vector3 Scale
1024 Vector3 temp = (Vector3)GetValue(ScaleProperty);
1025 return new Vector3(OnScaleChanged, temp.X, temp.Y, temp.Z);
1029 SetValue(ScaleProperty, value);
1030 NotifyPropertyChanged();
1035 /// Gets or sets the scale X factor applied to the view.
1039 /// Animatable - This property can be animated using <c>Animation</c> class.
1042 /// <since_tizen> 3 </since_tizen>
1047 return (float)GetValue(ScaleXProperty);
1051 SetValue(ScaleXProperty, value);
1052 NotifyPropertyChanged();
1057 /// Gets or sets the scale Y factor applied to the view.
1061 /// Animatable - This property can be animated using <c>Animation</c> class.
1064 /// <since_tizen> 3 </since_tizen>
1069 return (float)GetValue(ScaleYProperty);
1073 SetValue(ScaleYProperty, value);
1074 NotifyPropertyChanged();
1079 /// Gets or sets the scale Z factor applied to the view.
1083 /// Animatable - This property can be animated using <c>Animation</c> class.
1086 /// <since_tizen> 3 </since_tizen>
1091 return (float)GetValue(ScaleZProperty);
1095 SetValue(ScaleZProperty, value);
1096 NotifyPropertyChanged();
1101 /// Gets the world scale of the view.
1103 /// <since_tizen> 3 </since_tizen>
1104 public Vector3 WorldScale
1108 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1109 GetProperty(View.Property.WORLD_SCALE).Get(temp);
1115 /// Retrieves the visibility flag of the view.
1119 /// If the view is not visible, then the view and its children will not be rendered.
1120 /// This is regardless of the individual visibility values of the children, i.e., the view will only be rendered if all of its parents have visibility set to true.
1123 /// Animatable - This property can be animated using <c>Animation</c> class.
1126 /// <since_tizen> 3 </since_tizen>
1127 public bool Visibility
1132 GetProperty(View.Property.VISIBLE).Get(out temp);
1138 /// Gets the view's world color.
1140 /// <since_tizen> 3 </since_tizen>
1141 public Vector4 WorldColor
1145 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1146 GetProperty(View.Property.WORLD_COLOR).Get(temp);
1152 /// Gets or sets the view's name.
1154 /// <since_tizen> 3 </since_tizen>
1159 return (string)GetValue(NameProperty);
1163 SetValue(NameProperty, value);
1164 NotifyPropertyChanged();
1169 /// Get the number of children held by the view.
1171 /// <since_tizen> 3 </since_tizen>
1172 public new uint ChildCount
1176 return GetChildCount();
1181 /// Gets the view's ID.
1184 /// <since_tizen> 3 </since_tizen>
1194 /// Gets or sets the status of whether the view should emit touch or hover signals.
1196 /// <since_tizen> 3 </since_tizen>
1197 public bool Sensitive
1201 return (bool)GetValue(SensitiveProperty);
1205 SetValue(SensitiveProperty, value);
1206 NotifyPropertyChanged();
1211 /// Gets or sets the status of whether the view should receive a notification when touch or hover motion events leave the boundary of the view.
1213 /// <since_tizen> 3 </since_tizen>
1214 public bool LeaveRequired
1218 return (bool)GetValue(LeaveRequiredProperty);
1222 SetValue(LeaveRequiredProperty, value);
1223 NotifyPropertyChanged();
1228 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
1230 /// <since_tizen> 3 </since_tizen>
1231 public bool InheritOrientation
1235 return (bool)GetValue(InheritOrientationProperty);
1239 SetValue(InheritOrientationProperty, value);
1240 NotifyPropertyChanged();
1245 /// Gets or sets the status of whether a child view inherits it's parent's scale.
1247 /// <since_tizen> 3 </since_tizen>
1248 public bool InheritScale
1252 return (bool)GetValue(InheritScaleProperty);
1256 SetValue(InheritScaleProperty, value);
1257 NotifyPropertyChanged();
1262 /// Gets or sets the status of how the view and its children should be drawn.<br />
1263 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
1264 /// If an object is in a 3D layer, it will be depth-tested against other objects in the world, i.e., it may be obscured if other objects are in front.<br />
1265 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
1266 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
1267 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
1269 /// <since_tizen> 3 </since_tizen>
1270 public DrawModeType DrawMode
1274 return (DrawModeType)GetValue(DrawModeProperty);
1278 SetValue(DrawModeProperty, value);
1279 NotifyPropertyChanged();
1284 /// Gets or sets the relative to parent size factor of the view.<br />
1285 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
1286 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
1289 /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1291 /// <since_tizen> 3 </since_tizen>
1292 public Vector3 SizeModeFactor
1296 Vector3 temp = (Vector3)GetValue(SizeModeFactorProperty);
1297 return new Vector3(OnSizeModeFactorChanged, temp.X, temp.Y, temp.Z);
1301 SetValue(SizeModeFactorProperty, value);
1302 NotifyPropertyChanged();
1307 /// Gets or sets the width resize policy to be used.
1309 /// <since_tizen> 3 </since_tizen>
1310 public ResizePolicyType WidthResizePolicy
1314 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
1318 SetValue(WidthResizePolicyProperty, value);
1319 // Match ResizePolicy to new Layouting.
1320 // Parent relative policies can not be mapped at this point as parent size unknown.
1323 case ResizePolicyType.UseNaturalSize:
1325 WidthSpecification = LayoutParamPolicies.WrapContent;
1328 case ResizePolicyType.FillToParent:
1330 WidthSpecification = LayoutParamPolicies.MatchParent;
1333 case ResizePolicyType.FitToChildren:
1335 WidthSpecification = LayoutParamPolicies.WrapContent;
1341 NotifyPropertyChanged();
1346 /// Gets or sets the height resize policy to be used.
1348 /// <since_tizen> 3 </since_tizen>
1349 public ResizePolicyType HeightResizePolicy
1353 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
1357 SetValue(HeightResizePolicyProperty, value);
1358 // Match ResizePolicy to new Layouting.
1359 // Parent relative policies can not be mapped at this point as parent size unknown.
1362 case ResizePolicyType.UseNaturalSize:
1364 HeightSpecification = LayoutParamPolicies.WrapContent;
1367 case ResizePolicyType.FillToParent:
1369 HeightSpecification = LayoutParamPolicies.MatchParent;
1372 case ResizePolicyType.FitToChildren:
1374 HeightSpecification = LayoutParamPolicies.WrapContent;
1380 NotifyPropertyChanged();
1385 /// Gets or sets the policy to use when setting size with size negotiation.<br />
1386 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
1388 /// <since_tizen> 3 </since_tizen>
1389 public SizeScalePolicyType SizeScalePolicy
1393 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
1397 SetValue(SizeScalePolicyProperty, value);
1398 NotifyPropertyChanged();
1403 /// Gets or sets the status of whether the width size is dependent on the height size.
1405 /// <since_tizen> 3 </since_tizen>
1406 public bool WidthForHeight
1410 return (bool)GetValue(WidthForHeightProperty);
1414 SetValue(WidthForHeightProperty, value);
1415 NotifyPropertyChanged();
1420 /// Gets or sets the status of whether the height size is dependent on the width size.
1422 /// <since_tizen> 3 </since_tizen>
1423 public bool HeightForWidth
1427 return (bool)GetValue(HeightForWidthProperty);
1431 SetValue(HeightForWidthProperty, value);
1432 NotifyPropertyChanged();
1437 /// Gets or sets the padding for use in layout.
1440 /// The property cascade chaining set is possible. For example, this (view.Padding.X = 0.1f;) is possible.
1442 /// <since_tizen> 5 </since_tizen>
1443 public Extents Padding
1447 // If View has a Layout then padding in stored in the base Layout class
1450 return Layout.Padding;
1454 Extents temp = (Extents)GetValue(PaddingProperty);
1455 return new Extents(OnPaddingChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1457 // Two return points to prevent creating a zeroed Extent native object before assignment
1461 Extents padding = value;
1464 // Layout set so store Padding in LayoutItem instead of in View.
1465 // If View stores the Padding value then Legacy Size Negotiation will overwrite
1466 // the position and sizes measure in the Layouting.
1467 Layout.Padding = value;
1468 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
1469 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
1470 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
1472 padding = new Extents(0,0,0,0); // Reset value stored in View.
1474 _layout?.RequestLayout();
1476 SetValue(PaddingProperty, padding);
1477 NotifyPropertyChanged();
1478 _layout?.RequestLayout();
1483 /// Gets or sets the minimum size the view can be assigned in size negotiation.
1486 /// The property cascade chaining set is possible. For example, this (view.MinimumSize.Width = 1;) is possible.
1488 /// <since_tizen> 3 </since_tizen>
1489 public Size2D MinimumSize
1493 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
1494 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
1498 if (_layout != null)
1500 // Note: it only works if minimum size is >= than natural size.
1501 // To force the size it should be done through the width&height spec or Size2D.
1502 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
1503 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
1504 _layout.RequestLayout();
1506 SetValue(MinimumSizeProperty, value);
1507 NotifyPropertyChanged();
1512 /// Gets or sets the maximum size the view can be assigned in size negotiation.
1515 /// The property cascade chaining set is possible. For example, this (view.MaximumSize.Width = 1;) is possible.
1517 /// <since_tizen> 3 </since_tizen>
1518 public Size2D MaximumSize
1522 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
1523 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
1527 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
1528 // MATCH_PARENT spec + parent container size can be used to limit
1529 if (_layout != null)
1531 // Note: it only works if minimum size is >= than natural size.
1532 // To force the size it should be done through the width&height spec or Size2D.
1533 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
1534 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
1535 _layout.RequestLayout();
1537 SetValue(MaximumSizeProperty, value);
1538 NotifyPropertyChanged();
1543 /// Gets or sets whether a child view inherits it's parent's position.<br />
1544 /// Default is to inherit.<br />
1545 /// Switching this off means that using position sets the view's world position, i.e., translates from the world origin (0,0,0) to the pivot point of the view.<br />
1547 /// <since_tizen> 3 </since_tizen>
1548 public bool InheritPosition
1552 return (bool)GetValue(InheritPositionProperty);
1556 SetValue(InheritPositionProperty, value);
1557 NotifyPropertyChanged();
1562 /// Gets or sets the clipping behavior (mode) of it's children.
1564 /// <since_tizen> 3 </since_tizen>
1565 public ClippingModeType ClippingMode
1569 return (ClippingModeType)GetValue(ClippingModeProperty);
1573 SetValue(ClippingModeProperty, value);
1574 NotifyPropertyChanged();
1579 /// Gets the number of renderers held by the view.
1581 /// <since_tizen> 3 </since_tizen>
1582 public uint RendererCount
1586 return GetRendererCount();
1591 /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
1594 /// The property cascade chaining set is possible. For example, this (view.AnchorPoint.X = 0.1f;) is possible.
1596 /// <since_tizen> 3 </since_tizen>
1597 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
1599 "View view = new View(); " +
1600 "view.PivotPoint = PivotPoint.Center; " +
1601 "view.PositionUsesPivotPoint = true;")]
1602 [EditorBrowsable(EditorBrowsableState.Never)]
1603 public Position AnchorPoint
1607 Position temp = new Position(0.0f, 0.0f, 0.0f);
1608 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
1609 return new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
1613 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1614 NotifyPropertyChanged();
1619 /// Sets the size of a view for the width, the height and the depth.<br />
1620 /// Geometry can be scaled to fit within this area.<br />
1621 /// This does not interfere with the view's scale factor.<br />
1622 /// The views default depth is the minimum of width and height.<br />
1626 /// Animatable - This property can be animated using <c>Animation</c> class.
1628 /// The property cascade chaining set is possible. For example, this (view.Size.Width = 1.0f;) is possible.
1630 /// <since_tizen> 5 </since_tizen>
1635 Size tmp = (Size)GetValue(SizeProperty);
1636 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
1640 SetValue(SizeProperty, value);
1641 // Set Specification so when layouts measure this View it matches the value set here.
1642 // All Views are currently Layouts.
1643 WidthSpecification = (int)Math.Ceiling(value.Width);
1644 HeightSpecification = (int)Math.Ceiling(value.Height);
1645 NotifyPropertyChanged();
1650 /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
1652 /// <since_tizen> 3 </since_tizen>
1653 [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
1655 "Container parent = view.GetParent(); " +
1656 "View view = parent as View;")]
1657 [EditorBrowsable(EditorBrowsableState.Never)]
1658 public new View Parent
1663 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
1664 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1665 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
1667 if (basehandle is Layer layer)
1669 ret = new View(Layer.getCPtr(layer).Handle, false);
1670 NUILog.Error("This Parent property is deprecated, shoud do not be used");
1674 ret = basehandle as View;
1677 Interop.BaseHandle.delete_BaseHandle(CPtr);
1678 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1680 if (NDalicPINVOKE.SWIGPendingException.Pending)
1681 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1687 /// Gets/Sets whether inherit parent's the layout Direction.
1689 /// <since_tizen> 4 </since_tizen>
1690 public bool InheritLayoutDirection
1694 return (bool)GetValue(InheritLayoutDirectionProperty);
1698 SetValue(InheritLayoutDirectionProperty, value);
1699 NotifyPropertyChanged();
1704 /// Gets/Sets the layout Direction.
1706 /// <since_tizen> 4 </since_tizen>
1707 public ViewLayoutDirectionType LayoutDirection
1711 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
1715 SetValue(LayoutDirectionProperty, value);
1716 NotifyPropertyChanged();
1717 _layout?.RequestLayout();
1722 /// Gets or sets the Margin for use in layout.
1725 /// Margin property is supported by Layout algorithms and containers.
1726 /// Please Set Layout if you want to use Margin property.
1727 /// The property cascade chaining set is possible. For example, this (view.Margin.X = 0.1f;) is possible.
1729 /// <since_tizen> 4 </since_tizen>
1730 public Extents Margin
1734 // If View has a Layout then margin is stored in Layout.
1737 return Layout.Margin;
1741 // If Layout not set then return margin stored in View.
1742 Extents temp = (Extents)GetValue(MarginProperty);
1743 return new Extents(OnMarginChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1745 // Two return points to prevent creating a zeroed Extent native object before assignment
1751 // Layout set so store Margin in LayoutItem instead of View.
1752 // If View stores the Margin too then the Legacy Size Negotiation will
1753 // overwrite the position and size values measured in the Layouting.
1754 Layout.Margin = value;
1755 SetValue(MarginProperty, new Extents(0,0,0,0));
1756 _layout?.RequestLayout();
1760 SetValue(MarginProperty, value);
1762 NotifyPropertyChanged();
1763 _layout?.RequestLayout();
1768 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1770 /// <since_tizen> 6 </since_tizen>
1771 public int WidthSpecification
1775 return _widthPolicy;
1779 _widthPolicy = value;
1780 if (_widthPolicy >= 0)
1782 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
1783 Size2D.Width = _widthPolicy;
1786 _layout?.RequestLayout();
1791 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1793 /// <since_tizen> 6 </since_tizen>
1794 public int HeightSpecification
1798 return _heightPolicy;
1802 _heightPolicy = value;
1803 if (_heightPolicy >= 0)
1805 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
1806 Size2D.Height = _heightPolicy;
1809 _layout?.RequestLayout();
1814 /// Gets the List of transitions for this View.
1816 /// <since_tizen> 6 </since_tizen>
1817 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
1821 if (_layoutTransitions == null)
1823 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
1825 return _layoutTransitions;
1830 /// Set a layout transitions for this View.
1833 /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
1835 /// <since_tizen> 6 </since_tizen>
1836 public LayoutTransition LayoutTransition
1840 if (_layoutTransitions == null)
1842 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
1844 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
1846 AttachTransitionsToChildren(value);
1851 /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
1854 /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1856 /// <since_tizen> 4 </since_tizen>
1857 [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
1858 [EditorBrowsable(EditorBrowsableState.Never)]
1859 public Extents PaddingEX
1863 Extents temp = new Extents(0, 0, 0, 0);
1864 GetProperty(View.Property.PADDING).Get(temp);
1865 return new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1869 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
1870 NotifyPropertyChanged();
1871 _layout?.RequestLayout();
1875 /// <since_tizen> 6 </since_tizen>
1876 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1877 [EditorBrowsable(EditorBrowsableState.Never)]
1878 public Style XamlStyle
1882 return (Style)GetValue(XamlStyleProperty);
1886 SetValue(XamlStyleProperty, value);
1891 /// The Color of View. This is an RGBA value.
1895 /// Animatable - This property can be animated using <c>Animation</c> class.
1897 /// The property cascade chaining set is possible. For example, this (view.Color.X = 0.1f;) is possible.
1899 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1900 [EditorBrowsable(EditorBrowsableState.Never)]
1905 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1906 GetProperty(Interop.ActorProperty.Actor_Property_COLOR_get()).Get(temp);
1907 return new Color(OnColorChanged, temp.R, temp.G, temp.B, temp.A);
1916 /// Set the layout on this View. Replaces any existing Layout.
1918 /// <since_tizen> 6 </since_tizen>
1919 public LayoutItem Layout
1927 // Do nothing if layout provided is already set on this View.
1928 if (value == _layout)
1933 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
1934 layoutingDisabled = false;
1937 // If new layout being set already has a owner then that owner receives a replacement default layout.
1938 // First check if the layout to be set already has a owner.
1939 if (value?.Owner != null)
1941 // Previous owner of the layout gets a default layout as a replacement.
1942 value.Owner.Layout = new LayoutGroup();
1944 // Copy Margin and Padding to replacement LayoutGroup.
1945 value.Owner.Layout.Margin = value.Margin;
1946 value.Owner.Layout.Padding = value.Padding;
1949 // Copy Margin and Padding to new layout being set or restore padding and margin back to
1950 // View if no replacement. Previously margin and padding values would have been moved from
1951 // the View to the layout.
1952 if (_layout != null ) // Existing layout
1956 // Existing layout being replaced so copy over margin and padding values.
1957 value.Margin = _layout.Margin;
1958 value.Padding = _layout.Padding;
1962 // Layout not being replaced so restore margin and padding to View.
1963 SetValue(MarginProperty, _layout.Margin);
1964 SetValue(PaddingProperty, _layout.Padding);
1965 NotifyPropertyChanged();
1970 // First Layout to be added to the View hence copy
1972 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
1975 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
1977 // If View already has a margin set then store it in Layout instead.
1978 value.Margin = Margin;
1979 SetValue(MarginProperty, new Extents(0,0,0,0));
1980 NotifyPropertyChanged();
1983 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
1985 // If View already has a padding set then store it in Layout instead.
1986 value.Padding = Padding;
1987 SetValue(PaddingProperty, new Extents(0,0,0,0));
1988 NotifyPropertyChanged();
1993 // Remove existing layout from it's parent layout group.
1994 _layout?.Unparent();
1996 // Set layout to this view
2002 /// The weight of the View, used to share available space in a layout with siblings.
2004 /// <since_tizen> 6 </since_tizen>
2014 _layout?.RequestLayout();
2019 /// Whether to load the BackgroundImage synchronously.
2020 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
2021 /// Note: For Normal Quad images only.
2023 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2024 [EditorBrowsable(EditorBrowsableState.Never)]
2025 public bool BackgroundImageSynchronosLoading
2029 return _backgroundImageSynchronosLoading;
2033 _backgroundImageSynchronosLoading = value;
2036 Background.Find(Visual.Property.Type)?.Get(out visualType);
2037 if (visualType == (int)Visual.Type.Image)
2039 Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
2042 if (bgUrl.Length != 0)
2044 PropertyMap bgMap = this.Background;
2045 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
2051 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2052 [EditorBrowsable(EditorBrowsableState.Never)]
2053 public Vector2 UpdateSizeHint
2057 return (Vector2)GetValue(UpdateSizeHintProperty);
2061 SetValue(UpdateSizeHintProperty, value);
2062 NotifyPropertyChanged();
2066 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
2067 [EditorBrowsable(EditorBrowsableState.Never)]
2068 public string[] TransitionNames
2072 return transitionNames;
2076 transitionNames = value;