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