Follow formatting NUI
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / View.cs
1 /*
2  * Copyright(c) 2020 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 using System;
18 using System.Collections.Generic;
19 using System.ComponentModel;
20 using System.Runtime.InteropServices;
21 using Tizen.NUI.Binding;
22 using Tizen.NUI.Components;
23
24 namespace Tizen.NUI.BaseComponents
25 {
26     /// <summary>
27     /// View is the base class for all views.
28     /// </summary>
29     /// <since_tizen> 3 </since_tizen>
30     public partial class View : Container, IResourcesProvider
31     {
32         /// <summary>
33         /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
34         /// </summary>
35         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
36         [EditorBrowsable(EditorBrowsableState.Never)]
37         public bool layoutSet = false;
38
39         /// <summary>
40         /// Flag to allow Layouting to be disabled for Views.
41         /// Once a View has a Layout set then any children added to Views from then on will receive
42         /// automatic Layouts.
43         /// </summary>
44         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
45         [EditorBrowsable(EditorBrowsableState.Never)]
46         public static bool layoutingDisabled { get; set; } = true;
47
48         private LayoutItem _layout; // Exclusive layout assigned to this View.
49
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 int _oldWidthPolicy = LayoutParamPolicies.MatchParent; // // Store Layout width to compare against later
55         private int _oldHeightPolicy = LayoutParamPolicies.MatchParent; // Store Layout height to compare against later
56         private float _weight = 0.0f; // Weighting of child View in a Layout
57         private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
58         private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
59         private bool _backgroundImageSynchronosLoading = false;
60         private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
61         private string[] transitionNames;
62         private bool controlStatePropagation = false;
63         private ViewStyle viewStyle;
64         private bool themeChangeSensitive = false;
65         private bool excludeLayouting = true;
66
67         internal Size2D sizeSetExplicitly = new Size2D(); // Store size set by API, will be used in place of NaturalSize if not set.
68         internal BackgroundExtraData backgroundExtraData;
69
70         static View() { }
71
72         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
73         [EditorBrowsable(EditorBrowsableState.Never)]
74         public ViewStyle ViewStyle
75         {
76             get
77             {
78                 if (null == viewStyle)
79                 {
80                     ApplyStyle(GetViewStyle());
81                 }
82
83                 return viewStyle;
84             }
85         }
86
87         /// <summary>
88         /// Creates a new instance of a view.
89         /// </summary>
90         /// <since_tizen> 3 </since_tizen>
91         public View() : this(Interop.View.View_New(), true)
92         {
93             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
94         }
95
96         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
97         [EditorBrowsable(EditorBrowsableState.Never)]
98         public View(ViewStyle viewStyle) : this(Interop.View.View_New(), true, viewStyle)
99         {
100         }
101
102         /// <summary>
103         /// Create a new instance of a View with setting the status of shown or hidden.
104         /// </summary>
105         /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
106         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
107         [EditorBrowsable(EditorBrowsableState.Never)]
108         public View(bool shown) : this(Interop.View.View_New(), true)
109         {
110             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
111             SetVisible(shown);
112         }
113
114         internal View(View uiControl, bool shown = true) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
115         {
116             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
117             if (!shown)
118             {
119                 SetVisible(false);
120             }
121
122             backgroundExtraData = uiControl.backgroundExtraData == null ? null : new BackgroundExtraData(uiControl.backgroundExtraData);
123         }
124
125         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, ViewStyle viewStyle, bool shown = true) : this(cPtr, cMemoryOwn, shown)
126         {
127             if (!ThemeManager.ThemeApplied) return;
128
129             if (viewStyle == null) UpdateStyle(); // Use style in the current theme
130             else ApplyStyle(viewStyle.Clone());   // Use given style
131         }
132
133         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
134         {
135             if (HasBody())
136             {
137                 PositionUsesPivotPoint = false;
138             }
139
140             //ToDo: this has memory leak and this is not used currently. will be fixed soon by using Event subscribing pattern.
141             //_onWindowSendEventCallback = SendViewAddedEventToWindow;
142             //this.OnWindowSignal().Connect(_onWindowSendEventCallback);
143
144             if (!shown)
145             {
146                 SetVisible(false);
147             }
148         }
149
150         internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
151         {
152             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153
154             if (!shown)
155             {
156                 SetVisible(false);
157             }
158         }
159
160         /// <summary>
161         /// The event that is triggered when the View's ControlState is changed.
162         /// </summary>
163         [EditorBrowsable(EditorBrowsableState.Never)]
164         public event EventHandler<ControlStateChangedEventArgs> ControlStateChangedEvent;
165
166         internal event EventHandler<ControlStateChangedEventArgs> ControlStateChangeEventInternal;
167
168         private ControlState controlStates = ControlState.Normal;
169         /// <summary>
170         /// Get/Set the control state.
171         /// </summary>
172         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
173         [EditorBrowsable(EditorBrowsableState.Never)]
174         public ControlState ControlState
175         {
176             get
177             {
178                 return controlStates;
179             }
180             protected set
181             {
182                 if (controlStates == value)
183                 {
184                     return;
185                 }
186
187                 var prevState = controlStates;
188
189                 controlStates = value;
190
191                 var changeInfo = new ControlStateChangedEventArgs(prevState, value);
192
193                 ControlStateChangeEventInternal?.Invoke(this, changeInfo);
194
195                 if (controlStatePropagation)
196                 {
197                     foreach (View child in Children)
198                     {
199                         child.ControlState = value;
200                     }
201                 }
202
203                 OnControlStateChanged(changeInfo);
204
205                 ControlStateChangedEvent?.Invoke(this, changeInfo);
206             }
207         }
208
209         /// This will be public opened in tizen_6.5 after ACR done. Before ACR, need to be hidden as inhouse API.
210         [EditorBrowsable(EditorBrowsableState.Never)]
211         public bool ExcludeLayouting
212         {
213             get
214             {
215                 return excludeLayouting;
216             }
217             set
218             {
219                 excludeLayouting = value;
220                 if (Layout != null && Layout.SetPositionByLayout != value)
221                 {
222                     Layout.SetPositionByLayout = value;
223                     Layout.RequestLayout();
224                 }
225             }
226         }
227
228         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
229         [EditorBrowsable(EditorBrowsableState.Never)]
230         public bool IsResourcesCreated
231         {
232             get
233             {
234                 return Application.Current.IsResourcesCreated;
235             }
236         }
237
238         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
239         [EditorBrowsable(EditorBrowsableState.Never)]
240         public ResourceDictionary XamlResources
241         {
242             get
243             {
244                 return Application.Current.XamlResources;
245             }
246             set
247             {
248                 Application.Current.XamlResources = value;
249             }
250         }
251
252         /// <summary>
253         /// The StyleName, type string.
254         /// The value indicates DALi style name defined in json theme file.
255         /// </summary>
256         /// <since_tizen> 3 </since_tizen>
257         public string StyleName
258         {
259             get
260             {
261                 return (string)GetValue(StyleNameProperty);
262             }
263             set
264             {
265                 SetValue(StyleNameProperty, value);
266                 NotifyPropertyChanged();
267             }
268         }
269
270         /// <summary>
271         /// The KeyInputFocus, type bool.
272         /// </summary>
273         [EditorBrowsable(EditorBrowsableState.Never)]
274         public bool KeyInputFocus
275         {
276             get
277             {
278                 return (bool)GetValue(KeyInputFocusProperty);
279             }
280             set
281             {
282                 SetValue(KeyInputFocusProperty, value);
283                 NotifyPropertyChanged();
284             }
285         }
286
287         /// <summary>
288         /// The mutually exclusive with "backgroundImage" and "background" type Vector4.
289         /// </summary>
290         /// <remarks>
291         /// The property cascade chaining set is possible. For example, this (view.BackgroundColor.X = 0.1f;) is possible.
292         /// </remarks>
293         /// <since_tizen> 3 </since_tizen>
294         public Color BackgroundColor
295         {
296             get
297             {
298                 Color temp = (Color)GetValue(BackgroundColorProperty);
299                 return new Color(OnBackgroundColorChanged, temp.R, temp.G, temp.B, temp.A);
300             }
301             set
302             {
303                 SetValue(BackgroundColorProperty, value);
304                 if (selectorData != null)
305                 {
306                     selectorData.BackgroundImage.Reset(this);
307                     selectorData.BackgroundColor.UpdateIfNeeds(this, value);
308                 }
309                 NotifyPropertyChanged();
310             }
311         }
312
313         /// <summary>
314         /// The mutually exclusive with "backgroundColor" and "background" type Map.
315         /// </summary>
316         /// <since_tizen> 3 </since_tizen>
317         public string BackgroundImage
318         {
319             get
320             {
321                 return (string)GetValue(BackgroundImageProperty);
322             }
323             set
324             {
325                 SetValue(BackgroundImageProperty, value);
326                 if (selectorData != null)
327                 {
328                     selectorData.BackgroundColor.Reset(this);
329                     selectorData.BackgroundImage.UpdateIfNeeds(this, value);
330                 }
331                 NotifyPropertyChanged();
332             }
333         }
334
335         /// <summary>
336         /// Get or set the border of background image.
337         /// </summary>
338         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
339         [EditorBrowsable(EditorBrowsableState.Never)]
340         public Rectangle BackgroundImageBorder
341         {
342             get
343             {
344                 return (Rectangle)GetValue(BackgroundImageBorderProperty);
345             }
346             set
347             {
348                 SetValue(BackgroundImageBorderProperty, value);
349                 selectorData?.BackgroundImageBorder.UpdateIfNeeds(this, value);
350                 NotifyPropertyChanged();
351             }
352         }
353
354         /// <summary>
355         /// The background of view.
356         /// </summary>
357         /// <since_tizen> 3 </since_tizen>
358         public Tizen.NUI.PropertyMap Background
359         {
360             get
361             {
362                 return (PropertyMap)GetValue(BackgroundProperty);
363             }
364             set
365             {
366                 SetValue(BackgroundProperty, value);
367                 NotifyPropertyChanged();
368             }
369         }
370
371         /// <summary>
372         /// Describes a shadow as an image for a View.
373         /// It is null by default.
374         /// </summary>
375         /// <remarks>
376         /// Getter returns copied instance of current shadow.
377         /// </remarks>
378         /// <remarks>
379         /// The mutually exclusive with "BoxShadow".
380         /// </remarks>
381         [EditorBrowsable(EditorBrowsableState.Never)]
382         public ImageShadow ImageShadow
383         {
384             get
385             {
386                 return (ImageShadow)GetValue(ImageShadowProperty);
387             }
388             set
389             {
390                 SetValue(ImageShadowProperty, value);
391                 if (selectorData != null)
392                 {
393                     selectorData.BoxShadow.Reset(this);
394                     selectorData.ImageShadow.UpdateIfNeeds(this, value);
395                 }
396                 NotifyPropertyChanged();
397             }
398         }
399
400         /// <summary>
401         /// Describes a box shaped shadow drawing for a View.
402         /// It is null by default.
403         /// </summary>
404         /// <remarks>
405         /// Gettter returns copied instance of current shadow.
406         /// </remarks>
407         /// <remarks>
408         /// The mutually exclusive with "ImageShadow".
409         /// </remarks>
410         [EditorBrowsable(EditorBrowsableState.Never)]
411         public Shadow BoxShadow
412         {
413             get
414             {
415                 return (Shadow)GetValue(BoxShadowProperty);
416             }
417             set
418             {
419                 SetValue(BoxShadowProperty, value);
420                 if (selectorData != null)
421                 {
422                     selectorData.ImageShadow.Reset(this);
423                     selectorData.BoxShadow.UpdateIfNeeds(this, value);
424                 }
425                 NotifyPropertyChanged();
426             }
427         }
428
429         /// <summary>
430         /// The radius for the rounded corners of the View.
431         /// This will rounds background and shadow edges.
432         /// Note that, an image background (or shadow) may not have rounded corners if it uses a Border property.
433         /// </summary>
434         [EditorBrowsable(EditorBrowsableState.Never)]
435         public float CornerRadius
436         {
437             get
438             {
439                 return (float)GetValue(CornerRadiusProperty);
440             }
441             set
442             {
443                 SetValue(CornerRadiusProperty, value);
444                 selectorData?.CornerRadius.UpdateIfNeeds(this, value);
445                 NotifyPropertyChanged();
446             }
447         }
448
449         /// <summary>
450         /// The current state of the view.
451         /// </summary>
452         /// <since_tizen> 3 </since_tizen>
453         public States State
454         {
455             get
456             {
457                 return (States)GetValue(StateProperty);
458             }
459             set
460             {
461                 SetValue(StateProperty, value);
462                 NotifyPropertyChanged();
463             }
464         }
465
466         /// <summary>
467         /// The current sub state of the view.
468         /// </summary>
469         /// <since_tizen> 3 </since_tizen>
470         public States SubState
471         {
472             get
473             {
474                 return (States)GetValue(SubStateProperty);
475             }
476             set
477             {
478                 SetValue(SubStateProperty, value);
479                 NotifyPropertyChanged();
480             }
481         }
482
483         /// <summary>
484         /// Displays a tooltip
485         /// </summary>
486         /// <since_tizen> 3 </since_tizen>
487         public Tizen.NUI.PropertyMap Tooltip
488         {
489             get
490             {
491                 return (PropertyMap)GetValue(TooltipProperty);
492             }
493             set
494             {
495                 SetValue(TooltipProperty, value);
496                 NotifyPropertyChanged();
497             }
498         }
499
500         /// <summary>
501         /// Displays a tooltip as a text.
502         /// </summary>
503         /// <since_tizen> 3 </since_tizen>
504         public string TooltipText
505         {
506             set
507             {
508                 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
509                 NotifyPropertyChanged();
510             }
511         }
512
513         /// <summary>
514         /// The Child property of FlexContainer.<br />
515         /// The proportion of the free space in the container, the flex item will receive.<br />
516         /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
517         /// </summary>
518         /// <since_tizen> 3 </since_tizen>
519         [Obsolete("Deprecated in API8, will be removed in API10.")]
520         public float Flex
521         {
522             get
523             {
524                 return (float)GetValue(FlexProperty);
525             }
526             set
527             {
528                 SetValue(FlexProperty, value);
529                 NotifyPropertyChanged();
530             }
531         }
532
533         /// <summary>
534         /// The Child property of FlexContainer.<br />
535         /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
536         /// </summary>
537         /// <since_tizen> 3 </since_tizen>
538         [Obsolete("Deprecated in API8, will be removed in API10.")]
539         public int AlignSelf
540         {
541             get
542             {
543                 return (int)GetValue(AlignSelfProperty);
544             }
545             set
546             {
547                 SetValue(AlignSelfProperty, value);
548                 NotifyPropertyChanged();
549             }
550         }
551
552         /// <summary>
553         /// The Child property of FlexContainer.<br />
554         /// The space around the flex item.<br />
555         /// </summary>
556         /// <remarks>
557         /// The property cascade chaining set is possible. For example, this (view.FlexMargin.X = 0.1f;) is possible.
558         /// </remarks>
559         /// <since_tizen> 3 </since_tizen>
560         [Obsolete("Deprecated in API8, will be removed in API10.")]
561         public Vector4 FlexMargin
562         {
563             get
564             {
565                 Vector4 temp = (Vector4)GetValue(FlexMarginProperty);
566                 return new Vector4(OnFlexMarginChanged, temp.X, temp.Y, temp.Z, temp.W);
567             }
568             set
569             {
570                 SetValue(FlexMarginProperty, value);
571                 NotifyPropertyChanged();
572             }
573         }
574
575         /// <summary>
576         /// The top-left cell this child occupies, if not set, the first available cell is used.
577         /// </summary>
578         /// <remarks>
579         /// The property cascade chaining set is possible. For example, this (view.CellIndex.X = 0.1f;) is possible.
580         /// </remarks>
581         /// <since_tizen> 3 </since_tizen>
582         public Vector2 CellIndex
583         {
584             get
585             {
586                 Vector2 temp = (Vector2)GetValue(CellIndexProperty);
587                 return new Vector2(OnCellIndexChanged, temp.X, temp.Y);
588             }
589             set
590             {
591                 SetValue(CellIndexProperty, value);
592                 NotifyPropertyChanged();
593             }
594         }
595
596         /// <summary>
597         /// The number of rows this child occupies, if not set, the default value is 1.
598         /// </summary>
599         /// <since_tizen> 3 </since_tizen>
600         public float RowSpan
601         {
602             get
603             {
604                 return (float)GetValue(RowSpanProperty);
605             }
606             set
607             {
608                 SetValue(RowSpanProperty, value);
609                 NotifyPropertyChanged();
610             }
611         }
612
613         /// <summary>
614         /// The number of columns this child occupies, if not set, the default value is 1.
615         /// </summary>
616         /// <since_tizen> 3 </since_tizen>
617         public float ColumnSpan
618         {
619             get
620             {
621                 return (float)GetValue(ColumnSpanProperty);
622             }
623             set
624             {
625                 SetValue(ColumnSpanProperty, value);
626                 NotifyPropertyChanged();
627             }
628         }
629
630         /// <summary>
631         /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
632         /// </summary>
633         /// <since_tizen> 3 </since_tizen>
634         public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
635         {
636             get
637             {
638                 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
639             }
640             set
641             {
642                 SetValue(CellHorizontalAlignmentProperty, value);
643                 NotifyPropertyChanged();
644             }
645         }
646
647         /// <summary>
648         /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
649         /// </summary>
650         /// <since_tizen> 3 </since_tizen>
651         public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
652         {
653             get
654             {
655                 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
656             }
657             set
658             {
659                 SetValue(CellVerticalAlignmentProperty, value);
660                 NotifyPropertyChanged();
661             }
662         }
663
664         /// <summary>
665         /// The left focusable view.<br />
666         /// This will return null if not set.<br />
667         /// This will also return null if the specified left focusable view is not on a window.<br />
668         /// </summary>
669         /// <since_tizen> 3 </since_tizen>
670         public View LeftFocusableView
671         {
672             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
673             get
674             {
675                 return (View)GetValue(LeftFocusableViewProperty);
676             }
677             set
678             {
679                 SetValue(LeftFocusableViewProperty, value);
680                 NotifyPropertyChanged();
681             }
682         }
683
684         /// <summary>
685         /// The right focusable view.<br />
686         /// This will return null if not set.<br />
687         /// This will also return null if the specified right focusable view is not on a window.<br />
688         /// </summary>
689         /// <since_tizen> 3 </since_tizen>
690         public View RightFocusableView
691         {
692             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
693             get
694             {
695                 return (View)GetValue(RightFocusableViewProperty);
696             }
697             set
698             {
699                 SetValue(RightFocusableViewProperty, value);
700                 NotifyPropertyChanged();
701             }
702         }
703
704         /// <summary>
705         /// The up focusable view.<br />
706         /// This will return null if not set.<br />
707         /// This will also return null if the specified up focusable view is not on a window.<br />
708         /// </summary>
709         /// <since_tizen> 3 </since_tizen>
710         public View UpFocusableView
711         {
712             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
713             get
714             {
715                 return (View)GetValue(UpFocusableViewProperty);
716             }
717             set
718             {
719                 SetValue(UpFocusableViewProperty, value);
720                 NotifyPropertyChanged();
721             }
722         }
723
724         /// <summary>
725         /// The down focusable view.<br />
726         /// This will return null if not set.<br />
727         /// This will also return null if the specified down focusable view is not on a window.<br />
728         /// </summary>
729         /// <since_tizen> 3 </since_tizen>
730         public View DownFocusableView
731         {
732             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
733             get
734             {
735                 return (View)GetValue(DownFocusableViewProperty);
736             }
737             set
738             {
739                 SetValue(DownFocusableViewProperty, value);
740                 NotifyPropertyChanged();
741             }
742         }
743
744         /// <summary>
745         /// Whether the view should be focusable by keyboard navigation.
746         /// </summary>
747         /// <since_tizen> 3 </since_tizen>
748         public bool Focusable
749         {
750             set
751             {
752                 SetValue(FocusableProperty, value);
753                 NotifyPropertyChanged();
754             }
755             get
756             {
757                 return (bool)GetValue(FocusableProperty);
758             }
759         }
760
761         /// <summary>
762         ///  Retrieves the position of the view.<br />
763         ///  The coordinates are relative to the view's parent.<br />
764         /// </summary>
765         /// <since_tizen> 3 </since_tizen>
766         public Position CurrentPosition
767         {
768             get
769             {
770                 return GetCurrentPosition();
771             }
772         }
773
774         /// <summary>
775         /// Sets the size of a view for the width and the height.<br />
776         /// Geometry can be scaled to fit within this area.<br />
777         /// This does not interfere with the view's scale factor.<br />
778         /// The views default depth is the minimum of width and height.<br />
779         /// </summary>
780         /// <remarks>
781         /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
782         /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
783         /// </remarks>
784         /// <since_tizen> 3 </since_tizen>
785         public Size2D Size2D
786         {
787             get
788             {
789                 Size2D temp = (Size2D)GetValue(Size2DProperty);
790
791                 if (this.Layout == null)
792                 {
793                     if (temp.Width < 0) { temp.Width = 0; }
794                     if (temp.Height < 0) { temp.Height = 0; }
795                 }
796
797                 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
798             }
799             set
800             {
801                 sizeSetExplicitly = value;  // Store size set by API, will be used in place of NaturalSize if not set.
802                 SetValue(Size2DProperty, value);
803                 // Set Specification so when layouts measure this View it matches the value set here.
804                 // All Views are currently Layouts.
805                 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
806                 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
807                 _widthPolicy = value.Width;
808                 _heightPolicy = value.Height;
809
810                 _layout?.RequestLayout();
811                 NotifyPropertyChanged();
812             }
813         }
814
815         /// <summary>
816         ///  Retrieves the size of the view.<br />
817         ///  The coordinates are relative to the view's parent.<br />
818         /// </summary>
819         /// <since_tizen> 3 </since_tizen>
820         public Size2D CurrentSize
821         {
822             get
823             {
824                 return GetCurrentSize();
825             }
826         }
827
828         /// <summary>
829         /// Retrieves and sets the view's opacity.<br />
830         /// </summary>
831         /// <since_tizen> 3 </since_tizen>
832         public float Opacity
833         {
834             get
835             {
836                 return (float)GetValue(OpacityProperty);
837             }
838             set
839             {
840                 SetValue(OpacityProperty, value);
841                 selectorData?.Opacity.UpdateIfNeeds(this, value);
842                 NotifyPropertyChanged();
843             }
844         }
845
846         /// <summary>
847         /// Sets the position of the view for X and Y.<br />
848         /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
849         /// If the position inheritance is disabled, sets the world position.<br />
850         /// </summary>
851         /// <remarks>
852         /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
853         /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
854         /// </remarks>
855         /// <since_tizen> 3 </since_tizen>
856         public Position2D Position2D
857         {
858             get
859             {
860                 Position2D temp = (Position2D)GetValue(Position2DProperty);
861                 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
862             }
863             set
864             {
865                 SetValue(Position2DProperty, value);
866                 NotifyPropertyChanged();
867             }
868         }
869
870         /// <summary>
871         /// Retrieves the screen postion of the view.<br />
872         /// </summary>
873         /// <since_tizen> 3 </since_tizen>
874         public Vector2 ScreenPosition
875         {
876             get
877             {
878                 Vector2 temp = new Vector2(0.0f, 0.0f);
879                 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
880                 return temp;
881             }
882         }
883
884         /// <summary>
885         /// Determines whether the pivot point should be used to determine the position of the view.
886         /// This is false by default.
887         /// </summary>
888         /// <remarks>If false, then the top-left of the view is used for the position.
889         /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
890         /// </remarks>
891         /// <since_tizen> 3 </since_tizen>
892         public bool PositionUsesPivotPoint
893         {
894             get
895             {
896                 return (bool)GetValue(PositionUsesPivotPointProperty);
897             }
898             set
899             {
900                 SetValue(PositionUsesPivotPointProperty, value);
901                 NotifyPropertyChanged();
902             }
903         }
904
905         /// <summary>
906         /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
907         /// </summary>
908         /// <since_tizen> 3 </since_tizen>
909         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
910             "Like: " +
911             "View view = new View(); " +
912             "view.PivotPoint = PivotPoint.Center; " +
913             "view.PositionUsesPivotPoint = true;" +
914             " Deprecated in API5: Will be removed in API8")]
915         [EditorBrowsable(EditorBrowsableState.Never)]
916         public bool PositionUsesAnchorPoint
917         {
918             get
919             {
920                 bool temp = false;
921                 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
922                 return temp;
923             }
924             set
925             {
926                 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
927                 NotifyPropertyChanged();
928             }
929         }
930
931         /// <summary>
932         /// Queries whether the view is connected to the stage.<br />
933         /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
934         /// </summary>
935         /// <since_tizen> 3 </since_tizen>
936         public bool IsOnWindow
937         {
938             get
939             {
940                 return OnWindow();
941             }
942         }
943
944         /// <summary>
945         /// Gets the depth in the hierarchy for the view.
946         /// </summary>
947         /// <since_tizen> 3 </since_tizen>
948         public int HierarchyDepth
949         {
950             get
951             {
952                 return GetHierarchyDepth();
953             }
954         }
955
956         /// <summary>
957         /// Sets the sibling order of the view so the depth position can be defined within the same parent.
958         /// </summary>
959         /// <remarks>
960         /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
961         /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
962         /// The values set by this property will likely change.
963         /// </remarks>
964         /// <since_tizen> 3 </since_tizen>
965         public int SiblingOrder
966         {
967             get
968             {
969                 return (int)GetValue(SiblingOrderProperty);
970             }
971             set
972             {
973                 SetValue(SiblingOrderProperty, value);
974
975                 LayoutGroup layout = Layout as LayoutGroup;
976                 layout?.ChangeLayoutSiblingOrder(value);
977
978                 NotifyPropertyChanged();
979             }
980         }
981
982         /// <summary>
983         /// Returns the natural size of the view.
984         /// </summary>
985         /// <remarks>
986         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
987         /// </remarks>
988         /// <since_tizen> 5 </since_tizen>
989         public Vector3 NaturalSize
990         {
991             get
992             {
993                 Vector3 ret = new Vector3(Interop.Actor.ActorGetNaturalSize(swigCPtr), true);
994                 if (NDalicPINVOKE.SWIGPendingException.Pending)
995                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
996                 return ret;
997             }
998         }
999
1000         /// <summary>
1001         /// Returns the natural size (Size2D) of the view.
1002         /// </summary>
1003         /// <remarks>
1004         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
1005         /// </remarks>
1006         /// <since_tizen> 4 </since_tizen>
1007         public Size2D NaturalSize2D
1008         {
1009             get
1010             {
1011                 Vector3 temp = new Vector3(Interop.Actor.ActorGetNaturalSize(swigCPtr), true);
1012                 if (NDalicPINVOKE.SWIGPendingException.Pending)
1013                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1014
1015                 return new Size2D((int)temp.Width, (int)temp.Height);
1016             }
1017         }
1018
1019         /// <summary>
1020         /// Gets or sets the origin of a view within its parent's area.<br />
1021         /// 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 />
1022         /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
1023         /// A view's position is the distance between this origin and the view's anchor-point.<br />
1024         /// </summary>
1025         /// <pre>The view has been initialized.</pre>
1026         /// <since_tizen> 3 </since_tizen>
1027         public Position ParentOrigin
1028         {
1029             get
1030             {
1031                 Position tmp = (Position)GetValue(ParentOriginProperty);
1032                 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
1033             }
1034             set
1035             {
1036                 SetValue(ParentOriginProperty, value);
1037                 NotifyPropertyChanged();
1038             }
1039         }
1040
1041         /// <summary>
1042         /// Gets or sets the anchor-point of a view.<br />
1043         /// 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 />
1044         /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
1045         /// A view position is the distance between its parent-origin and this anchor-point.<br />
1046         /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
1047         /// <pre>The view has been initialized.</pre>
1048         /// </summary>
1049         /// <remarks>
1050         /// The property cascade chaining set is possible. For example, this (view.PivotPoint.X = 0.1f;) is possible.
1051         /// </remarks>
1052         /// <since_tizen> 3 </since_tizen>
1053         public Position PivotPoint
1054         {
1055             get
1056             {
1057                 Position tmp = (Position)GetValue(PivotPointProperty);
1058                 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
1059             }
1060             set
1061             {
1062                 SetValue(PivotPointProperty, value);
1063                 NotifyPropertyChanged();
1064             }
1065         }
1066
1067         /// <summary>
1068         /// Gets or sets the size width of the view.
1069         /// </summary>
1070         /// <remarks>
1071         /// <para>
1072         /// Animatable - This property can be animated using <c>Animation</c> class.
1073         /// </para>
1074         /// </remarks>
1075         /// <since_tizen> 3 </since_tizen>
1076         public float SizeWidth
1077         {
1078             get
1079             {
1080                 return (float)GetValue(SizeWidthProperty);
1081             }
1082             set
1083             {
1084                 SetValue(SizeWidthProperty, value);
1085                 NotifyPropertyChanged();
1086             }
1087         }
1088
1089         /// <summary>
1090         /// Gets or sets the size height of the view.
1091         /// </summary>
1092         /// <remarks>
1093         /// <para>
1094         /// Animatable - This property can be animated using <c>Animation</c> class.
1095         /// </para>
1096         /// </remarks>
1097         /// <since_tizen> 3 </since_tizen>
1098         public float SizeHeight
1099         {
1100             get
1101             {
1102                 return (float)GetValue(SizeHeightProperty);
1103             }
1104             set
1105             {
1106                 SetValue(SizeHeightProperty, value);
1107                 NotifyPropertyChanged();
1108             }
1109         }
1110
1111         /// <summary>
1112         /// Gets or sets the position of the view.<br />
1113         /// By default, sets the position vector between the parent origin and pivot point (default).<br />
1114         /// If the position inheritance is disabled, sets the world position.<br />
1115         /// </summary>
1116         /// <remarks>
1117         /// <para>
1118         /// Animatable - This property can be animated using <c>Animation</c> class.
1119         /// </para>
1120         /// The property cascade chaining set is possible. For example, this (view.Position.X = 1.0f;) is possible.
1121         /// </remarks>
1122         /// <since_tizen> 3 </since_tizen>
1123         public Position Position
1124         {
1125             get
1126             {
1127                 Position tmp = (Position)GetValue(PositionProperty);
1128                 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
1129             }
1130             set
1131             {
1132                 SetValue(PositionProperty, value);
1133                 NotifyPropertyChanged();
1134             }
1135         }
1136
1137         /// <summary>
1138         /// Gets or sets the position X of the view.
1139         /// </summary>
1140         /// <remarks>
1141         /// <para>
1142         /// Animatable - This property can be animated using <c>Animation</c> class.
1143         /// </para>
1144         /// </remarks>
1145         /// <since_tizen> 3 </since_tizen>
1146         public float PositionX
1147         {
1148             get
1149             {
1150                 return (float)GetValue(PositionXProperty);
1151             }
1152             set
1153             {
1154                 SetValue(PositionXProperty, value);
1155                 NotifyPropertyChanged();
1156             }
1157         }
1158
1159         /// <summary>
1160         /// Gets or sets the position Y of the view.
1161         /// </summary>
1162         /// <remarks>
1163         /// <para>
1164         /// Animatable - This property can be animated using <c>Animation</c> class.
1165         /// </para>
1166         /// </remarks>
1167         /// <since_tizen> 3 </since_tizen>
1168         public float PositionY
1169         {
1170             get
1171             {
1172                 return (float)GetValue(PositionYProperty);
1173             }
1174             set
1175             {
1176                 SetValue(PositionYProperty, value);
1177                 NotifyPropertyChanged();
1178             }
1179         }
1180
1181         /// <summary>
1182         /// Gets or sets the position Z of the view.
1183         /// </summary>
1184         /// <remarks>
1185         /// <para>
1186         /// Animatable - This property can be animated using <c>Animation</c> class.
1187         /// </para>
1188         /// </remarks>
1189         /// <since_tizen> 3 </since_tizen>
1190         public float PositionZ
1191         {
1192             get
1193             {
1194                 return (float)GetValue(PositionZProperty);
1195             }
1196             set
1197             {
1198                 SetValue(PositionZProperty, value);
1199                 NotifyPropertyChanged();
1200             }
1201         }
1202
1203         /// <summary>
1204         /// Gets or sets the world position of the view.
1205         /// </summary>
1206         /// <since_tizen> 3 </since_tizen>
1207         public Vector3 WorldPosition
1208         {
1209             get
1210             {
1211                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1212                 GetProperty(View.Property.WORLD_POSITION).Get(temp);
1213                 return temp;
1214             }
1215         }
1216
1217         /// <summary>
1218         /// Gets or sets the orientation of the view.<br />
1219         /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
1220         /// </summary>
1221         /// <remarks>
1222         /// <para>
1223         /// This is an asynchronous method.
1224         /// </para>
1225         /// <para>
1226         /// Animatable - This property can be animated using <c>Animation</c> class.
1227         /// </para>
1228         /// </remarks>
1229         /// <since_tizen> 3 </since_tizen>
1230         public Rotation Orientation
1231         {
1232             get
1233             {
1234                 return (Rotation)GetValue(OrientationProperty);
1235             }
1236             set
1237             {
1238                 SetValue(OrientationProperty, value);
1239                 NotifyPropertyChanged();
1240             }
1241         }
1242
1243         /// <summary>
1244         /// Gets or sets the world orientation of the view.<br />
1245         /// </summary>
1246         /// <since_tizen> 3 </since_tizen>
1247         public Rotation WorldOrientation
1248         {
1249             get
1250             {
1251                 Rotation temp = new Rotation();
1252                 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
1253                 return temp;
1254             }
1255         }
1256
1257         /// <summary>
1258         /// Gets or sets the scale factor applied to the view.<br />
1259         /// </summary>
1260         /// <remarks>
1261         /// <para>
1262         /// Animatable - This property can be animated using <c>Animation</c> class.
1263         /// </para>
1264         /// The property cascade chaining set is possible. For example, this (view.Scale.X = 0.1f;) is possible.
1265         /// </remarks>
1266         /// <since_tizen> 3 </since_tizen>
1267         public Vector3 Scale
1268         {
1269             get
1270             {
1271                 Vector3 temp = (Vector3)GetValue(ScaleProperty);
1272                 return new Vector3(OnScaleChanged, temp.X, temp.Y, temp.Z);
1273             }
1274             set
1275             {
1276                 SetValue(ScaleProperty, value);
1277                 NotifyPropertyChanged();
1278             }
1279         }
1280
1281         /// <summary>
1282         /// Gets or sets the scale X factor applied to the view.
1283         /// </summary>
1284         /// <remarks>
1285         /// <para>
1286         /// Animatable - This property can be animated using <c>Animation</c> class.
1287         /// </para>
1288         /// </remarks>
1289         /// <since_tizen> 3 </since_tizen>
1290         public float ScaleX
1291         {
1292             get
1293             {
1294                 return (float)GetValue(ScaleXProperty);
1295             }
1296             set
1297             {
1298                 SetValue(ScaleXProperty, value);
1299                 NotifyPropertyChanged();
1300             }
1301         }
1302
1303         /// <summary>
1304         /// Gets or sets the scale Y factor applied to the view.
1305         /// </summary>
1306         /// <remarks>
1307         /// <para>
1308         /// Animatable - This property can be animated using <c>Animation</c> class.
1309         /// </para>
1310         /// </remarks>
1311         /// <since_tizen> 3 </since_tizen>
1312         public float ScaleY
1313         {
1314             get
1315             {
1316                 return (float)GetValue(ScaleYProperty);
1317             }
1318             set
1319             {
1320                 SetValue(ScaleYProperty, value);
1321                 NotifyPropertyChanged();
1322             }
1323         }
1324
1325         /// <summary>
1326         /// Gets or sets the scale Z factor applied to the view.
1327         /// </summary>
1328         /// <remarks>
1329         /// <para>
1330         /// Animatable - This property can be animated using <c>Animation</c> class.
1331         /// </para>
1332         /// </remarks>
1333         /// <since_tizen> 3 </since_tizen>
1334         public float ScaleZ
1335         {
1336             get
1337             {
1338                 return (float)GetValue(ScaleZProperty);
1339             }
1340             set
1341             {
1342                 SetValue(ScaleZProperty, value);
1343                 NotifyPropertyChanged();
1344             }
1345         }
1346
1347         /// <summary>
1348         /// Gets the world scale of the view.
1349         /// </summary>
1350         /// <since_tizen> 3 </since_tizen>
1351         public Vector3 WorldScale
1352         {
1353             get
1354             {
1355                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1356                 GetProperty(View.Property.WORLD_SCALE).Get(temp);
1357                 return temp;
1358             }
1359         }
1360
1361         /// <summary>
1362         /// Retrieves the visibility flag of the view.
1363         /// </summary>
1364         /// <remarks>
1365         /// <para>
1366         /// If the view is not visible, then the view and its children will not be rendered.
1367         /// 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.
1368         /// </para>
1369         /// <para>
1370         /// Animatable - This property can be animated using <c>Animation</c> class.
1371         /// </para>
1372         /// </remarks>
1373         /// <since_tizen> 3 </since_tizen>
1374         public bool Visibility
1375         {
1376             get
1377             {
1378                 bool temp = false;
1379                 GetProperty(View.Property.VISIBLE).Get(out temp);
1380                 return temp;
1381             }
1382         }
1383
1384         /// <summary>
1385         /// Gets the view's world color.
1386         /// </summary>
1387         /// <since_tizen> 3 </since_tizen>
1388         public Vector4 WorldColor
1389         {
1390             get
1391             {
1392                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1393                 GetProperty(View.Property.WORLD_COLOR).Get(temp);
1394                 return temp;
1395             }
1396         }
1397
1398         /// <summary>
1399         /// Gets or sets the view's name.
1400         /// </summary>
1401         /// <since_tizen> 3 </since_tizen>
1402         public string Name
1403         {
1404             get
1405             {
1406                 return (string)GetValue(NameProperty);
1407             }
1408             set
1409             {
1410                 SetValue(NameProperty, value);
1411                 NotifyPropertyChanged();
1412             }
1413         }
1414
1415         /// <summary>
1416         /// Get the number of children held by the view.
1417         /// </summary>
1418         /// <since_tizen> 3 </since_tizen>
1419         public new uint ChildCount
1420         {
1421             get
1422             {
1423                 return GetChildCount();
1424             }
1425         }
1426
1427         /// <summary>
1428         /// Gets the view's ID.
1429         /// Readonly
1430         /// </summary>
1431         /// <since_tizen> 3 </since_tizen>
1432         public uint ID
1433         {
1434             get
1435             {
1436                 return GetId();
1437             }
1438         }
1439
1440         /// <summary>
1441         /// Gets or sets the status of whether the view should emit touch or hover signals.
1442         /// </summary>
1443         /// <since_tizen> 3 </since_tizen>
1444         public bool Sensitive
1445         {
1446             get
1447             {
1448                 return (bool)GetValue(SensitiveProperty);
1449             }
1450             set
1451             {
1452                 SetValue(SensitiveProperty, value);
1453                 NotifyPropertyChanged();
1454             }
1455         }
1456
1457         /// <summary>
1458         /// 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.
1459         /// </summary>
1460         /// <since_tizen> 3 </since_tizen>
1461         public bool LeaveRequired
1462         {
1463             get
1464             {
1465                 return (bool)GetValue(LeaveRequiredProperty);
1466             }
1467             set
1468             {
1469                 SetValue(LeaveRequiredProperty, value);
1470                 NotifyPropertyChanged();
1471             }
1472         }
1473
1474         /// <summary>
1475         /// Gets or sets the status of whether a child view inherits it's parent's orientation.
1476         /// </summary>
1477         /// <since_tizen> 3 </since_tizen>
1478         public bool InheritOrientation
1479         {
1480             get
1481             {
1482                 return (bool)GetValue(InheritOrientationProperty);
1483             }
1484             set
1485             {
1486                 SetValue(InheritOrientationProperty, value);
1487                 NotifyPropertyChanged();
1488             }
1489         }
1490
1491         /// <summary>
1492         /// Gets or sets the status of whether a child view inherits it's parent's scale.
1493         /// </summary>
1494         /// <since_tizen> 3 </since_tizen>
1495         public bool InheritScale
1496         {
1497             get
1498             {
1499                 return (bool)GetValue(InheritScaleProperty);
1500             }
1501             set
1502             {
1503                 SetValue(InheritScaleProperty, value);
1504                 NotifyPropertyChanged();
1505             }
1506         }
1507
1508         /// <summary>
1509         /// Gets or sets the status of how the view and its children should be drawn.<br />
1510         /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
1511         /// 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 />
1512         /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
1513         /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
1514         /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
1515         /// </summary>
1516         /// <since_tizen> 3 </since_tizen>
1517         public DrawModeType DrawMode
1518         {
1519             get
1520             {
1521                 return (DrawModeType)GetValue(DrawModeProperty);
1522             }
1523             set
1524             {
1525                 SetValue(DrawModeProperty, value);
1526                 NotifyPropertyChanged();
1527             }
1528         }
1529
1530         /// <summary>
1531         /// Gets or sets the relative to parent size factor of the view.<br />
1532         /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
1533         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
1534         /// </summary>
1535         /// <remarks>
1536         /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1537         /// </remarks>
1538         /// <since_tizen> 3 </since_tizen>
1539         public Vector3 SizeModeFactor
1540         {
1541             get
1542             {
1543                 Vector3 temp = (Vector3)GetValue(SizeModeFactorProperty);
1544                 return new Vector3(OnSizeModeFactorChanged, temp.X, temp.Y, temp.Z);
1545             }
1546             set
1547             {
1548                 SetValue(SizeModeFactorProperty, value);
1549                 NotifyPropertyChanged();
1550             }
1551         }
1552
1553         /// <summary>
1554         /// Gets or sets the width resize policy to be used.
1555         /// </summary>
1556         /// <since_tizen> 3 </since_tizen>
1557         public ResizePolicyType WidthResizePolicy
1558         {
1559             get
1560             {
1561                 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
1562             }
1563             set
1564             {
1565                 SetValue(WidthResizePolicyProperty, value);
1566                 NotifyPropertyChanged();
1567             }
1568         }
1569
1570         /// <summary>
1571         /// Gets or sets the height resize policy to be used.
1572         /// </summary>
1573         /// <since_tizen> 3 </since_tizen>
1574         public ResizePolicyType HeightResizePolicy
1575         {
1576             get
1577             {
1578                 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
1579             }
1580             set
1581             {
1582                 SetValue(HeightResizePolicyProperty, value);
1583                 NotifyPropertyChanged();
1584             }
1585         }
1586
1587         /// <summary>
1588         /// Gets or sets the policy to use when setting size with size negotiation.<br />
1589         /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
1590         /// </summary>
1591         /// <since_tizen> 3 </since_tizen>
1592         public SizeScalePolicyType SizeScalePolicy
1593         {
1594             get
1595             {
1596                 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
1597             }
1598             set
1599             {
1600                 SetValue(SizeScalePolicyProperty, value);
1601                 NotifyPropertyChanged();
1602             }
1603         }
1604
1605         /// <summary>
1606         ///  Gets or sets the status of whether the width size is dependent on the height size.
1607         /// </summary>
1608         /// <since_tizen> 3 </since_tizen>
1609         public bool WidthForHeight
1610         {
1611             get
1612             {
1613                 return (bool)GetValue(WidthForHeightProperty);
1614             }
1615             set
1616             {
1617                 SetValue(WidthForHeightProperty, value);
1618                 NotifyPropertyChanged();
1619             }
1620         }
1621
1622         /// <summary>
1623         /// Gets or sets the status of whether the height size is dependent on the width size.
1624         /// </summary>
1625         /// <since_tizen> 3 </since_tizen>
1626         public bool HeightForWidth
1627         {
1628             get
1629             {
1630                 return (bool)GetValue(HeightForWidthProperty);
1631             }
1632             set
1633             {
1634                 SetValue(HeightForWidthProperty, value);
1635                 NotifyPropertyChanged();
1636             }
1637         }
1638
1639         /// <summary>
1640         /// Gets or sets the padding for use in layout.
1641         /// </summary>
1642         /// <remarks>
1643         /// The property cascade chaining set is possible. For example, this (view.Padding.X = 0.1f;) is possible.
1644         /// </remarks>
1645         /// <since_tizen> 5 </since_tizen>
1646         public Extents Padding
1647         {
1648             get
1649             {
1650                 // If View has a Layout then padding in stored in the base Layout class
1651                 if (Layout != null)
1652                 {
1653                     return Layout.Padding;
1654                 }
1655                 else
1656                 {
1657                     Extents temp = (Extents)GetValue(PaddingProperty);
1658                     return new Extents(OnPaddingChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1659                 }
1660                 // Two return points to prevent creating a zeroed Extent native object before assignment
1661             }
1662             set
1663             {
1664                 Extents padding = value;
1665                 if (Layout != null)
1666                 {
1667                     // Layout set so store Padding in LayoutItem instead of in View.
1668                     // If View stores the Padding value then Legacy Size Negotiation will overwrite
1669                     // the position and sizes measure in the Layouting.
1670                     Layout.Padding = value;
1671                     // If Layout is a LayoutItem then it could be a View that handles it's own padding.
1672                     // Let the View keeps it's padding.  Still store Padding in Layout to reduce code paths.
1673                     if (typeof(LayoutGroup).IsAssignableFrom(Layout.GetType())) // If a Layout container of some kind.
1674                     {
1675                         padding = new Extents(0, 0, 0, 0); // Reset value stored in View.
1676                     }
1677                 }
1678
1679                 SetValue(PaddingProperty, padding);
1680                 NotifyPropertyChanged();
1681             }
1682         }
1683
1684         /// <summary>
1685         /// Gets or sets the minimum size the view can be assigned in size negotiation.
1686         /// </summary>
1687         /// <remarks>
1688         /// The property cascade chaining set is possible. For example, this (view.MinimumSize.Width = 1;) is possible.
1689         /// </remarks>
1690         /// <since_tizen> 3 </since_tizen>
1691         public Size2D MinimumSize
1692         {
1693             get
1694             {
1695                 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
1696                 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
1697             }
1698             set
1699             {
1700                 if (_layout != null)
1701                 {
1702                     // Note: it only works if minimum size is >= than natural size.
1703                     // To force the size it should be done through the width&height spec or Size2D.
1704                     _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
1705                     _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
1706                     _layout.RequestLayout();
1707                 }
1708                 SetValue(MinimumSizeProperty, value);
1709                 NotifyPropertyChanged();
1710             }
1711         }
1712
1713         /// <summary>
1714         /// Gets or sets the maximum size the view can be assigned in size negotiation.
1715         /// </summary>
1716         /// <remarks>
1717         /// The property cascade chaining set is possible. For example, this (view.MaximumSize.Width = 1;) is possible.
1718         /// </remarks>
1719         /// <since_tizen> 3 </since_tizen>
1720         public Size2D MaximumSize
1721         {
1722             get
1723             {
1724                 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
1725                 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
1726             }
1727             set
1728             {
1729                 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
1730                 // MATCH_PARENT spec + parent container size can be used to limit
1731                 if (_layout != null)
1732                 {
1733                     _layout.RequestLayout();
1734                 }
1735                 SetValue(MaximumSizeProperty, value);
1736                 NotifyPropertyChanged();
1737             }
1738         }
1739
1740         /// <summary>
1741         /// Gets or sets whether a child view inherits it's parent's position.<br />
1742         /// Default is to inherit.<br />
1743         /// 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 />
1744         /// </summary>
1745         /// <since_tizen> 3 </since_tizen>
1746         public bool InheritPosition
1747         {
1748             get
1749             {
1750                 return (bool)GetValue(InheritPositionProperty);
1751             }
1752             set
1753             {
1754                 SetValue(InheritPositionProperty, value);
1755                 NotifyPropertyChanged();
1756             }
1757         }
1758
1759         /// <summary>
1760         /// Gets or sets the clipping behavior (mode) of it's children.
1761         /// </summary>
1762         /// <since_tizen> 3 </since_tizen>
1763         public ClippingModeType ClippingMode
1764         {
1765             get
1766             {
1767                 return (ClippingModeType)GetValue(ClippingModeProperty);
1768             }
1769             set
1770             {
1771                 SetValue(ClippingModeProperty, value);
1772                 NotifyPropertyChanged();
1773             }
1774         }
1775
1776         /// <summary>
1777         /// Gets the number of renderers held by the view.
1778         /// </summary>
1779         /// <since_tizen> 3 </since_tizen>
1780         public uint RendererCount
1781         {
1782             get
1783             {
1784                 return GetRendererCount();
1785             }
1786         }
1787
1788         /// <summary>
1789         /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
1790         /// </summary>
1791         /// <remarks>
1792         /// The property cascade chaining set is possible. For example, this (view.AnchorPoint.X = 0.1f;) is possible.
1793         /// </remarks>
1794         /// <since_tizen> 3 </since_tizen>
1795         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
1796             "Like: " +
1797             "View view = new View(); " +
1798             "view.PivotPoint = PivotPoint.Center; " +
1799             "view.PositionUsesPivotPoint = true;")]
1800         [EditorBrowsable(EditorBrowsableState.Never)]
1801         public Position AnchorPoint
1802         {
1803             get
1804             {
1805                 Position temp = new Position(0.0f, 0.0f, 0.0f);
1806                 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
1807                 return new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
1808             }
1809             set
1810             {
1811                 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
1812                 NotifyPropertyChanged();
1813             }
1814         }
1815
1816         /// <summary>
1817         /// Sets the size of a view for the width, the height and the depth.<br />
1818         /// Geometry can be scaled to fit within this area.<br />
1819         /// This does not interfere with the view's scale factor.<br />
1820         /// The views default depth is the minimum of width and height.<br />
1821         /// </summary>
1822         /// <remarks>
1823         /// <para>
1824         /// Animatable - This property can be animated using <c>Animation</c> class.
1825         /// </para>
1826         /// The property cascade chaining set is possible. For example, this (view.Size.Width = 1.0f;) is possible.
1827         /// </remarks>
1828         /// <since_tizen> 5 </since_tizen>
1829         public Size Size
1830         {
1831             get
1832             {
1833                 Size tmp = (Size)GetValue(SizeProperty);
1834                 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
1835             }
1836             set
1837             {
1838                 SetValue(SizeProperty, value);
1839                 NotifyPropertyChanged();
1840             }
1841         }
1842
1843         /// <summary>
1844         /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
1845         /// </summary>
1846         /// <since_tizen> 3 </since_tizen>
1847         [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
1848             "Like: " +
1849             "Container parent =  view.GetParent(); " +
1850             "View view = parent as View;")]
1851         [EditorBrowsable(EditorBrowsableState.Never)]
1852         public new View Parent
1853         {
1854             get
1855             {
1856                 View ret;
1857                 IntPtr cPtr = Interop.Actor.ActorGetParent(swigCPtr);
1858                 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1859                 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
1860
1861                 if (basehandle is Layer layer)
1862                 {
1863                     ret = new View(Layer.getCPtr(layer).Handle, false);
1864                     NUILog.Error("This Parent property is deprecated, shoud do not be used");
1865                 }
1866                 else
1867                 {
1868                     ret = basehandle as View;
1869                 }
1870
1871                 Interop.BaseHandle.delete_BaseHandle(CPtr);
1872                 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1873
1874                 if (NDalicPINVOKE.SWIGPendingException.Pending)
1875                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1876                 return ret;
1877             }
1878         }
1879
1880         /// <summary>
1881         /// Gets/Sets whether inherit parent's the layout Direction.
1882         /// </summary>
1883         /// <since_tizen> 4 </since_tizen>
1884         public bool InheritLayoutDirection
1885         {
1886             get
1887             {
1888                 return (bool)GetValue(InheritLayoutDirectionProperty);
1889             }
1890             set
1891             {
1892                 SetValue(InheritLayoutDirectionProperty, value);
1893                 NotifyPropertyChanged();
1894             }
1895         }
1896
1897         /// <summary>
1898         /// Gets/Sets the layout Direction.
1899         /// </summary>
1900         /// <since_tizen> 4 </since_tizen>
1901         public ViewLayoutDirectionType LayoutDirection
1902         {
1903             get
1904             {
1905                 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
1906             }
1907             set
1908             {
1909                 SetValue(LayoutDirectionProperty, value);
1910                 NotifyPropertyChanged();
1911                 _layout?.RequestLayout();
1912             }
1913         }
1914
1915         /// <summary>
1916         /// Gets or sets the Margin for use in layout.
1917         /// </summary>
1918         /// <remarks>
1919         /// Margin property is supported by Layout algorithms and containers.
1920         /// Please Set Layout if you want to use Margin property.
1921         /// The property cascade chaining set is possible. For example, this (view.Margin.X = 0.1f;) is possible.
1922         /// </remarks>
1923         /// <since_tizen> 4 </since_tizen>
1924         public Extents Margin
1925         {
1926             get
1927             {
1928                 // If View has a Layout then margin is stored in Layout.
1929                 if (Layout != null)
1930                 {
1931                     return Layout.Margin;
1932                 }
1933                 else
1934                 {
1935                     // If Layout not set then return margin stored in View.
1936                     Extents temp = (Extents)GetValue(MarginProperty);
1937                     return new Extents(OnMarginChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1938                 }
1939                 // Two return points to prevent creating a zeroed Extent native object before assignment
1940             }
1941             set
1942             {
1943                 if (Layout != null)
1944                 {
1945                     // Layout set so store Margin in LayoutItem instead of View.
1946                     // If View stores the Margin too then the Legacy Size Negotiation will
1947                     // overwrite the position and size values measured in the Layouting.
1948                     Layout.Margin = value;
1949                     SetValue(MarginProperty, new Extents(0, 0, 0, 0));
1950                     _layout?.RequestLayout();
1951                 }
1952                 else
1953                 {
1954                     SetValue(MarginProperty, value);
1955                 }
1956                 NotifyPropertyChanged();
1957                 _layout?.RequestLayout();
1958             }
1959         }
1960
1961         ///<summary>
1962         /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1963         ///</summary>
1964         /// <since_tizen> 6 </since_tizen>
1965         public int WidthSpecification
1966         {
1967             get
1968             {
1969                 return _widthPolicy;
1970             }
1971             set
1972             {
1973                 _widthPolicy = value;
1974                 if (_oldWidthPolicy != _widthPolicy)
1975                 {
1976                     if (_widthPolicy >= 0)
1977                     {
1978                         _measureSpecificationWidth = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
1979
1980                         if (_heightPolicy >= 0) // Policy an exact value
1981                         {
1982                             // Create Size2D only both _widthPolicy and _heightPolicy are set.
1983                             Size2D = new Size2D(_widthPolicy, _heightPolicy);
1984                         }
1985                     }
1986                     _layout?.RequestLayout();
1987                     _oldWidthPolicy = _widthPolicy;
1988                 }
1989             }
1990         }
1991
1992         ///<summary>
1993         /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
1994         ///</summary>
1995         /// <since_tizen> 6 </since_tizen>
1996         public int HeightSpecification
1997         {
1998             get
1999             {
2000                 return _heightPolicy;
2001             }
2002             set
2003             {
2004                 _heightPolicy = value;
2005                 if (_oldHeightPolicy != _heightPolicy)
2006                 {
2007                     if (_heightPolicy >= 0)
2008                     {
2009                         _measureSpecificationHeight = new MeasureSpecification(new LayoutLength(value), MeasureSpecification.ModeType.Exactly);
2010
2011                         if (_widthPolicy >= 0) // Policy an exact value
2012                         {
2013                             // Create Size2D only both _widthPolicy and _heightPolicy are set.
2014                             Size2D = new Size2D(_widthPolicy, _heightPolicy);
2015                         }
2016
2017                     }
2018                     _layout?.RequestLayout();
2019                     _oldHeightPolicy = _heightPolicy;
2020                 }
2021             }
2022         }
2023
2024         ///<summary>
2025         /// Gets the List of transitions for this View.
2026         ///</summary>
2027         /// <since_tizen> 6 </since_tizen>
2028         public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
2029         {
2030             get
2031             {
2032                 if (_layoutTransitions == null)
2033                 {
2034                     _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
2035                 }
2036                 return _layoutTransitions;
2037             }
2038         }
2039
2040         ///<summary>
2041         /// Set a layout transitions for this View.
2042         ///</summary>
2043         /// <remarks>
2044         /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
2045         /// </remarks>
2046         /// <since_tizen> 6 </since_tizen>
2047         public LayoutTransition LayoutTransition
2048         {
2049             set
2050             {
2051                 if (_layoutTransitions == null)
2052                 {
2053                     _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
2054                 }
2055                 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions, value.Condition, value, true);
2056
2057                 AttachTransitionsToChildren(value);
2058             }
2059         }
2060
2061         /// <summary>
2062         /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
2063         /// </summary>
2064         /// <remarks>
2065         /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
2066         /// </remarks>
2067         /// <since_tizen> 4 </since_tizen>
2068         [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
2069         [EditorBrowsable(EditorBrowsableState.Never)]
2070         public Extents PaddingEX
2071         {
2072             get
2073             {
2074                 Extents temp = new Extents(0, 0, 0, 0);
2075                 GetProperty(View.Property.PADDING).Get(temp);
2076                 return new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
2077             }
2078             set
2079             {
2080                 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
2081                 NotifyPropertyChanged();
2082                 _layout?.RequestLayout();
2083             }
2084         }
2085
2086         /// <since_tizen> 6 </since_tizen>
2087         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2088         [EditorBrowsable(EditorBrowsableState.Never)]
2089         public Style XamlStyle
2090         {
2091             get
2092             {
2093                 return (Style)GetValue(XamlStyleProperty);
2094             }
2095             set
2096             {
2097                 SetValue(XamlStyleProperty, value);
2098             }
2099         }
2100
2101         /// <summary>
2102         /// The Color of View. This is an RGBA value.
2103         /// </summary>
2104         /// <remarks>
2105         /// <para>
2106         /// Animatable - This property can be animated using <c>Animation</c> class.
2107         /// </para>
2108         /// The property cascade chaining set is possible. For example, this (view.Color.X = 0.1f;) is possible.
2109         /// </remarks>
2110         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2111         [EditorBrowsable(EditorBrowsableState.Never)]
2112         public Color Color
2113         {
2114             get
2115             {
2116                 Color temp = (Color)GetValue(ColorProperty);
2117                 return new Color(OnColorChanged, temp.R, temp.G, temp.B, temp.A);
2118             }
2119             set
2120             {
2121                 SetValue(ColorProperty, value);
2122                 selectorData?.Color.UpdateIfNeeds(this, value);
2123                 NotifyPropertyChanged();
2124             }
2125         }
2126
2127         /// <summary>
2128         /// Set the layout on this View. Replaces any existing Layout.
2129         /// </summary>
2130         /// <since_tizen> 6 </since_tizen>
2131         public LayoutItem Layout
2132         {
2133             get
2134             {
2135                 return _layout;
2136             }
2137             set
2138             {
2139                 // Do nothing if layout provided is already set on this View.
2140                 if (value == _layout)
2141                 {
2142                     return;
2143                 }
2144
2145                 layoutingDisabled = false;
2146                 layoutSet = true;
2147
2148                 // If new layout being set already has a owner then that owner receives a replacement default layout.
2149                 // First check if the layout to be set already has a owner.
2150                 if (value?.Owner != null)
2151                 {
2152                     // Previous owner of the layout gets a default layout as a replacement.
2153                     value.Owner.Layout = new AbsoluteLayout();
2154
2155                     // Copy Margin and Padding to replacement LayoutGroup.
2156                     if (value.Owner.Layout != null)
2157                     {
2158                         value.Owner.Layout.Margin = value.Margin;
2159                         value.Owner.Layout.Padding = value.Padding;
2160                     }
2161                 }
2162
2163                 // Copy Margin and Padding to new layout being set or restore padding and margin back to
2164                 // View if no replacement. Previously margin and padding values would have been moved from
2165                 // the View to the layout.
2166                 if (_layout != null) // Existing layout
2167                 {
2168                     if (value != null)
2169                     {
2170                         // Existing layout being replaced so copy over margin and padding values.
2171                         value.Margin = _layout.Margin;
2172                         value.Padding = _layout.Padding;
2173                     }
2174                     else
2175                     {
2176                         // Layout not being replaced so restore margin and padding to View.
2177                         SetValue(MarginProperty, _layout.Margin);
2178                         SetValue(PaddingProperty, _layout.Padding);
2179                         NotifyPropertyChanged();
2180                     }
2181                 }
2182                 else
2183                 {
2184                     // First Layout to be added to the View hence copy
2185
2186                     // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
2187                     if (value != null)
2188                     {
2189                         if (Margin.Top != 0 || Margin.Bottom != 0 || Margin.Start != 0 || Margin.End != 0)
2190                         {
2191                             // If View already has a margin set then store it in Layout instead.
2192                             value.Margin = Margin;
2193                             SetValue(MarginProperty, new Extents(0, 0, 0, 0));
2194                             NotifyPropertyChanged();
2195                         }
2196
2197                         if (Padding.Top != 0 || Padding.Bottom != 0 || Padding.Start != 0 || Padding.End != 0)
2198                         {
2199                             // If View already has a padding set then store it in Layout instead.
2200                             value.Padding = Padding;
2201                             SetValue(PaddingProperty, new Extents(0, 0, 0, 0));
2202                             NotifyPropertyChanged();
2203                         }
2204                     }
2205                 }
2206
2207                 // Remove existing layout from it's parent layout group.
2208                 _layout?.Unparent();
2209
2210                 value.SetPositionByLayout = excludeLayouting;
2211
2212                 // Set layout to this view
2213                 SetLayout(value);
2214             }
2215         }
2216
2217         /// <summary>
2218         /// The weight of the View, used to share available space in a layout with siblings.
2219         /// </summary>
2220         /// <since_tizen> 6 </since_tizen>
2221         public float Weight
2222         {
2223             get
2224             {
2225                 return _weight;
2226             }
2227             set
2228             {
2229                 _weight = value;
2230                 _layout?.RequestLayout();
2231             }
2232         }
2233
2234         /// <summary>
2235         ///  Whether to load the BackgroundImage synchronously.
2236         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
2237         ///  Note: For Normal Quad images only.
2238         /// </summary>
2239         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2240         [EditorBrowsable(EditorBrowsableState.Never)]
2241         public bool BackgroundImageSynchronosLoading
2242         {
2243             get
2244             {
2245                 return _backgroundImageSynchronosLoading;
2246             }
2247             set
2248             {
2249                 _backgroundImageSynchronosLoading = value;
2250
2251                 string bgUrl = null;
2252                 Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
2253
2254                 if (!string.IsNullOrEmpty(bgUrl))
2255                 {
2256                     PropertyMap bgMap = this.Background;
2257                     bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
2258                     Background = bgMap;
2259                 }
2260             }
2261         }
2262
2263         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2264         [EditorBrowsable(EditorBrowsableState.Never)]
2265         public Vector2 UpdateSizeHint
2266         {
2267             get
2268             {
2269                 return (Vector2)GetValue(UpdateSizeHintProperty);
2270             }
2271             set
2272             {
2273                 SetValue(UpdateSizeHintProperty, value);
2274                 NotifyPropertyChanged();
2275             }
2276         }
2277
2278         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
2279         [EditorBrowsable(EditorBrowsableState.Never)]
2280         public string[] TransitionNames
2281         {
2282             get
2283             {
2284                 return transitionNames;
2285             }
2286             set
2287             {
2288                 transitionNames = value;
2289                 LoadTransitions();
2290             }
2291         }
2292
2293         /// <summary>
2294         /// Enable/Disable ControlState propagation for children.
2295         /// It is false by default.
2296         /// If the View needs to share ControlState with descendants, please set it true.
2297         /// Please note that, changing the value will also changes children's EnableControlStatePropagation value recursively.
2298         /// </summary>
2299         [EditorBrowsable(EditorBrowsableState.Never)]
2300         public bool EnableControlStatePropagation
2301         {
2302             get => controlStatePropagation;
2303             set
2304             {
2305                 controlStatePropagation = value;
2306
2307                 foreach (View child in Children)
2308                 {
2309                     child.EnableControlStatePropagation = value;
2310                 }
2311             }
2312         }
2313
2314         /// <summary>
2315         /// If this property is set to true, the View can have a touch related ControlState (such as Pressed) when touch.
2316         /// By default, it is false in View, true in Control.
2317         /// Note that if the value is true, the View will be a touch receptor.
2318         /// </summary>
2319         [EditorBrowsable(EditorBrowsableState.Never)]
2320         public bool EnableControlState
2321         {
2322             get
2323             {
2324                 return (bool)GetValue(EnableControlStateProperty);
2325             }
2326             set
2327             {
2328                 SetValue(EnableControlStateProperty, value);
2329             }
2330         }
2331
2332         /// <summary>
2333         /// Whether the actor grab all touches even if touch leaves its boundary.
2334         /// </summary>
2335         /// <returns>true, if it grab all touch after start</returns>
2336         [EditorBrowsable(EditorBrowsableState.Never)]
2337         public bool GrabTouchAfterLeave
2338         {
2339             get
2340             {
2341                 bool temp = false;
2342                 GetProperty(View.Property.CaptureAllTouchAfterStart).Get(out temp);
2343                 return temp;
2344             }
2345             set
2346             {
2347                 SetProperty(View.Property.CaptureAllTouchAfterStart, new Tizen.NUI.PropertyValue(value));
2348                 NotifyPropertyChanged();
2349             }
2350         }
2351
2352         /// <summary>
2353         /// If the value is true, the View will change its style as the theme changes.
2354         /// It is false by default, but turned to true when setting StyleName (by setting property or using specified constructor).
2355         /// </summary>
2356         [EditorBrowsable(EditorBrowsableState.Never)]
2357         public bool ThemeChangeSensitive
2358         {
2359             get => (bool)GetValue(ThemeChangeSensitiveProperty);
2360             set => SetValue(ThemeChangeSensitiveProperty, value);
2361         }
2362
2363         /// <summary>
2364         /// Get Style, it is abstract function and must be override.
2365         /// </summary>
2366         /// <since_tizen> 6 </since_tizen>
2367         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2368         // TODO: It should be deprecated. please use CreateViewStyle instead.
2369         [EditorBrowsable(EditorBrowsableState.Never)]
2370         protected virtual ViewStyle GetViewStyle()
2371         {
2372             return CreateViewStyle();
2373         }
2374
2375         /// <summary>
2376         /// Create Style, it is abstract function and must be override.
2377         /// </summary>
2378         [EditorBrowsable(EditorBrowsableState.Never)]
2379         protected virtual ViewStyle CreateViewStyle()
2380         {
2381             return new ViewStyle();
2382         }
2383
2384         /// <summary>
2385         /// Called after the View's ControlStates changed.
2386         /// </summary>
2387         /// <param name="controlStateChangedInfo">The information including state changed variables.</param>
2388         [EditorBrowsable(EditorBrowsableState.Never)]
2389         protected virtual void OnControlStateChanged(ControlStateChangedEventArgs controlStateChangedInfo)
2390         {
2391         }
2392
2393         /// <summary>
2394         /// </summary>
2395         [EditorBrowsable(EditorBrowsableState.Never)]
2396         protected virtual void OnThemeChanged(object sender, ThemeChangedEventArgs e)
2397         {
2398             UpdateStyle();
2399         }
2400
2401         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2402         [EditorBrowsable(EditorBrowsableState.Never)]
2403         public virtual void ApplyStyle(ViewStyle viewStyle)
2404         {
2405             if (null == viewStyle || this.viewStyle == viewStyle) return;
2406
2407             this.viewStyle = viewStyle;
2408
2409             Dictionary<string, BindableProperty> bindablePropertyOfView;
2410             Type viewType = GetType();
2411
2412             Dictionary<string, BindableProperty> bindablePropertyOfStyle;
2413             Type styleType = viewStyle.GetType();
2414
2415             BindableProperty.GetBindablePropertysOfType(viewType, out bindablePropertyOfView);
2416             BindableProperty.GetBindablePropertysOfType(styleType, out bindablePropertyOfStyle);
2417
2418             if (null != bindablePropertyOfView && null != bindablePropertyOfStyle)
2419             {
2420                 foreach (KeyValuePair<string, BindableProperty> keyValuePair in bindablePropertyOfStyle)
2421                 {
2422                     BindableProperty viewProperty;
2423                     bindablePropertyOfView.TryGetValue(keyValuePair.Key, out viewProperty);
2424
2425                     if (null != viewProperty && viewProperty != StyleNameProperty)
2426                     {
2427                         object value = viewStyle.GetValue(keyValuePair.Value);
2428
2429                         if (null != value)
2430                         {
2431                             SetValue(viewProperty, value);
2432                         }
2433                     }
2434                 }
2435             }
2436         }
2437     }
2438 }