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 LayoutItem _layout; // Exclusive layout assigned to this View.
49 // List of transitions paired with the condition that uses the transition.
50 private Dictionary<TransitionCondition, TransitionList> _layoutTransitions;
51 private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
52 private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
53 private float _weight = 0.0f; // Weighting of child View in a Layout
54 private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
55 private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
56 private bool _backgroundImageSynchronosLoading = false;
57 private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
58 private string[] transitionNames;
60 internal Size2D sizeSetExplicitly = new Size2D(); // Store size set by API, will be used in place of NaturalSize if not set.
63 /// Creates a new instance of a view.
65 /// <since_tizen> 3 </since_tizen>
66 public View() : this(Interop.View.View_New(), true)
68 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
72 /// Create a new instance of a View with setting the status of shown or hidden.
74 /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
75 /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
76 [EditorBrowsable(EditorBrowsableState.Never)]
77 public View(bool shown) : this(Interop.View.View_New(), true)
79 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
83 internal View(View uiControl, bool shown = true) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
85 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
92 internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
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 sizeSetExplicitly = value; // Store size set by API, will be used in place of NaturalSize if not set.
557 SetValue(Size2DProperty, value);
558 // Set Specification so when layouts measure this View it matches the value set here.
559 // All Views are currently Layouts.
560 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
561 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
562 _widthPolicy = value.Width;
563 _heightPolicy = value.Height;
564 _layout?.RequestLayout();
565 NotifyPropertyChanged();
570 /// Retrieves the size of the view.<br />
571 /// The coordinates are relative to the view's parent.<br />
573 /// <since_tizen> 3 </since_tizen>
574 public Size2D CurrentSize
578 return GetCurrentSize();
583 /// Retrieves and sets the view's opacity.<br />
585 /// <since_tizen> 3 </since_tizen>
590 return (float)GetValue(OpacityProperty);
594 SetValue(OpacityProperty, value);
595 NotifyPropertyChanged();
600 /// Sets the position of the view for X and Y.<br />
601 /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
602 /// If the position inheritance is disabled, sets the world position.<br />
605 /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
606 /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
608 /// <since_tizen> 3 </since_tizen>
609 public Position2D Position2D
613 Position2D temp = (Position2D)GetValue(Position2DProperty);
614 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
618 SetValue(Position2DProperty, value);
619 NotifyPropertyChanged();
624 /// Retrieves the screen postion of the view.<br />
626 /// <since_tizen> 3 </since_tizen>
627 public Vector2 ScreenPosition
631 Vector2 temp = new Vector2(0.0f, 0.0f);
632 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
638 /// Determines whether the pivot point should be used to determine the position of the view.
639 /// This is true by default.
641 /// <remarks>If false, then the top-left of the view is used for the position.
642 /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
644 /// <since_tizen> 3 </since_tizen>
645 public bool PositionUsesPivotPoint
649 return (bool)GetValue(PositionUsesPivotPointProperty);
653 SetValue(PositionUsesPivotPointProperty, value);
654 NotifyPropertyChanged();
659 /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
661 /// <since_tizen> 3 </since_tizen>
662 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
664 "View view = new View(); " +
665 "view.PivotPoint = PivotPoint.Center; " +
666 "view.PositionUsesPivotPoint = true;" +
667 " Deprecated in API5: Will be removed in API8")]
668 [EditorBrowsable(EditorBrowsableState.Never)]
669 public bool PositionUsesAnchorPoint
674 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
679 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
680 NotifyPropertyChanged();
685 /// Queries whether the view is connected to the stage.<br />
686 /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
688 /// <since_tizen> 3 </since_tizen>
689 public bool IsOnWindow
698 /// Gets the depth in the hierarchy for the view.
700 /// <since_tizen> 3 </since_tizen>
701 public int HierarchyDepth
705 return GetHierarchyDepth();
710 /// Sets the sibling order of the view so the depth position can be defined within the same parent.
713 /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
714 /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
715 /// The values set by this property will likely change.
717 /// <since_tizen> 3 </since_tizen>
718 public int SiblingOrder
722 return (int)GetValue(SiblingOrderProperty);
726 SetValue(SiblingOrderProperty, value);
727 NotifyPropertyChanged();
732 /// Returns the natural size of the view.
735 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
737 /// <since_tizen> 5 </since_tizen>
738 public Vector3 NaturalSize
742 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
743 if (NDalicPINVOKE.SWIGPendingException.Pending)
744 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
750 /// Returns the natural size (Size2D) of the view.
753 /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
755 /// <since_tizen> 4 </since_tizen>
756 public Size2D NaturalSize2D
760 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
761 if (NDalicPINVOKE.SWIGPendingException.Pending)
762 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
764 return new Size2D((int)temp.Width, (int)temp.Height);
769 /// Gets or sets the origin of a view within its parent's area.<br />
770 /// 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 />
771 /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
772 /// A view's position is the distance between this origin and the view's anchor-point.<br />
774 /// <pre>The view has been initialized.</pre>
775 /// <since_tizen> 3 </since_tizen>
776 public Position ParentOrigin
780 Position tmp = (Position)GetValue(ParentOriginProperty);
781 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
785 SetValue(ParentOriginProperty, value);
786 NotifyPropertyChanged();
791 /// Gets or sets the anchor-point of a view.<br />
792 /// 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 />
793 /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
794 /// A view position is the distance between its parent-origin and this anchor-point.<br />
795 /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
796 /// <pre>The view has been initialized.</pre>
799 /// The property cascade chaining set is possible. For example, this (view.PivotPoint.X = 0.1f;) is possible.
801 /// <since_tizen> 3 </since_tizen>
802 public Position PivotPoint
806 Position tmp = (Position)GetValue(PivotPointProperty);
807 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
811 SetValue(PivotPointProperty, value);
812 NotifyPropertyChanged();
817 /// Gets or sets the size width of the view.
821 /// Animatable - This property can be animated using <c>Animation</c> class.
824 /// <since_tizen> 3 </since_tizen>
825 public float SizeWidth
829 return (float)GetValue(SizeWidthProperty);
833 SetValue(SizeWidthProperty, value);
834 WidthSpecification = (int)Math.Ceiling(value);
835 NotifyPropertyChanged();
840 /// Gets or sets the size height of the view.
844 /// Animatable - This property can be animated using <c>Animation</c> class.
847 /// <since_tizen> 3 </since_tizen>
848 public float SizeHeight
852 return (float)GetValue(SizeHeightProperty);
856 SetValue(SizeHeightProperty, value);
857 HeightSpecification = (int)Math.Ceiling(value);
858 NotifyPropertyChanged();
863 /// Gets or sets the position of the view.<br />
864 /// By default, sets the position vector between the parent origin and pivot point (default).<br />
865 /// If the position inheritance is disabled, sets the world position.<br />
869 /// Animatable - This property can be animated using <c>Animation</c> class.
871 /// The property cascade chaining set is possible. For example, this (view.Position.X = 1.0f;) is possible.
873 /// <since_tizen> 3 </since_tizen>
874 public Position Position
878 Position tmp = (Position)GetValue(PositionProperty);
879 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
883 SetValue(PositionProperty, value);
884 NotifyPropertyChanged();
889 /// Gets or sets the position X of the view.
893 /// Animatable - This property can be animated using <c>Animation</c> class.
896 /// <since_tizen> 3 </since_tizen>
897 public float PositionX
901 return (float)GetValue(PositionXProperty);
905 SetValue(PositionXProperty, value);
906 NotifyPropertyChanged();
911 /// Gets or sets the position Y of the view.
915 /// Animatable - This property can be animated using <c>Animation</c> class.
918 /// <since_tizen> 3 </since_tizen>
919 public float PositionY
923 return (float)GetValue(PositionYProperty);
927 SetValue(PositionYProperty, value);
928 NotifyPropertyChanged();
933 /// Gets or sets the position Z of the view.
937 /// Animatable - This property can be animated using <c>Animation</c> class.
940 /// <since_tizen> 3 </since_tizen>
941 public float PositionZ
945 return (float)GetValue(PositionZProperty);
949 SetValue(PositionZProperty, value);
950 NotifyPropertyChanged();
955 /// Gets or sets the world position of the view.
957 /// <since_tizen> 3 </since_tizen>
958 public Vector3 WorldPosition
962 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
963 GetProperty(View.Property.WORLD_POSITION).Get(temp);
969 /// Gets or sets the orientation of the view.<br />
970 /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
974 /// This is an asynchronous method.
977 /// Animatable - This property can be animated using <c>Animation</c> class.
980 /// <since_tizen> 3 </since_tizen>
981 public Rotation Orientation
985 return (Rotation)GetValue(OrientationProperty);
989 SetValue(OrientationProperty, value);
990 NotifyPropertyChanged();
995 /// Gets or sets the world orientation of the view.<br />
997 /// <since_tizen> 3 </since_tizen>
998 public Rotation WorldOrientation
1002 Rotation temp = new Rotation();
1003 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
1009 /// Gets or sets the scale factor applied to the view.<br />
1013 /// Animatable - This property can be animated using <c>Animation</c> class.
1015 /// The property cascade chaining set is possible. For example, this (view.Scale.X = 0.1f;) is possible.
1017 /// <since_tizen> 3 </since_tizen>
1018 public Vector3 Scale
1022 Vector3 temp = (Vector3)GetValue(ScaleProperty);
1023 return new Vector3(OnScaleChanged, temp.X, temp.Y, temp.Z);
1027 SetValue(ScaleProperty, value);
1028 NotifyPropertyChanged();
1033 /// Gets or sets the scale X factor applied to the view.
1037 /// Animatable - This property can be animated using <c>Animation</c> class.
1040 /// <since_tizen> 3 </since_tizen>
1045 return (float)GetValue(ScaleXProperty);
1049 SetValue(ScaleXProperty, value);
1050 NotifyPropertyChanged();
1055 /// Gets or sets the scale Y factor applied to the view.
1059 /// Animatable - This property can be animated using <c>Animation</c> class.
1062 /// <since_tizen> 3 </since_tizen>
1067 return (float)GetValue(ScaleYProperty);
1071 SetValue(ScaleYProperty, value);
1072 NotifyPropertyChanged();
1077 /// Gets or sets the scale Z factor applied to the view.
1081 /// Animatable - This property can be animated using <c>Animation</c> class.
1084 /// <since_tizen> 3 </since_tizen>
1089 return (float)GetValue(ScaleZProperty);
1093 SetValue(ScaleZProperty, value);
1094 NotifyPropertyChanged();
1099 /// Gets the world scale of the view.
1101 /// <since_tizen> 3 </since_tizen>
1102 public Vector3 WorldScale
1106 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1107 GetProperty(View.Property.WORLD_SCALE).Get(temp);
1113 /// Retrieves the visibility flag of the view.
1117 /// If the view is not visible, then the view and its children will not be rendered.
1118 /// 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.
1121 /// Animatable - This property can be animated using <c>Animation</c> class.
1124 /// <since_tizen> 3 </since_tizen>
1125 public bool Visibility
1130 GetProperty(View.Property.VISIBLE).Get(out temp);
1136 /// Gets the view's world color.
1138 /// <since_tizen> 3 </since_tizen>
1139 public Vector4 WorldColor
1143 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1144 GetProperty(View.Property.WORLD_COLOR).Get(temp);
1150 /// Gets or sets the view's name.
1152 /// <since_tizen> 3 </since_tizen>
1157 return (string)GetValue(NameProperty);
1161 SetValue(NameProperty, value);
1162 NotifyPropertyChanged();
1167 /// Get the number of children held by the view.
1169 /// <since_tizen> 3 </since_tizen>
1170 public new uint ChildCount
1174 return GetChildCount();
1179 /// Gets the view's ID.
1182 /// <since_tizen> 3 </since_tizen>
1192 /// Gets or sets the status of whether the view should emit touch or hover signals.
1194 /// <since_tizen> 3 </since_tizen>
1195 public bool Sensitive
1199 return (bool)GetValue(SensitiveProperty);
1203 SetValue(SensitiveProperty, value);
1204 NotifyPropertyChanged();
1209 /// 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.
1211 /// <since_tizen> 3 </since_tizen>
1212 public bool LeaveRequired
1216 return (bool)GetValue(LeaveRequiredProperty);
1220 SetValue(LeaveRequiredProperty, value);
1221 NotifyPropertyChanged();
1226 /// Gets or sets the status of whether a child view inherits it's parent's orientation.
1228 /// <since_tizen> 3 </since_tizen>
1229 public bool InheritOrientation
1233 return (bool)GetValue(InheritOrientationProperty);
1237 SetValue(InheritOrientationProperty, value);
1238 NotifyPropertyChanged();
1243 /// Gets or sets the status of whether a child view inherits it's parent's scale.
1245 /// <since_tizen> 3 </since_tizen>
1246 public bool InheritScale
1250 return (bool)GetValue(InheritScaleProperty);
1254 SetValue(InheritScaleProperty, value);
1255 NotifyPropertyChanged();
1260 /// Gets or sets the status of how the view and its children should be drawn.<br />
1261 /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
1262 /// 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 />
1263 /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
1264 /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
1265 /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
1267 /// <since_tizen> 3 </since_tizen>
1268 public DrawModeType DrawMode
1272 return (DrawModeType)GetValue(DrawModeProperty);
1276 SetValue(DrawModeProperty, value);
1277 NotifyPropertyChanged();
1282 /// Gets or sets the relative to parent size factor of the view.<br />
1283 /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
1284 /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
1287 /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1289 /// <since_tizen> 3 </since_tizen>
1290 public Vector3 SizeModeFactor
1294 Vector3 temp = (Vector3)GetValue(SizeModeFactorProperty);
1295 return new Vector3(OnSizeModeFactorChanged, temp.X, temp.Y, temp.Z);
1299 SetValue(SizeModeFactorProperty, value);
1300 NotifyPropertyChanged();
1305 /// Gets or sets the width resize policy to be used.
1307 /// <since_tizen> 3 </since_tizen>
1308 public ResizePolicyType WidthResizePolicy
1312 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
1316 SetValue(WidthResizePolicyProperty, value);
1317 // Match ResizePolicy to new Layouting.
1318 // Parent relative policies can not be mapped at this point as parent size unknown.
1321 case ResizePolicyType.UseNaturalSize:
1323 WidthSpecification = LayoutParamPolicies.WrapContent;
1326 case ResizePolicyType.FillToParent:
1328 WidthSpecification = LayoutParamPolicies.MatchParent;
1331 case ResizePolicyType.FitToChildren:
1333 WidthSpecification = LayoutParamPolicies.WrapContent;
1339 NotifyPropertyChanged();
1344 /// Gets or sets the height resize policy to be used.
1346 /// <since_tizen> 3 </since_tizen>
1347 public ResizePolicyType HeightResizePolicy
1351 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
1355 SetValue(HeightResizePolicyProperty, value);
1356 // Match ResizePolicy to new Layouting.
1357 // Parent relative policies can not be mapped at this point as parent size unknown.
1360 case ResizePolicyType.UseNaturalSize:
1362 HeightSpecification = LayoutParamPolicies.WrapContent;
1365 case ResizePolicyType.FillToParent:
1367 HeightSpecification = LayoutParamPolicies.MatchParent;
1370 case ResizePolicyType.FitToChildren:
1372 HeightSpecification = LayoutParamPolicies.WrapContent;
1378 NotifyPropertyChanged();
1383 /// Gets or sets the policy to use when setting size with size negotiation.<br />
1384 /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
1386 /// <since_tizen> 3 </since_tizen>
1387 public SizeScalePolicyType SizeScalePolicy
1391 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
1395 SetValue(SizeScalePolicyProperty, value);
1396 NotifyPropertyChanged();
1401 /// Gets or sets the status of whether the width size is dependent on the height size.
1403 /// <since_tizen> 3 </since_tizen>
1404 public bool WidthForHeight
1408 return (bool)GetValue(WidthForHeightProperty);
1412 SetValue(WidthForHeightProperty, value);
1413 NotifyPropertyChanged();
1418 /// Gets or sets the status of whether the height size is dependent on the width size.
1420 /// <since_tizen> 3 </since_tizen>
1421 public bool HeightForWidth
1425 return (bool)GetValue(HeightForWidthProperty);
1429 SetValue(HeightForWidthProperty, value);
1430 NotifyPropertyChanged();
1435 /// Gets or sets the padding for use in layout.
1438 /// The property cascade chaining set is possible. For example, this (view.Padding.X = 0.1f;) is possible.
1440 /// <since_tizen> 5 </since_tizen>
1441 public Extents Padding
1445 // If View has a Layout then padding in stored in the base Layout class
1448 return Layout.Padding;
1452 Extents temp = (Extents)GetValue(PaddingProperty);
1453 return new Extents(OnPaddingChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1455 // Two return points to prevent creating a zeroed Extent native object before assignment
1459 Extents padding = value;
1462 // Layout set so store Padding in LayoutItem instead of in View.
1463 // If View stores the Padding value then Legacy Size Negotiation will overwrite
1464 // the position and sizes measure in the Layouting.
1465 Layout.Padding = value;
1466 // If Layout is a LayoutItem then it could be a View that handles it's own padding.
1467 // Let the View keeps it's padding. Still store Padding in Layout to reduce code paths.
1468 if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
1470 padding = new Extents(0,0,0,0); // Reset value stored in View.
1472 _layout?.RequestLayout();
1474 SetValue(PaddingProperty, padding);
1475 NotifyPropertyChanged();
1476 _layout?.RequestLayout();
1481 /// Gets or sets the minimum size the view can be assigned in size negotiation.
1484 /// The property cascade chaining set is possible. For example, this (view.MinimumSize.Width = 1;) is possible.
1486 /// <since_tizen> 3 </since_tizen>
1487 public Size2D MinimumSize
1491 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
1492 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
1496 if (_layout != null)
1498 // Note: it only works if minimum size is >= than natural size.
1499 // To force the size it should be done through the width&height spec or Size2D.
1500 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
1501 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
1502 _layout.RequestLayout();
1504 SetValue(MinimumSizeProperty, value);
1505 NotifyPropertyChanged();
1510 /// Gets or sets the maximum size the view can be assigned in size negotiation.
1513 /// The property cascade chaining set is possible. For example, this (view.MaximumSize.Width = 1;) is possible.
1515 /// <since_tizen> 3 </since_tizen>
1516 public Size2D MaximumSize
1520 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
1521 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
1525 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
1526 // MATCH_PARENT spec + parent container size can be used to limit
1527 if (_layout != null)
1529 // Note: it only works if minimum size is >= than natural size.
1530 // To force the size it should be done through the width&height spec or Size2D.
1531 _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
1532 _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
1533 _layout.RequestLayout();
1535 SetValue(MaximumSizeProperty, value);
1536 NotifyPropertyChanged();
1541 /// Gets or sets whether a child view inherits it's parent's position.<br />
1542 /// Default is to inherit.<br />
1543 /// 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 />
1545 /// <since_tizen> 3 </since_tizen>
1546 public bool InheritPosition
1550 return (bool)GetValue(InheritPositionProperty);
1554 SetValue(InheritPositionProperty, value);
1555 NotifyPropertyChanged();
1560 /// Gets or sets the clipping behavior (mode) of it's children.
1562 /// <since_tizen> 3 </since_tizen>
1563 public ClippingModeType ClippingMode
1567 return (ClippingModeType)GetValue(ClippingModeProperty);
1571 SetValue(ClippingModeProperty, value);
1572 NotifyPropertyChanged();
1577 /// Gets the number of renderers held by the view.
1579 /// <since_tizen> 3 </since_tizen>
1580 public uint RendererCount
1584 return GetRendererCount();
1589 /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
1592 /// The property cascade chaining set is possible. For example, this (view.AnchorPoint.X = 0.1f;) is possible.
1594 /// <since_tizen> 3 </since_tizen>
1595 [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
1597 "View view = new View(); " +
1598 "view.PivotPoint = PivotPoint.Center; " +
1599 "view.PositionUsesPivotPoint = true;")]
1600 [EditorBrowsable(EditorBrowsableState.Never)]
1601 public Position AnchorPoint
1605 Position temp = new Position(0.0f, 0.0f, 0.0f);
1606 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
1607 return new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
1611 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1612 NotifyPropertyChanged();
1617 /// Sets the size of a view for the width, the height and the depth.<br />
1618 /// Geometry can be scaled to fit within this area.<br />
1619 /// This does not interfere with the view's scale factor.<br />
1620 /// The views default depth is the minimum of width and height.<br />
1624 /// Animatable - This property can be animated using <c>Animation</c> class.
1626 /// The property cascade chaining set is possible. For example, this (view.Size.Width = 1.0f;) is possible.
1628 /// <since_tizen> 5 </since_tizen>
1633 Size tmp = (Size)GetValue(SizeProperty);
1634 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
1638 SetValue(SizeProperty, value);
1639 // Set Specification so when layouts measure this View it matches the value set here.
1640 // All Views are currently Layouts.
1641 WidthSpecification = (int)Math.Ceiling(value.Width);
1642 HeightSpecification = (int)Math.Ceiling(value.Height);
1643 NotifyPropertyChanged();
1648 /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
1650 /// <since_tizen> 3 </since_tizen>
1651 [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
1653 "Container parent = view.GetParent(); " +
1654 "View view = parent as View;")]
1655 [EditorBrowsable(EditorBrowsableState.Never)]
1656 public new View Parent
1661 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
1662 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1663 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
1665 if (basehandle is Layer layer)
1667 ret = new View(Layer.getCPtr(layer).Handle, false);
1668 NUILog.Error("This Parent property is deprecated, shoud do not be used");
1672 ret = basehandle as View;
1675 Interop.BaseHandle.delete_BaseHandle(CPtr);
1676 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1678 if (NDalicPINVOKE.SWIGPendingException.Pending)
1679 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1685 /// Gets/Sets whether inherit parent's the layout Direction.
1687 /// <since_tizen> 4 </since_tizen>
1688 public bool InheritLayoutDirection
1692 return (bool)GetValue(InheritLayoutDirectionProperty);
1696 SetValue(InheritLayoutDirectionProperty, value);
1697 NotifyPropertyChanged();
1702 /// Gets/Sets the layout Direction.
1704 /// <since_tizen> 4 </since_tizen>
1705 public ViewLayoutDirectionType LayoutDirection
1709 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
1713 SetValue(LayoutDirectionProperty, value);
1714 NotifyPropertyChanged();
1715 _layout?.RequestLayout();
1720 /// Gets or sets the Margin for use in layout.
1723 /// Margin property is supported by Layout algorithms and containers.
1724 /// Please Set Layout if you want to use Margin property.
1725 /// The property cascade chaining set is possible. For example, this (view.Margin.X = 0.1f;) is possible.
1727 /// <since_tizen> 4 </since_tizen>
1728 public Extents Margin
1732 // If View has a Layout then margin is stored in Layout.
1735 return Layout.Margin;
1739 // If Layout not set then return margin stored in View.
1740 Extents temp = (Extents)GetValue(MarginProperty);
1741 return new Extents(OnMarginChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1743 // Two return points to prevent creating a zeroed Extent native object before assignment
1749 // Layout set so store Margin in LayoutItem instead of View.
1750 // If View stores the Margin too then the Legacy Size Negotiation will
1751 // overwrite the position and size values measured in the Layouting.
1752 Layout.Margin = value;
1753 SetValue(MarginProperty, new Extents(0,0,0,0));
1754 _layout?.RequestLayout();
1758 SetValue(MarginProperty, value);
1760 NotifyPropertyChanged();
1761 _layout?.RequestLayout();
1766 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1768 /// <since_tizen> 6 </since_tizen>
1769 public int WidthSpecification
1773 return _widthPolicy;
1777 _widthPolicy = value;
1778 if (_widthPolicy >= 0)
1780 _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
1782 if(_heightPolicy>=0) // Policy an exact value
1784 Size2D.Width = _widthPolicy;
1788 // Store _heightPolicy in the Size2D memember as will be reset to 0 by a Size2D callback.
1789 // Size2D height will store the specification value (negative number) this will then be applied to the
1790 // HeightSpecification when the Size2D callback is invoked.
1791 Size2D = new Size2D(_widthPolicy,_heightPolicy);
1794 _layout?.RequestLayout();
1799 /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1801 /// <since_tizen> 6 </since_tizen>
1802 public int HeightSpecification
1806 return _heightPolicy;
1810 _heightPolicy = value;
1811 if (_heightPolicy >= 0)
1813 _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
1815 if(_widthPolicy>=0) // Policy an exact value
1817 Size2D.Height = _heightPolicy;
1821 // Store widthPolicy in the Size2D memember as will be reset to 0 by a Size2D callback.
1822 // Size2D height will store the specification value (negative number) this will then be applied to the
1823 // HeightSpecification when the Size2D callback is invoked.
1824 Size2D = new Size2D(_widthPolicy,_heightPolicy);
1828 _layout?.RequestLayout();
1833 /// Gets the List of transitions for this View.
1835 /// <since_tizen> 6 </since_tizen>
1836 public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
1840 if (_layoutTransitions == null)
1842 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
1844 return _layoutTransitions;
1849 /// Set a layout transitions for this View.
1852 /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
1854 /// <since_tizen> 6 </since_tizen>
1855 public LayoutTransition LayoutTransition
1859 if (_layoutTransitions == null)
1861 _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
1863 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
1865 AttachTransitionsToChildren(value);
1870 /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
1873 /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1875 /// <since_tizen> 4 </since_tizen>
1876 [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
1877 [EditorBrowsable(EditorBrowsableState.Never)]
1878 public Extents PaddingEX
1882 Extents temp = new Extents(0, 0, 0, 0);
1883 GetProperty(View.Property.PADDING).Get(temp);
1884 return new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1888 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
1889 NotifyPropertyChanged();
1890 _layout?.RequestLayout();
1894 /// <since_tizen> 6 </since_tizen>
1895 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1896 [EditorBrowsable(EditorBrowsableState.Never)]
1897 public Style XamlStyle
1901 return (Style)GetValue(XamlStyleProperty);
1905 SetValue(XamlStyleProperty, value);
1910 /// The Color of View. This is an RGBA value.
1914 /// Animatable - This property can be animated using <c>Animation</c> class.
1916 /// The property cascade chaining set is possible. For example, this (view.Color.X = 0.1f;) is possible.
1918 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1919 [EditorBrowsable(EditorBrowsableState.Never)]
1924 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1925 GetProperty(Interop.ActorProperty.Actor_Property_COLOR_get()).Get(temp);
1926 return new Color(OnColorChanged, temp.R, temp.G, temp.B, temp.A);
1935 /// Set the layout on this View. Replaces any existing Layout.
1937 /// <since_tizen> 6 </since_tizen>
1938 public LayoutItem Layout
1946 // Do nothing if layout provided is already set on this View.
1947 if (value == _layout)
1952 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
1953 layoutingDisabled = false;
1956 // If new layout being set already has a owner then that owner receives a replacement default layout.
1957 // First check if the layout to be set already has a owner.
1958 if (value?.Owner != null)
1960 // Previous owner of the layout gets a default layout as a replacement.
1961 value.Owner.Layout = new LayoutGroup();
1963 // Copy Margin and Padding to replacement LayoutGroup.
1964 value.Owner.Layout.Margin = value.Margin;
1965 value.Owner.Layout.Padding = value.Padding;
1968 // Copy Margin and Padding to new layout being set or restore padding and margin back to
1969 // View if no replacement. Previously margin and padding values would have been moved from
1970 // the View to the layout.
1971 if (_layout != null ) // Existing layout
1975 // Existing layout being replaced so copy over margin and padding values.
1976 value.Margin = _layout.Margin;
1977 value.Padding = _layout.Padding;
1981 // Layout not being replaced so restore margin and padding to View.
1982 SetValue(MarginProperty, _layout.Margin);
1983 SetValue(PaddingProperty, _layout.Padding);
1984 NotifyPropertyChanged();
1989 // First Layout to be added to the View hence copy
1991 // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
1994 if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
1996 // If View already has a margin set then store it in Layout instead.
1997 value.Margin = Margin;
1998 SetValue(MarginProperty, new Extents(0,0,0,0));
1999 NotifyPropertyChanged();
2002 if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
2004 // If View already has a padding set then store it in Layout instead.
2005 value.Padding = Padding;
2006 SetValue(PaddingProperty, new Extents(0,0,0,0));
2007 NotifyPropertyChanged();
2012 // Remove existing layout from it's parent layout group.
2013 _layout?.Unparent();
2015 // Set layout to this view
2021 /// The weight of the View, used to share available space in a layout with siblings.
2023 /// <since_tizen> 6 </since_tizen>
2033 _layout?.RequestLayout();
2038 /// Whether to load the BackgroundImage synchronously.
2039 /// If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
2040 /// Note: For Normal Quad images only.
2042 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2043 [EditorBrowsable(EditorBrowsableState.Never)]
2044 public bool BackgroundImageSynchronosLoading
2048 return _backgroundImageSynchronosLoading;
2052 _backgroundImageSynchronosLoading = value;
2055 Background.Find(Visual.Property.Type)?.Get(out visualType);
2056 if (visualType == (int)Visual.Type.Image)
2058 Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
2061 if (bgUrl.Length != 0)
2063 PropertyMap bgMap = this.Background;
2064 bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
2070 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2071 [EditorBrowsable(EditorBrowsableState.Never)]
2072 public Vector2 UpdateSizeHint
2076 return (Vector2)GetValue(UpdateSizeHintProperty);
2080 SetValue(UpdateSizeHintProperty, value);
2081 NotifyPropertyChanged();
2085 /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
2086 [EditorBrowsable(EditorBrowsableState.Never)]
2087 public string[] TransitionNames
2091 return transitionNames;
2095 transitionNames = value;