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;
62 /// Creates a new instance of a view.
64 /// <since_tizen> 3 </since_tizen>
65 public View() : this(Interop.View.View_New(), true)
67 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
71 /// Create a new instance of a View with setting the status of shown or hidden.
73 /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
74 /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
75 [EditorBrowsable(EditorBrowsableState.Never)]
76 public View(bool shown) : this(Interop.View.View_New(), true)
78 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
82 internal View(View uiControl, bool shown = true) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
84 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
91 internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
93 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
96 PositionUsesPivotPoint = false;
99 _onWindowSendEventCallback = SendViewAddedEventToWindow;
100 this.OnWindowSignal().Connect(_onWindowSendEventCallback);
108 internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
118 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
119 [EditorBrowsable(EditorBrowsableState.Never)]
120 public bool IsResourcesCreated
124 return Application.Current.IsResourcesCreated;
128 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
129 [EditorBrowsable(EditorBrowsableState.Never)]
130 public ResourceDictionary XamlResources
134 return Application.Current.XamlResources;
138 Application.Current.XamlResources = value;
143 /// The StyleName, type string.
145 /// <since_tizen> 3 </since_tizen>
146 public string StyleName
150 return (string)GetValue(StyleNameProperty);
154 SetValue(StyleNameProperty, value);
155 NotifyPropertyChanged();
160 /// The mutually exclusive with "backgroundImage" and "background" type Vector4.
163 /// The property cascade chaining set is possible. For example, this (view.BackgroundColor.X = 0.1f;) is possible.
165 /// <since_tizen> 3 </since_tizen>
166 public Color BackgroundColor
170 Color temp = (Color)GetValue(BackgroundColorProperty);
171 return new Color(OnBackgroundColorChanged, temp.R, temp.G, temp.B, temp.A);
175 SetValue(BackgroundColorProperty, value);
176 NotifyPropertyChanged();
181 /// The mutually exclusive with "backgroundColor" and "background" type Map.
183 /// <since_tizen> 3 </since_tizen>
184 public string BackgroundImage
188 return (string)GetValue(BackgroundImageProperty);
192 SetValue(BackgroundImageProperty, value);
193 NotifyPropertyChanged();
198 /// The background of view.
200 /// <since_tizen> 3 </since_tizen>
201 public Tizen.NUI.PropertyMap Background
205 return (PropertyMap)GetValue(BackgroundProperty);
209 SetValue(BackgroundProperty, value);
210 NotifyPropertyChanged();
215 /// The current state of the view.
217 /// <since_tizen> 3 </since_tizen>
222 return (States)GetValue(StateProperty);
226 SetValue(StateProperty, value);
227 NotifyPropertyChanged();
232 /// The current sub state of the view.
234 /// <since_tizen> 3 </since_tizen>
235 public States SubState
239 return (States)GetValue(SubStateProperty);
243 SetValue(SubStateProperty, value);
244 NotifyPropertyChanged();
249 /// Displays a tooltip
251 /// <since_tizen> 3 </since_tizen>
252 public Tizen.NUI.PropertyMap Tooltip
256 return (PropertyMap)GetValue(TooltipProperty);
260 SetValue(TooltipProperty, value);
261 NotifyPropertyChanged();
266 /// Displays a tooltip as a text.
268 /// <since_tizen> 3 </since_tizen>
269 public string TooltipText
273 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
274 NotifyPropertyChanged();
279 /// The Child property of FlexContainer.<br />
280 /// The proportion of the free space in the container, the flex item will receive.<br />
281 /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
283 /// <since_tizen> 3 </since_tizen>
288 return (float)GetValue(FlexProperty);
292 SetValue(FlexProperty, value);
293 NotifyPropertyChanged();
298 /// The Child property of FlexContainer.<br />
299 /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
301 /// <since_tizen> 3 </since_tizen>
306 return (int)GetValue(AlignSelfProperty);
310 SetValue(AlignSelfProperty, value);
311 NotifyPropertyChanged();
316 /// The Child property of FlexContainer.<br />
317 /// The space around the flex item.<br />
320 /// The property cascade chaining set is possible. For example, this (view.FlexMargin.X = 0.1f;) is possible.
322 /// <since_tizen> 3 </since_tizen>
323 public Vector4 FlexMargin
327 Vector4 temp = (Vector4)GetValue(FlexMarginProperty);
328 return new Vector4(OnFlexMarginChanged, temp.X, temp.Y, temp.Z, temp.W);
332 SetValue(FlexMarginProperty, value);
333 NotifyPropertyChanged();
338 /// The top-left cell this child occupies, if not set, the first available cell is used.
341 /// The property cascade chaining set is possible. For example, this (view.CellIndex.X = 0.1f;) is possible.
343 /// <since_tizen> 3 </since_tizen>
344 public Vector2 CellIndex
348 Vector2 temp = (Vector2)GetValue(CellIndexProperty);
349 return new Vector2(OnCellIndexChanged, temp.X, temp.Y);
353 SetValue(CellIndexProperty, value);
354 NotifyPropertyChanged();
359 /// The number of rows this child occupies, if not set, the default value is 1.
361 /// <since_tizen> 3 </since_tizen>
366 return (float)GetValue(RowSpanProperty);
370 SetValue(RowSpanProperty, value);
371 NotifyPropertyChanged();
376 /// The number of columns this child occupies, if not set, the default value is 1.
378 /// <since_tizen> 3 </since_tizen>
379 public float ColumnSpan
383 return (float)GetValue(ColumnSpanProperty);
387 SetValue(ColumnSpanProperty, value);
388 NotifyPropertyChanged();
393 /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
395 /// <since_tizen> 3 </since_tizen>
396 public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
400 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
404 SetValue(CellHorizontalAlignmentProperty, value);
405 NotifyPropertyChanged();
410 /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
412 /// <since_tizen> 3 </since_tizen>
413 public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
417 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
421 SetValue(CellVerticalAlignmentProperty, value);
422 NotifyPropertyChanged();
427 /// The left focusable view.<br />
428 /// This will return null if not set.<br />
429 /// This will also return null if the specified left focusable view is not on a window.<br />
431 /// <since_tizen> 3 </since_tizen>
432 public View LeftFocusableView
434 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
437 return (View)GetValue(LeftFocusableViewProperty);
441 SetValue(LeftFocusableViewProperty, value);
442 NotifyPropertyChanged();
447 /// The right focusable view.<br />
448 /// This will return null if not set.<br />
449 /// This will also return null if the specified right focusable view is not on a window.<br />
451 /// <since_tizen> 3 </since_tizen>
452 public View RightFocusableView
454 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
457 return (View)GetValue(RightFocusableViewProperty);
461 SetValue(RightFocusableViewProperty, value);
462 NotifyPropertyChanged();
467 /// The up focusable view.<br />
468 /// This will return null if not set.<br />
469 /// This will also return null if the specified up focusable view is not on a window.<br />
471 /// <since_tizen> 3 </since_tizen>
472 public View UpFocusableView
474 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
477 return (View)GetValue(UpFocusableViewProperty);
481 SetValue(UpFocusableViewProperty, value);
482 NotifyPropertyChanged();
487 /// The down focusable view.<br />
488 /// This will return null if not set.<br />
489 /// This will also return null if the specified down focusable view is not on a window.<br />
491 /// <since_tizen> 3 </since_tizen>
492 public View DownFocusableView
494 // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
497 return (View)GetValue(DownFocusableViewProperty);
501 SetValue(DownFocusableViewProperty, value);
502 NotifyPropertyChanged();
507 /// Whether the view should be focusable by keyboard navigation.
509 /// <since_tizen> 3 </since_tizen>
510 public bool Focusable
514 SetValue(FocusableProperty, value);
515 NotifyPropertyChanged();
519 return (bool)GetValue(FocusableProperty);
524 /// Retrieves the position of the view.<br />
525 /// The coordinates are relative to the view's parent.<br />
527 /// <since_tizen> 3 </since_tizen>
528 public Position CurrentPosition
532 return GetCurrentPosition();
537 /// Sets the size of a view for the width and the height.<br />
538 /// Geometry can be scaled to fit within this area.<br />
539 /// This does not interfere with the view's scale factor.<br />
540 /// The views default depth is the minimum of width and height.<br />
543 /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
544 /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
546 /// <since_tizen> 3 </since_tizen>
551 Size2D temp = (Size2D)GetValue(Size2DProperty);
552 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
556 SetValue(Size2DProperty, value);
557 // Set Specification so when layouts measure this View it matches the value set here.
558 // All Views are currently Layouts.
559 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
560 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
561 _widthPolicy = value.Width;
562 _heightPolicy = value.Height;
563 _layout?.RequestLayout();
564 NotifyPropertyChanged();
569 /// Retrieves the size of the view.<br />
570 /// The coordinates are relative to the view's parent.<br />
572 /// <since_tizen> 3 </since_tizen>
573 public Size2D CurrentSize
577 return GetCurrentSize();
582 /// Retrieves and sets the view's opacity.<br />
584 /// <since_tizen> 3 </since_tizen>
589 return (float)GetValue(OpacityProperty);
593 SetValue(OpacityProperty, value);
594 NotifyPropertyChanged();
599 /// Sets the position of the view for X and Y.<br />
600 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
601 /// If the position inheritance is disabled, sets the world position.<br />
604 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
605 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
607 /// <since_tizen> 3 </since_tizen>
608 public Position2D Position2D
612 Position2D temp = (Position2D)GetValue(Position2DProperty);
613 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
617 SetValue(Position2DProperty, value);
618 NotifyPropertyChanged();
623 /// Retrieves the screen postion of the view.<br />
625 /// <since_tizen> 3 </since_tizen>
626 public Vector2 ScreenPosition
630 Vector2 temp = new Vector2(0.0f, 0.0f);
631 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
637 /// Determines whether the pivot point should be used to determine the position of the view.
638 /// This is true by default.
640 /// <remarks>If false, then the top-left of the view is used for the position.
641 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
643 /// <since_tizen> 3 </since_tizen>
644 public bool PositionUsesPivotPoint
648 return (bool)GetValue(PositionUsesPivotPointProperty);
652 SetValue(PositionUsesPivotPointProperty, value);
653 NotifyPropertyChanged();
658 /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
660 /// <since_tizen> 3 </since_tizen>
661 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
663 "View view = new View(); " +
664 "view.PivotPoint = PivotPoint.Center; " +
665 "view.PositionUsesPivotPoint = true;" +
666 " Deprecated in API5: Will be removed in API8")]
667 [EditorBrowsable(EditorBrowsableState.Never)]
668 public bool PositionUsesAnchorPoint
673 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
678 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
679 NotifyPropertyChanged();
684 /// Queries whether the view is connected to the stage.<br />
685 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
687 /// <since_tizen> 3 </since_tizen>
688 public bool IsOnWindow
697 /// Gets the depth in the hierarchy for the view.
699 /// <since_tizen> 3 </since_tizen>
700 public int HierarchyDepth
704 return GetHierarchyDepth();
709 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
712 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
713 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
714 /// The values set by this property will likely change.
716 /// <since_tizen> 3 </since_tizen>
717 public int SiblingOrder
721 return (int)GetValue(SiblingOrderProperty);
725 SetValue(SiblingOrderProperty, value);
726 NotifyPropertyChanged();
731 /// Returns the natural size of the view.
734 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
736 /// <since_tizen> 5 </since_tizen>
737 public Vector3 NaturalSize
741 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
742 if (NDalicPINVOKE.SWIGPendingException.Pending)
743 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
749 /// Returns the natural size (Size2D) of the view.
752 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
754 /// <since_tizen> 4 </since_tizen>
755 public Size2D NaturalSize2D
759 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
760 if (NDalicPINVOKE.SWIGPendingException.Pending)
761 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
763 return new Size2D((int)temp.Width, (int)temp.Height);
768 /// Gets or sets the origin of a view within its parent's area.<br />
769 /// 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 />
770 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
771 /// A view's position is the distance between this origin and the view's anchor-point.<br />
773 /// <pre>The view has been initialized.</pre>
774 /// <since_tizen> 3 </since_tizen>
775 public Position ParentOrigin
779 Position tmp = (Position)GetValue(ParentOriginProperty);
780 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
784 SetValue(ParentOriginProperty, value);
785 NotifyPropertyChanged();
790 /// Gets or sets the anchor-point of a view.<br />
791 /// 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 />
792 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
793 /// A view position is the distance between its parent-origin and this anchor-point.<br />
794 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
795 /// <pre>The view has been initialized.</pre>
798 /// The property cascade chaining set is possible. For example, this (view.PivotPoint.X = 0.1f;) is possible.
800 /// <since_tizen> 3 </since_tizen>
801 public Position PivotPoint
805 Position tmp = (Position)GetValue(PivotPointProperty);
806 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
810 SetValue(PivotPointProperty, value);
811 NotifyPropertyChanged();
816 /// Gets or sets the size width of the view.
820 /// Animatable - This property can be animated using <c>Animation</c> class.
823 /// <since_tizen> 3 </since_tizen>
824 public float SizeWidth
828 return (float)GetValue(SizeWidthProperty);
832 SetValue(SizeWidthProperty, value);
833 WidthSpecification = (int)Math.Ceiling(value);
834 NotifyPropertyChanged();
839 /// Gets or sets the size height of the view.
843 /// Animatable - This property can be animated using <c>Animation</c> class.
846 /// <since_tizen> 3 </since_tizen>
847 public float SizeHeight
851 return (float)GetValue(SizeHeightProperty);
855 SetValue(SizeHeightProperty, value);
856 HeightSpecification = (int)Math.Ceiling(value);
857 NotifyPropertyChanged();
862 /// Gets or sets the position of the view.<br />
863 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
864 /// If the position inheritance is disabled, sets the world position.<br />
868 /// Animatable - This property can be animated using <c>Animation</c> class.
870 /// The property cascade chaining set is possible. For example, this (view.Position.X = 1.0f;) is possible.
872 /// <since_tizen> 3 </since_tizen>
873 public Position Position
877 Position tmp = (Position)GetValue(PositionProperty);
878 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
882 SetValue(PositionProperty, value);
883 NotifyPropertyChanged();
888 /// Gets or sets the position X of the view.
892 /// Animatable - This property can be animated using <c>Animation</c> class.
895 /// <since_tizen> 3 </since_tizen>
896 public float PositionX
900 return (float)GetValue(PositionXProperty);
904 SetValue(PositionXProperty, value);
905 NotifyPropertyChanged();
910 /// Gets or sets the position Y of the view.
914 /// Animatable - This property can be animated using <c>Animation</c> class.
917 /// <since_tizen> 3 </since_tizen>
918 public float PositionY
922 return (float)GetValue(PositionYProperty);
926 SetValue(PositionYProperty, value);
927 NotifyPropertyChanged();
932 /// Gets or sets the position Z of the view.
936 /// Animatable - This property can be animated using <c>Animation</c> class.
939 /// <since_tizen> 3 </since_tizen>
940 public float PositionZ
944 return (float)GetValue(PositionZProperty);
948 SetValue(PositionZProperty, value);
949 NotifyPropertyChanged();
954 /// Gets or sets the world position of the view.
956 /// <since_tizen> 3 </since_tizen>
957 public Vector3 WorldPosition
961 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
962 GetProperty(View.Property.WORLD_POSITION).Get(temp);
968 /// Gets or sets the orientation of the view.<br />
969 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
973 /// This is an asynchronous method.
976 /// Animatable - This property can be animated using <c>Animation</c> class.
979 /// <since_tizen> 3 </since_tizen>
980 public Rotation Orientation
984 return (Rotation)GetValue(OrientationProperty);
988 SetValue(OrientationProperty, value);
989 NotifyPropertyChanged();
994 /// Gets or sets the world orientation of the view.<br />
996 /// <since_tizen> 3 </since_tizen>
997 public Rotation WorldOrientation
1001 Rotation temp = new Rotation();
1002 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
1008 /// Gets or sets the scale factor applied to the view.<br />
1012 /// Animatable - This property can be animated using <c>Animation</c> class.
1014 /// The property cascade chaining set is possible. For example, this (view.Scale.X = 0.1f;) is possible.
1016 /// <since_tizen> 3 </since_tizen>
1017 public Vector3 Scale
1021 Vector3 temp = (Vector3)GetValue(ScaleProperty);
1022 return new Vector3(OnScaleChanged, temp.X, temp.Y, temp.Z);
1026 SetValue(ScaleProperty, value);
1027 NotifyPropertyChanged();
1032 /// Gets or sets the scale X factor applied to the view.
1036 /// Animatable - This property can be animated using <c>Animation</c> class.
1039 /// <since_tizen> 3 </since_tizen>
1044 return (float)GetValue(ScaleXProperty);
1048 SetValue(ScaleXProperty, value);
1049 NotifyPropertyChanged();
1054 /// Gets or sets the scale Y factor applied to the view.
1058 /// Animatable - This property can be animated using <c>Animation</c> class.
1061 /// <since_tizen> 3 </since_tizen>
1066 return (float)GetValue(ScaleYProperty);
1070 SetValue(ScaleYProperty, value);
1071 NotifyPropertyChanged();
1076 /// Gets or sets the scale Z factor applied to the view.
1080 /// Animatable - This property can be animated using <c>Animation</c> class.
1083 /// <since_tizen> 3 </since_tizen>
1088 return (float)GetValue(ScaleZProperty);
1092 SetValue(ScaleZProperty, value);
1093 NotifyPropertyChanged();
1098 /// Gets the world scale of the view.
1100 /// <since_tizen> 3 </since_tizen>
1101 public Vector3 WorldScale
1105 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1106 GetProperty(View.Property.WORLD_SCALE).Get(temp);
1112 /// Retrieves the visibility flag of the view.
1116 /// If the view is not visible, then the view and its children will not be rendered.
1117 /// 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.
1120 /// Animatable - This property can be animated using <c>Animation</c> class.
1123 /// <since_tizen> 3 </since_tizen>
1124 public bool Visibility
1129 GetProperty(View.Property.VISIBLE).Get(out temp);
1135 /// Gets the view's world color.
1137 /// <since_tizen> 3 </since_tizen>
1138 public Vector4 WorldColor
1142 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1143 GetProperty(View.Property.WORLD_COLOR).Get(temp);
1149 /// Gets or sets the view's name.
1151 /// <since_tizen> 3 </since_tizen>
1156 return (string)GetValue(NameProperty);
1160 SetValue(NameProperty, value);
1161 NotifyPropertyChanged();
1166 /// Get the number of children held by the view.
1168 /// <since_tizen> 3 </since_tizen>
1169 public new uint ChildCount
1173 return GetChildCount();
1178 /// Gets the view's ID.
1181 /// <since_tizen> 3 </since_tizen>
1191 /// Gets or sets the status of whether the view should emit touch or hover signals.
1193 /// <since_tizen> 3 </since_tizen>
1194 public bool Sensitive
1198 return (bool)GetValue(SensitiveProperty);
1202 SetValue(SensitiveProperty, value);
1203 NotifyPropertyChanged();
1208 /// 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.
1210 /// <since_tizen> 3 </since_tizen>
1211 public bool LeaveRequired
1215 return (bool)GetValue(LeaveRequiredProperty);
1219 SetValue(LeaveRequiredProperty, value);
1220 NotifyPropertyChanged();
1225 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
1227 /// <since_tizen> 3 </since_tizen>
1228 public bool InheritOrientation
1232 return (bool)GetValue(InheritOrientationProperty);
1236 SetValue(InheritOrientationProperty, value);
1237 NotifyPropertyChanged();
1242 /// Gets or sets the status of whether a child view inherits it's parent's scale.
1244 /// <since_tizen> 3 </since_tizen>
1245 public bool InheritScale
1249 return (bool)GetValue(InheritScaleProperty);
1253 SetValue(InheritScaleProperty, value);
1254 NotifyPropertyChanged();
1259 /// Gets or sets the status of how the view and its children should be drawn.<br />
1260 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
1261 /// 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 />
1262 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
1263 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
1264 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
1266 /// <since_tizen> 3 </since_tizen>
1267 public DrawModeType DrawMode
1271 return (DrawModeType)GetValue(DrawModeProperty);
1275 SetValue(DrawModeProperty, value);
1276 NotifyPropertyChanged();
1281 /// Gets or sets the relative to parent size factor of the view.<br />
1282 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
1283 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
1286 /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1288 /// <since_tizen> 3 </since_tizen>
1289 public Vector3 SizeModeFactor
1293 Vector3 temp = (Vector3)GetValue(SizeModeFactorProperty);
1294 return new Vector3(OnSizeModeFactorChanged, temp.X, temp.Y, temp.Z);
1298 SetValue(SizeModeFactorProperty, value);
1299 NotifyPropertyChanged();
1304 /// Gets or sets the width resize policy to be used.
1306 /// <since_tizen> 3 </since_tizen>
1307 public ResizePolicyType WidthResizePolicy
1311 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
1315 SetValue(WidthResizePolicyProperty, value);
1316 // Match ResizePolicy to new Layouting.
1317 // Parent relative policies can not be mapped at this point as parent size unknown.
1320 case ResizePolicyType.UseNaturalSize:
1322 WidthSpecification = LayoutParamPolicies.WrapContent;
1325 case ResizePolicyType.FillToParent:
1327 WidthSpecification = LayoutParamPolicies.MatchParent;
1330 case ResizePolicyType.FitToChildren:
1332 WidthSpecification = LayoutParamPolicies.WrapContent;
1338 NotifyPropertyChanged();
1343 /// Gets or sets the height resize policy to be used.
1345 /// <since_tizen> 3 </since_tizen>
1346 public ResizePolicyType HeightResizePolicy
1350 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
1354 SetValue(HeightResizePolicyProperty, value);
1355 // Match ResizePolicy to new Layouting.
1356 // Parent relative policies can not be mapped at this point as parent size unknown.
1359 case ResizePolicyType.UseNaturalSize:
1361 HeightSpecification = LayoutParamPolicies.WrapContent;
1364 case ResizePolicyType.FillToParent:
1366 HeightSpecification = LayoutParamPolicies.MatchParent;
1369 case ResizePolicyType.FitToChildren:
1371 HeightSpecification = LayoutParamPolicies.WrapContent;
1377 NotifyPropertyChanged();
1382 /// Gets or sets the policy to use when setting size with size negotiation.<br />
1383 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
1385 /// <since_tizen> 3 </since_tizen>
1386 public SizeScalePolicyType SizeScalePolicy
1390 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
1394 SetValue(SizeScalePolicyProperty, value);
1395 NotifyPropertyChanged();
1400 /// Gets or sets the status of whether the width size is dependent on the height size.
1402 /// <since_tizen> 3 </since_tizen>
1403 public bool WidthForHeight
1407 return (bool)GetValue(WidthForHeightProperty);
1411 SetValue(WidthForHeightProperty, value);
1412 NotifyPropertyChanged();
1417 /// Gets or sets the status of whether the height size is dependent on the width size.
1419 /// <since_tizen> 3 </since_tizen>
1420 public bool HeightForWidth
1424 return (bool)GetValue(HeightForWidthProperty);
1428 SetValue(HeightForWidthProperty, value);
1429 NotifyPropertyChanged();
1434 /// Gets or sets the padding for use in layout.
1437 /// The property cascade chaining set is possible. For example, this (view.Padding.X = 0.1f;) is possible.
1439 /// <since_tizen> 5 </since_tizen>
1440 public Extents Padding
1444 // If View has a Layout then padding in stored in the base Layout class
1447 return Layout.Padding;
1451 Extents temp = (Extents)GetValue(PaddingProperty);
1452 return new Extents(OnPaddingChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1454 // Two return points to prevent creating a zeroed Extent native object before assignment
1458 Extents padding = value;
1461 // Layout set so store Padding in LayoutItem instead of in View.
1462 // If View stores the Padding value then Legacy Size Negotiation will overwrite
1463 // the position and sizes measure in the Layouting.
1464 Layout.Padding = value;
1465 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
1466 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
1467 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
1469 padding = new Extents(0,0,0,0); // Reset value stored in View.
1471 _layout?.RequestLayout();
1473 SetValue(PaddingProperty, padding);
1474 NotifyPropertyChanged();
1475 _layout?.RequestLayout();
1480 /// Gets or sets the minimum size the view can be assigned in size negotiation.
1483 /// The property cascade chaining set is possible. For example, this (view.MinimumSize.Width = 1;) is possible.
1485 /// <since_tizen> 3 </since_tizen>
1486 public Size2D MinimumSize
1490 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
1491 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
1495 if (_layout != null)
1497 // Note: it only works if minimum size is >= than natural size.
1498 // To force the size it should be done through the width&height spec or Size2D.
1499 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
1500 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
1501 _layout.RequestLayout();
1503 SetValue(MinimumSizeProperty, value);
1504 NotifyPropertyChanged();
1509 /// Gets or sets the maximum size the view can be assigned in size negotiation.
1512 /// The property cascade chaining set is possible. For example, this (view.MaximumSize.Width = 1;) is possible.
1514 /// <since_tizen> 3 </since_tizen>
1515 public Size2D MaximumSize
1519 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
1520 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
1524 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
1525 // MATCH_PARENT spec + parent container size can be used to limit
1526 if (_layout != null)
1528 // Note: it only works if minimum size is >= than natural size.
1529 // To force the size it should be done through the width&height spec or Size2D.
1530 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
1531 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
1532 _layout.RequestLayout();
1534 SetValue(MaximumSizeProperty, value);
1535 NotifyPropertyChanged();
1540 /// Gets or sets whether a child view inherits it's parent's position.<br />
1541 /// Default is to inherit.<br />
1542 /// 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 />
1544 /// <since_tizen> 3 </since_tizen>
1545 public bool InheritPosition
1549 return (bool)GetValue(InheritPositionProperty);
1553 SetValue(InheritPositionProperty, value);
1554 NotifyPropertyChanged();
1559 /// Gets or sets the clipping behavior (mode) of it's children.
1561 /// <since_tizen> 3 </since_tizen>
1562 public ClippingModeType ClippingMode
1566 return (ClippingModeType)GetValue(ClippingModeProperty);
1570 SetValue(ClippingModeProperty, value);
1571 NotifyPropertyChanged();
1576 /// Gets the number of renderers held by the view.
1578 /// <since_tizen> 3 </since_tizen>
1579 public uint RendererCount
1583 return GetRendererCount();
1588 /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
1591 /// The property cascade chaining set is possible. For example, this (view.AnchorPoint.X = 0.1f;) is possible.
1593 /// <since_tizen> 3 </since_tizen>
1594 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
1596 "View view = new View(); " +
1597 "view.PivotPoint = PivotPoint.Center; " +
1598 "view.PositionUsesPivotPoint = true;")]
1599 [EditorBrowsable(EditorBrowsableState.Never)]
1600 public Position AnchorPoint
1604 Position temp = new Position(0.0f, 0.0f, 0.0f);
1605 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
1606 return new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
1610 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1611 NotifyPropertyChanged();
1616 /// Sets the size of a view for the width, the height and the depth.<br />
1617 /// Geometry can be scaled to fit within this area.<br />
1618 /// This does not interfere with the view's scale factor.<br />
1619 /// The views default depth is the minimum of width and height.<br />
1623 /// Animatable - This property can be animated using <c>Animation</c> class.
1625 /// The property cascade chaining set is possible. For example, this (view.Size.Width = 1.0f;) is possible.
1627 /// <since_tizen> 5 </since_tizen>
1632 Size tmp = (Size)GetValue(SizeProperty);
1633 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
1637 SetValue(SizeProperty, value);
1638 // Set Specification so when layouts measure this View it matches the value set here.
1639 // All Views are currently Layouts.
1640 WidthSpecification = (int)Math.Ceiling(value.Width);
1641 HeightSpecification = (int)Math.Ceiling(value.Height);
1642 NotifyPropertyChanged();
1647 /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
1649 /// <since_tizen> 3 </since_tizen>
1650 [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
1652 "Container parent = view.GetParent(); " +
1653 "View view = parent as View;")]
1654 [EditorBrowsable(EditorBrowsableState.Never)]
1655 public new View Parent
1660 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
1661 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1662 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
1664 if (basehandle is Layer layer)
1666 ret = new View(Layer.getCPtr(layer).Handle, false);
1667 NUILog.Error("This Parent property is deprecated, shoud do not be used");
1671 ret = basehandle as View;
1674 Interop.BaseHandle.delete_BaseHandle(CPtr);
1675 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1677 if (NDalicPINVOKE.SWIGPendingException.Pending)
1678 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1684 /// Gets/Sets whether inherit parent's the layout Direction.
1686 /// <since_tizen> 4 </since_tizen>
1687 public bool InheritLayoutDirection
1691 return (bool)GetValue(InheritLayoutDirectionProperty);
1695 SetValue(InheritLayoutDirectionProperty, value);
1696 NotifyPropertyChanged();
1701 /// Gets/Sets the layout Direction.
1703 /// <since_tizen> 4 </since_tizen>
1704 public ViewLayoutDirectionType LayoutDirection
1708 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
1712 SetValue(LayoutDirectionProperty, value);
1713 NotifyPropertyChanged();
1714 _layout?.RequestLayout();
1719 /// Gets or sets the Margin for use in layout.
1722 /// Margin property is supported by Layout algorithms and containers.
1723 /// Please Set Layout if you want to use Margin property.
1724 /// The property cascade chaining set is possible. For example, this (view.Margin.X = 0.1f;) is possible.
1726 /// <since_tizen> 4 </since_tizen>
1727 public Extents Margin
1731 // If View has a Layout then margin is stored in Layout.
1734 return Layout.Margin;
1738 // If Layout not set then return margin stored in View.
1739 Extents temp = (Extents)GetValue(MarginProperty);
1740 return new Extents(OnMarginChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1742 // Two return points to prevent creating a zeroed Extent native object before assignment
1748 // Layout set so store Margin in LayoutItem instead of View.
1749 // If View stores the Margin too then the Legacy Size Negotiation will
1750 // overwrite the position and size values measured in the Layouting.
1751 Layout.Margin = value;
1752 SetValue(MarginProperty, new Extents(0,0,0,0));
1753 _layout?.RequestLayout();
1757 SetValue(MarginProperty, value);
1759 NotifyPropertyChanged();
1760 _layout?.RequestLayout();
1765 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1767 /// <since_tizen> 6 </since_tizen>
1768 public int WidthSpecification
1772 return _widthPolicy;
1776 _widthPolicy = value;
1777 if (_widthPolicy >= 0)
1779 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
1781 if(_heightPolicy>=0) // Policy an exact value
1783 Size2D.Width = _widthPolicy;
1787 // Store _heightPolicy in the Size2D memember as will be reset to 0 by a Size2D callback.
1788 // Size2D height will store the specification value (negative number) this will then be applied to the
1789 // HeightSpecification when the Size2D callback is invoked.
1790 Size2D = new Size2D(_widthPolicy,_heightPolicy);
1793 _layout?.RequestLayout();
1798 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1800 /// <since_tizen> 6 </since_tizen>
1801 public int HeightSpecification
1805 return _heightPolicy;
1809 _heightPolicy = value;
1810 if (_heightPolicy >= 0)
1812 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
1814 if(_widthPolicy>=0) // Policy an exact value
1816 Size2D.Height = _heightPolicy;
1820 // Store widthPolicy in the Size2D memember as will be reset to 0 by a Size2D callback.
1821 // Size2D height will store the specification value (negative number) this will then be applied to the
1822 // HeightSpecification when the Size2D callback is invoked.
1823 Size2D = new Size2D(_widthPolicy,_heightPolicy);
1827 _layout?.RequestLayout();
1832 /// Gets the List of transitions for this View.
1834 /// <since_tizen> 6 </since_tizen>
1835 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
1839 if (_layoutTransitions == null)
1841 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
1843 return _layoutTransitions;
1848 /// Set a layout transitions for this View.
1851 /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
1853 /// <since_tizen> 6 </since_tizen>
1854 public LayoutTransition LayoutTransition
1858 if (_layoutTransitions == null)
1860 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
1862 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
1864 AttachTransitionsToChildren(value);
1869 /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
1872 /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1874 /// <since_tizen> 4 </since_tizen>
1875 [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
1876 [EditorBrowsable(EditorBrowsableState.Never)]
1877 public Extents PaddingEX
1881 Extents temp = new Extents(0, 0, 0, 0);
1882 GetProperty(View.Property.PADDING).Get(temp);
1883 return new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1887 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
1888 NotifyPropertyChanged();
1889 _layout?.RequestLayout();
1893 /// <since_tizen> 6 </since_tizen>
1894 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1895 [EditorBrowsable(EditorBrowsableState.Never)]
1896 public Style XamlStyle
1900 return (Style)GetValue(XamlStyleProperty);
1904 SetValue(XamlStyleProperty, value);
1909 /// The Color of View. This is an RGBA value.
1913 /// Animatable - This property can be animated using <c>Animation</c> class.
1915 /// The property cascade chaining set is possible. For example, this (view.Color.X = 0.1f;) is possible.
1917 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1918 [EditorBrowsable(EditorBrowsableState.Never)]
1923 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1924 GetProperty(Interop.ActorProperty.Actor_Property_COLOR_get()).Get(temp);
1925 return new Color(OnColorChanged, temp.R, temp.G, temp.B, temp.A);
1934 /// Set the layout on this View. Replaces any existing Layout.
1936 /// <since_tizen> 6 </since_tizen>
1937 public LayoutItem Layout
1945 // Do nothing if layout provided is already set on this View.
1946 if (value == _layout)
1951 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
1952 layoutingDisabled = false;
1955 // If new layout being set already has a owner then that owner receives a replacement default layout.
1956 // First check if the layout to be set already has a owner.
1957 if (value?.Owner != null)
1959 // Previous owner of the layout gets a default layout as a replacement.
1960 value.Owner.Layout = new LayoutGroup();
1962 // Copy Margin and Padding to replacement LayoutGroup.
1963 value.Owner.Layout.Margin = value.Margin;
1964 value.Owner.Layout.Padding = value.Padding;
1967 // Copy Margin and Padding to new layout being set or restore padding and margin back to
1968 // View if no replacement. Previously margin and padding values would have been moved from
1969 // the View to the layout.
1970 if (_layout != null ) // Existing layout
1974 // Existing layout being replaced so copy over margin and padding values.
1975 value.Margin = _layout.Margin;
1976 value.Padding = _layout.Padding;
1980 // Layout not being replaced so restore margin and padding to View.
1981 SetValue(MarginProperty, _layout.Margin);
1982 SetValue(PaddingProperty, _layout.Padding);
1983 NotifyPropertyChanged();
1988 // First Layout to be added to the View hence copy
1990 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
1993 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
1995 // If View already has a margin set then store it in Layout instead.
1996 value.Margin = Margin;
1997 SetValue(MarginProperty, new Extents(0,0,0,0));
1998 NotifyPropertyChanged();
2001 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
2003 // If View already has a padding set then store it in Layout instead.
2004 value.Padding = Padding;
2005 SetValue(PaddingProperty, new Extents(0,0,0,0));
2006 NotifyPropertyChanged();
2011 // Remove existing layout from it's parent layout group.
2012 _layout?.Unparent();
2014 // Set layout to this view
2020 /// The weight of the View, used to share available space in a layout with siblings.
2022 /// <since_tizen> 6 </since_tizen>
2032 _layout?.RequestLayout();
2037 /// Whether to load the BackgroundImage synchronously.
2038 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
2039 /// Note: For Normal Quad images only.
2041 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2042 [EditorBrowsable(EditorBrowsableState.Never)]
2043 public bool BackgroundImageSynchronosLoading
2047 return _backgroundImageSynchronosLoading;
2051 _backgroundImageSynchronosLoading = value;
2054 Background.Find(Visual.Property.Type)?.Get(out visualType);
2055 if (visualType == (int)Visual.Type.Image)
2057 Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
2060 if (bgUrl.Length != 0)
2062 PropertyMap bgMap = this.Background;
2063 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
2069 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2070 [EditorBrowsable(EditorBrowsableState.Never)]
2071 public Vector2 UpdateSizeHint
2075 return (Vector2)GetValue(UpdateSizeHintProperty);
2079 SetValue(UpdateSizeHintProperty, value);
2080 NotifyPropertyChanged();
2084 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
2085 [EditorBrowsable(EditorBrowsableState.Never)]
2086 public string[] TransitionNames
2090 return transitionNames;
2094 transitionNames = value;