[NUI] Change property get/set not to use PropertyValue (patch set4)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / View.cs
1 /*
2  * Copyright(c) 2022 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
23 namespace Tizen.NUI.BaseComponents
24 {
25     /// <summary>
26     /// View is the base class for all views.
27     /// </summary>
28     /// <since_tizen> 3 </since_tizen>
29     public partial class View : Container, IResourcesProvider
30     {
31         private static HashSet<BindableProperty> positionPropertyGroup = new HashSet<BindableProperty>();
32         private static HashSet<BindableProperty> sizePropertyGroup = new HashSet<BindableProperty>();
33         private static HashSet<BindableProperty> scalePropertyGroup = new HashSet<BindableProperty>();
34         private static bool defaultGrabTouchAfterLeave = false;
35         private static bool defaultAllowOnlyOwnTouch = false;
36
37         internal BackgroundExtraData backgroundExtraData;
38
39         private bool layoutSet = false;
40         private LayoutItem layout; // Exclusive layout assigned to this View.
41
42         // List of transitions paired with the condition that uses the transition.
43         private Dictionary<TransitionCondition, TransitionList> layoutTransitions;
44         private int widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
45         private int heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
46         private float weight = 0.0f; // Weighting of child View in a Layout
47         private bool backgroundImageSynchronousLoading = false;
48         private bool excludeLayouting = false;
49         private LayoutTransition layoutTransition;
50         private TransitionOptions transitionOptions = null;
51         private ThemeData themeData;
52         private bool isThemeChanged = false;
53
54         // List of constraints
55         private Constraint widthConstraint = null;
56         private Constraint heightConstraint = null;
57
58         private Size2D internalMaximumSize = null;
59         private Size2D internalMinimumSize = null;
60         private Extents internalMargin = null;
61         private Extents internalPadding = null;
62         private Vector3 internalSizeModeFactor = null;
63         private Vector2 internalCellIndex = null;
64         private Color internalBackgroundColor = null;
65         private Color internalColor = null;
66         private Position internalPivotPoint = null;
67         private Position internalPosition = null;
68         private Position2D internalPosition2D = null;
69         private Vector3 internalScale = null;
70         private Size internalSize = null;
71         private Size2D internalSize2D = null;
72         private int layoutCount = 0;
73         private ControlState propagatableControlStates = ControlState.All;
74
75         // List of dispatch Event
76         private PanGestureDetector panGestureDetector = null;
77         private LongPressGestureDetector longGestureDetector = null;
78         private PinchGestureDetector pinchGestureDetector = null;
79         private TapGestureDetector tapGestureDetector = null;
80         private RotationGestureDetector rotationGestureDetector = null;
81         private int configGestureCount = 0;
82         private bool dispatchTouchEvents = true;
83         private bool dispatchGestureEvents = true;
84         private bool dispatchParentGestureEvents = true;
85
86 #if NUI_PROPERTY_CHANGE_3
87         private Vector3 internalCurrentParentOrigin = null;
88         private Vector3 internalCurrentAnchorPoint = null;
89         private Vector3 internalTargetSize = null;
90         private Size2D internalCurrentSize = null;
91         private Vector3 internalNaturalSize = null;
92         private Position internalCurrentPosition = null;
93         private Vector3 internalCurrentWorldPosition = null;
94         private Vector3 internalCurrentScale = null;
95         private Vector3 internalCurrentWorldScale = null;
96         private Vector4 internalCurrentColor = null;
97         private Vector4 internalCurrentWorldColor = null;
98 #endif
99
100 #if NUI_PROPERTY_CHANGE_DEBUG
101 internal static int LayoutSetGetter = 0;
102 internal static int SizeGetter = 0;
103 internal static int SizeSetter = 0;
104 internal static int Size2DGetter = 0;
105 internal static int Size2DSetter = 0;
106 internal static int MaximumSizeGetter = 0;
107 internal static int MaximumSizeSetter = 0;
108 internal static int MinimumSizeGetter = 0;
109 internal static int MinimumSizeSetter = 0;
110 internal static int PositionGetter = 0;
111 internal static int PositionSetter = 0;
112 internal static int Position2DGetter = 0;
113 internal static int Position2DSetter = 0;
114 internal static int SizeWidthGetter = 0;
115 internal static int SizeWidthSetter = 0;
116 internal static int SizeHeightGetter = 0;
117 internal static int SizeHeightSetter = 0;
118 internal static int PositionXGetter = 0;
119 internal static int PositionXSetter = 0;
120 internal static int PositionYGetter = 0;
121 internal static int PositionYSetter = 0;
122 internal static int PositionZGetter = 0;
123 internal static int PositionZSetter = 0;
124 internal static int StyleNameGetter = 0;
125 internal static int StyleNameSetter = 0;
126 internal static int KeyInputFocusGetter = 0;
127 internal static int KeyInputFocusSetter = 0;
128 internal static int ColorGetter = 0;
129 internal static int ColorSetter = 0;
130
131
132 internal static int ColorRedSetter = 0;
133 internal static int ColorGreenSetter = 0;
134 internal static int ColorBlueSetter = 0;
135 internal static int StateSetter = 0;
136 internal static int SubStateSetter = 0;
137 internal static int FlexSetter = 0;
138 internal static int AlignSelfSetter = 0;
139 internal static int FlexMarginSetter = 0;
140 internal static int CellIndexSetter = 0;
141 internal static int RowSpanSetter = 0;
142 internal static int ColumnSpanSetter = 0;
143 internal static int CellHorizontalAlignmentSetter = 0;
144 internal static int CellVerticalAlignmentSetter = 0;
145 internal static int OpacitySetter = 0;
146 internal static int PositionUsesPivotPointSetter = 0;
147 internal static int ParentOriginSetter = 0;
148 internal static int PivotPointSetter = 0;
149 internal static int OrientationSetter = 0;
150 internal static int ScaleSetter = 0;
151 internal static int ScaleXSetter = 0;
152 internal static int ScaleYSetter = 0;
153 internal static int ScaleZSetter = 0;
154 internal static int NameSetter = 0;
155 internal static int SensitiveSetter = 0;
156 internal static int IsEnabledSetter = 0;
157 internal static int DispatchKeyEventsSetter = 0;
158 internal static int LeaveRequiredSetter = 0;
159 internal static int InheritOrientationSetter = 0;
160 internal static int InheritScaleSetter = 0;
161 internal static int DrawModeSetter = 0;
162 internal static int SizeModeFactorSetter = 0;
163 internal static int WidthResizePolicySetter = 0;
164 internal static int HeightResizePolicySetter = 0;
165 internal static int SizeScalePolicySetter = 0;
166 internal static int WidthForHeightSetter = 0;
167 internal static int HeightForWidthSetter = 0;
168 internal static int InheritPositionSetter = 0;
169 internal static int ClippingModeSetter = 0;
170 internal static int InheritLayoutDirectionSetter = 0;
171 internal static int LayoutDirectionSetter = 0;
172 internal static int UpdateAreaHintSetter = 0;
173 internal static int AccessibilityNameSetter = 0;
174 internal static int AccessibilityDescriptionSetter = 0;
175 internal static int AccessibilityTranslationDomainSetter = 0;
176 internal static int AccessibilityRoleSetter = 0;
177 internal static int AccessibilityHighlightableSetter = 0;
178 internal static int AccessibilityHiddenSetter = 0;
179 internal static int AutomationIdSetter = 0;
180
181 internal static int ColorRedGetter = 0;
182 internal static int ColorGreenGetter = 0;
183 internal static int ColorBlueGetter = 0;
184 internal static int StateGetter = 0;
185 internal static int SubStateGetter = 0;
186 internal static int FlexGetter = 0;
187 internal static int AlignSelfGetter = 0;
188 internal static int FlexMarginGetter = 0;
189 internal static int CellIndexGetter = 0;
190 internal static int RowSpanGetter = 0;
191 internal static int ColumnSpanGetter = 0;
192 internal static int CellHorizontalAlignmentGetter = 0;
193 internal static int CellVerticalAlignmentGetter = 0;
194 internal static int OpacityGetter = 0;
195 internal static int PositionUsesPivotPointGetter = 0;
196 internal static int ParentOriginGetter = 0;
197 internal static int PivotPointGetter = 0;
198 internal static int OrientationGetter = 0;
199 internal static int ScaleGetter = 0;
200 internal static int ScaleXGetter = 0;
201 internal static int ScaleYGetter = 0;
202 internal static int ScaleZGetter = 0;
203 internal static int NameGetter = 0;
204 internal static int SensitiveGetter = 0;
205 internal static int IsEnabledGetter = 0;
206 internal static int DispatchKeyEventsGetter = 0;
207 internal static int LeaveRequiredGetter = 0;
208 internal static int InheritOrientationGetter = 0;
209 internal static int InheritScaleGetter = 0;
210 internal static int DrawModeGetter = 0;
211 internal static int SizeModeFactorGetter = 0;
212 internal static int WidthResizePolicyGetter = 0;
213 internal static int HeightResizePolicyGetter = 0;
214 internal static int SizeScalePolicyGetter = 0;
215 internal static int WidthForHeightGetter = 0;
216 internal static int HeightForWidthGetter = 0;
217 internal static int InheritPositionGetter = 0;
218 internal static int ClippingModeGetter = 0;
219 internal static int InheritLayoutDirectionGetter = 0;
220 internal static int LayoutDirectionGetter = 0;
221 internal static int UpdateAreaHintGetter = 0;
222 internal static int AccessibilityNameGetter = 0;
223 internal static int AccessibilityDescriptionGetter = 0;
224 internal static int AccessibilityTranslationDomainGetter = 0;
225 internal static int AccessibilityRoleGetter = 0;
226 internal static int AccessibilityHighlightableGetter = 0;
227 internal static int AccessibilityHiddenGetter = 0;
228 internal static int AutomationIdGetter = 0;
229
230 #if NUI_PROPERTY_CHANGE_3
231 internal static int WorldPositionXGetter = 0;
232 internal static int WorldPositionYGetter = 0;
233 internal static int WorldPositionZGetter = 0;
234 internal static int ParentOriginXGetter = 0;
235 internal static int ParentOriginXSetter = 0;
236 internal static int ParentOriginYGetter = 0;
237 internal static int ParentOriginYSetter = 0;
238 internal static int ParentOriginZGetter = 0;
239 internal static int ParentOriginZSetter = 0;
240 internal static int PivotPointXGetter = 0;
241 internal static int PivotPointXSetter = 0;
242 internal static int PivotPointYGetter = 0;
243 internal static int PivotPointYSetter = 0;
244 internal static int PivotPointZGetter = 0;
245 internal static int PivotPointZSetter = 0;
246 internal static int LeftFocusableViewIdGetter = 0;
247 internal static int LeftFocusableViewIdSetter = 0;
248 internal static int RightFocusableViewIdGetter = 0;
249 internal static int RightFocusableViewIdSetter = 0;
250 internal static int UpFocusableViewIdGetter = 0;
251 internal static int UpFocusableViewIdSetter = 0;
252 internal static int DownFocusableViewIdGetter = 0;
253 internal static int DownFocusableViewIdSetter = 0;
254 internal static int ClockwiseFocusableViewIdGetter = 0;
255 internal static int ClockwiseFocusableViewIdSetter = 0;
256 internal static int CounterClockwiseFocusableViewIdGetter = 0;
257 internal static int CounterClockwiseFocusableViewIdSetter = 0;
258
259 internal static int GetCurrentParentOriginCnt = 0;
260 internal static int GetCurrentAnchorPointCnt = 0;
261 internal static int GetTargetSizeCnt = 0;
262 internal static int GetCurrentSizeCnt = 0;
263 internal static int GetCurrentSizeFloatCnt = 0;
264 internal static int GetNaturalSizeCnt = 0;
265 internal static int GetCurrentPositionCnt = 0;
266 internal static int GetCurrentWorldPositionCnt = 0;
267 internal static int GetCurrentScaleCnt = 0;
268 internal static int GetCurrentWorldScaleCnt = 0;
269 internal static int GetCurrentColorCnt = 0;
270 internal static int GetCurrentWorldColorCnt = 0;
271 internal static int GetSizeModeFactorCnt = 0;
272 internal static int GetMinimumSizeCnt = 0;
273 internal static int GetMaximumSizeCnt = 0;
274 #endif
275
276 #endif
277
278         static View()
279         {
280             RegisterPropertyGroup(PositionProperty, positionPropertyGroup);
281             RegisterPropertyGroup(Position2DProperty, positionPropertyGroup);
282             RegisterPropertyGroup(PositionXProperty, positionPropertyGroup);
283             RegisterPropertyGroup(PositionYProperty, positionPropertyGroup);
284
285             RegisterPropertyGroup(SizeProperty, sizePropertyGroup);
286             RegisterPropertyGroup(Size2DProperty, sizePropertyGroup);
287             RegisterPropertyGroup(SizeWidthProperty, sizePropertyGroup);
288             RegisterPropertyGroup(SizeHeightProperty, sizePropertyGroup);
289
290             RegisterPropertyGroup(ScaleProperty, scalePropertyGroup);
291             RegisterPropertyGroup(ScaleXProperty, scalePropertyGroup);
292             RegisterPropertyGroup(ScaleYProperty, scalePropertyGroup);
293             RegisterPropertyGroup(ScaleZProperty, scalePropertyGroup);
294
295             RegisterAccessibilityDelegate();
296         }
297
298         /// <summary>
299         /// Creates a new instance of a view.
300         /// </summary>
301         /// <since_tizen> 3 </since_tizen>
302         public View() : this(Interop.View.New(), true)
303         {
304             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
305         }
306
307         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
308         [EditorBrowsable(EditorBrowsableState.Never)]
309         public View(ViewStyle viewStyle) : this(Interop.View.New(), true, viewStyle)
310         {
311         }
312
313         /// <summary>
314         /// Create a new instance of a View with setting the status of shown or hidden.
315         /// </summary>
316         /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
317         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
318         [EditorBrowsable(EditorBrowsableState.Never)]
319         public View(bool shown) : this(Interop.View.New(), true)
320         {
321             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
322             SetVisible(shown);
323         }
324
325         internal View(View uiControl, bool shown = true) : this(Interop.View.NewView(View.getCPtr(uiControl)), true)
326         {
327             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
328             if (!shown)
329             {
330                 SetVisible(false);
331             }
332
333             backgroundExtraData = uiControl.backgroundExtraData == null ? null : new BackgroundExtraData(uiControl.backgroundExtraData);
334         }
335
336         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, ViewStyle viewStyle, bool shown = true) : this(cPtr, cMemoryOwn, shown)
337         {
338             InitializeStyle(viewStyle);
339         }
340
341         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(cPtr, cMemoryOwn)
342         {
343             if (HasBody())
344             {
345                 PositionUsesPivotPoint = false;
346             }
347
348             onWindowSendEventCallback = SendViewAddedEventToWindow;
349             using ViewSignal signal = new ViewSignal(Interop.ActorSignal.ActorOnSceneSignal(SwigCPtr), false);
350             signal?.Connect(onWindowSendEventCallback);
351
352             hitTestResultDataCallback = OnHitTestResult;
353             using TouchDataSignal touchDataSignal = new TouchDataSignal(Interop.ActorSignal.ActorHitTestResultSignal(SwigCPtr), false);
354             touchDataSignal?.Connect(hitTestResultDataCallback);
355
356             if (!shown)
357             {
358                 SetVisible(false);
359             }
360
361             GrabTouchAfterLeave = defaultGrabTouchAfterLeave;
362             AllowOnlyOwnTouch = defaultAllowOnlyOwnTouch;
363         }
364
365         internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.NewViewInternal(ViewImpl.getCPtr(implementation)), true)
366         {
367             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
368
369             if (!shown)
370             {
371                 SetVisible(false);
372             }
373         }
374
375         /// <summary>
376         /// The event that is triggered when the View's ControlState is changed.
377         /// </summary>
378         [EditorBrowsable(EditorBrowsableState.Never)]
379         public event EventHandler<ControlStateChangedEventArgs> ControlStateChangedEvent;
380
381         internal event EventHandler<ControlStateChangedEventArgs> ControlStateChangeEventInternal;
382
383
384         /// <summary>
385         /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
386         /// </summary>
387         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
388         [EditorBrowsable(EditorBrowsableState.Never)]
389         public bool LayoutSet
390         {
391             get
392             {
393 #if NUI_PROPERTY_CHANGE_DEBUG
394 LayoutSetGetter++;
395 #endif
396                 return layoutSet;
397             }
398         }
399
400         /// <summary>
401         /// Flag to allow Layouting to be disabled for Views.
402         /// Once a View has a Layout set then any children added to Views from then on will receive
403         /// automatic Layouts.
404         /// </summary>
405         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
406         [EditorBrowsable(EditorBrowsableState.Never)]
407         public static bool LayoutingDisabled { get; set; } = true;
408
409         /// <summary>
410         /// If set to true, the <see cref="GrabTouchAfterLeave"/> property value is set to true when all Views are created.
411         /// </summary>
412         /// <param name="enable">Sets value of GrabTouchAfterLeave property</param>
413         [EditorBrowsable(EditorBrowsableState.Never)]
414         public static void SetDefaultGrabTouchAfterLeave(bool enable)
415         {
416             defaultGrabTouchAfterLeave = enable;
417         }
418
419         /// <summary>
420         /// If set to true, the <see cref="AllowOnlyOwnTouch"/> property value is set to true when all Views are created.
421         /// </summary>
422         /// <param name="enable">Sets value of AllowOnlyOwnTouch property</param>
423         [EditorBrowsable(EditorBrowsableState.Never)]
424         public static void SetDefaultAllowOnlyOwnTouch(bool enable)
425         {
426             defaultAllowOnlyOwnTouch = enable;
427         }
428
429         /// <summary>
430         /// Deprecate. Do not use this.
431         /// The style instance applied to this view.
432         /// Note that do not modify the ViewStyle.
433         /// Modifying ViewStyle will affect other views with same ViewStyle.
434         /// </summary>
435         [EditorBrowsable(EditorBrowsableState.Never)]
436         protected ViewStyle ViewStyle
437         {
438             get
439             {
440                 if (themeData == null) themeData = new ThemeData();
441
442                 if (themeData.viewStyle == null)
443                 {
444                     ApplyStyle(CreateViewStyle());
445                 }
446                 return themeData.viewStyle;
447             }
448         }
449
450         /// <summary>
451         /// Get/Set the control state.
452         /// Note that the ControlState only available for the classes derived from Control.
453         /// If the classes that are not derived from Control (such as View, ImageView and TextLabel) want to use this system,
454         /// please set <see cref="EnableControlState"/> to true.
455         /// </summary>
456         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
457         [EditorBrowsable(EditorBrowsableState.Never)]
458         public ControlState ControlState
459         {
460             get
461             {
462                 return themeData == null ? ControlState.Normal : themeData.controlStates;
463             }
464             protected set
465             {
466                 if (ControlState == value)
467                 {
468                     return;
469                 }
470
471                 var prevState = ControlState;
472
473                 if (themeData == null) themeData = new ThemeData();
474                 themeData.controlStates = value;
475
476                 var changeInfo = new ControlStateChangedEventArgs(prevState, value);
477
478                 ControlStateChangeEventInternal?.Invoke(this, changeInfo);
479
480                 if (themeData.ControlStatePropagation)
481                 {
482                     foreach (View child in Children)
483                     {
484                         ControlState allowed = child.PropagatableControlStates;
485                         if (allowed.Contains(ControlState.All))
486                         {
487                             child.ControlState = value;
488                         }
489                         else
490                         {
491                             ControlState newControlState = child.ControlState;
492
493                             if (allowed.Contains(ControlState.Normal))
494                             {
495                                 if (value.Contains(ControlState.Normal))
496                                 {
497                                     newControlState += ControlState.Normal;
498                                 }
499                                 else
500                                 {
501                                     newControlState -= ControlState.Normal;
502                                 }
503                             }
504
505                             if (allowed.Contains(ControlState.Disabled))
506                             {
507                                 if (value.Contains(ControlState.Disabled))
508                                 {
509                                     newControlState += ControlState.Disabled;
510                                 }
511                                 else
512                                 {
513                                     newControlState -= ControlState.Disabled;
514                                 }
515                             }
516
517                             if (allowed.Contains(ControlState.Selected))
518                             {
519                                 if (value.Contains(ControlState.Selected))
520                                 {
521                                     newControlState += ControlState.Selected;
522                                 }
523                                 else
524                                 {
525                                     newControlState -= ControlState.Selected;
526                                 }
527                             }
528
529                             if (allowed.Contains(ControlState.Pressed))
530                             {
531                                 if (value.Contains(ControlState.Pressed))
532                                 {
533                                     newControlState += ControlState.Pressed;
534                                 }
535                                 else
536                                 {
537                                     newControlState -= ControlState.Pressed;
538                                 }
539                             }
540
541                             if (allowed.Contains(ControlState.Focused))
542                             {
543                                 if (value.Contains(ControlState.Focused))
544                                 {
545                                     newControlState += ControlState.Focused;
546                                 }
547                                 else
548                                 {
549                                     newControlState -= ControlState.Focused;
550                                 }
551                             }
552
553                             if (allowed.Contains(ControlState.Other))
554                             {
555                                 if (value.Contains(ControlState.Other))
556                                 {
557                                     newControlState += ControlState.Other;
558                                 }
559                                 else
560                                 {
561                                     newControlState -= ControlState.Other;
562                                 }
563                             }
564
565                             if (child.ControlState != newControlState)
566                             child.ControlState = newControlState;
567                         }
568                     }
569                 }
570
571                 OnControlStateChanged(changeInfo);
572
573                 ControlStateChangedEvent?.Invoke(this, changeInfo);
574             }
575         }
576
577         /// <summary>
578         /// Gets / Sets the status of whether the view is excluded from its parent's layouting or not.
579         /// </summary>
580         /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
581         [EditorBrowsable(EditorBrowsableState.Never)]
582         public bool ExcludeLayouting
583         {
584             get
585             {
586                 return (bool)GetValue(ExcludeLayoutingProperty);
587             }
588             set
589             {
590                 SetValue(ExcludeLayoutingProperty, value);
591                 NotifyPropertyChanged();
592             }
593         }
594
595         private bool InternalExcludeLayouting
596         {
597             get
598             {
599                 return excludeLayouting;
600             }
601             set
602             {
603                 excludeLayouting = value;
604                 if (Layout != null && Layout.SetPositionByLayout == value)
605                 {
606                     Layout.SetPositionByLayout = !value;
607                     Layout.RequestLayout();
608                 }
609             }
610         }
611
612         /// <summary>
613         /// The StyleName, type string.
614         /// The value indicates DALi style name defined in json theme file.
615         /// </summary>
616         /// <since_tizen> 3 </since_tizen>
617         public string StyleName
618         {
619             get
620             {
621 #if NUI_PROPERTY_CHANGE_DEBUG
622 StyleNameGetter++;
623 #endif
624                 return (string)GetValue(StyleNameProperty);
625             }
626             set
627             {
628 #if NUI_PROPERTY_CHANGE_DEBUG
629 StyleNameSetter++;
630 #endif
631                 SetValue(StyleNameProperty, value);
632                 NotifyPropertyChanged();
633             }
634         }
635
636         /// <summary>
637         /// The KeyInputFocus, type bool.
638         /// </summary>
639         [EditorBrowsable(EditorBrowsableState.Never)]
640         public bool KeyInputFocus
641         {
642             get
643             {
644 #if NUI_PROPERTY_CHANGE_DEBUG
645 KeyInputFocusGetter++;
646 #endif
647                 return (bool)GetValue(KeyInputFocusProperty);
648             }
649             set
650             {
651 #if NUI_PROPERTY_CHANGE_DEBUG
652 KeyInputFocusSetter++;
653 #endif
654                 SetValue(KeyInputFocusProperty, value);
655                 NotifyPropertyChanged();
656             }
657         }
658
659         /// <summary>
660         /// The mutually exclusive with "backgroundImage" and "background" type Vector4.
661         /// </summary>
662         /// <remarks>
663         /// <para>
664         /// The property cascade chaining set is not recommended.
665         /// </para>
666         /// <para>
667         /// Animatable - This property can be animated using <c>Animation</c> class.
668         /// <code>
669         /// animation.AnimateTo(view, "BackgroundColor", new Color(r, g, b, a));
670         /// </code>
671         /// </para>
672         /// </remarks>
673         /// <example>
674         /// This way is recommended for setting the property
675         /// <code>
676         /// var view = new View();
677         /// view.BackgroundColor = new Color(0.5f, 0.1f, 0, 1);
678         /// </code>
679         /// This way to set the property is prohibited
680         /// <code>
681         /// view.BackgroundColor.R = 0.5f; //This does not guarantee a proper operation
682         /// </code>
683         /// </example>
684         /// <since_tizen> 3 </since_tizen>
685         public Color BackgroundColor
686         {
687             get
688             {
689                 return (Color)GetValue(BackgroundColorProperty);
690             }
691             set
692             {
693                 SetValue(BackgroundColorProperty, value);
694                 NotifyPropertyChanged();
695             }
696         }
697
698         /// <summary>
699         /// The mutually exclusive with "backgroundColor" and "background" type Map.
700         /// </summary>
701         /// <since_tizen> 3 </since_tizen>
702         public string BackgroundImage
703         {
704             get
705             {
706                 return (string)GetValue(BackgroundImageProperty);
707             }
708             set
709             {
710                 SetValue(BackgroundImageProperty, value);
711                 NotifyPropertyChanged();
712             }
713         }
714
715         /// <summary>
716         /// Get or set the border of background image.
717         /// </summary>
718         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
719         [EditorBrowsable(EditorBrowsableState.Never)]
720         public Rectangle BackgroundImageBorder
721         {
722             get
723             {
724                 return (Rectangle)GetValue(BackgroundImageBorderProperty);
725             }
726             set
727             {
728                 SetValue(BackgroundImageBorderProperty, value);
729                 NotifyPropertyChanged();
730             }
731         }
732
733         /// <summary>
734         /// The background of view.
735         /// </summary>
736         /// <since_tizen> 3 </since_tizen>
737         public Tizen.NUI.PropertyMap Background
738         {
739             get
740             {
741                 return (PropertyMap)GetValue(BackgroundProperty);
742             }
743             set
744             {
745                 SetValue(BackgroundProperty, value);
746                 NotifyPropertyChanged();
747             }
748         }
749
750         /// <summary>
751         /// Describes a shadow as an image for a View.
752         /// It is null by default.
753         /// </summary>
754         /// <remarks>
755         /// Getter returns copied instance of current shadow.
756         /// </remarks>
757         /// <remarks>
758         /// The mutually exclusive with "BoxShadow".
759         /// </remarks>
760         /// <remarks>
761         /// <para>
762         /// Animatable - This property can be animated using <c>Animation</c> class.
763         /// To animate this property, specify a sub-property with separator ".", for example, "ImageShadow.Offset".
764         /// <code>
765         /// animation.AnimateTo(view, "ImageShadow.Offset", new Vector2(10, 10));
766         /// </code>
767         /// Animatable sub-property : Offset.
768         /// </para>
769         /// </remarks>
770         [EditorBrowsable(EditorBrowsableState.Never)]
771         public ImageShadow ImageShadow
772         {
773             get
774             {
775                 return (ImageShadow)GetValue(ImageShadowProperty);
776             }
777             set
778             {
779                 SetValue(ImageShadowProperty, value);
780                 NotifyPropertyChanged();
781             }
782         }
783
784         /// <summary>
785         /// Describes a box shaped shadow drawing for a View.
786         /// It is null by default.
787         /// </summary>
788         /// <remarks>
789         /// The mutually exclusive with "ImageShadow".
790         /// </remarks>
791         /// <remarks>
792         /// <para>
793         /// Animatable - This property can be animated using <c>Animation</c> class.
794         /// To animate this property, specify a sub-property with separator ".", for example, "BoxShadow.BlurRadius".
795         /// <code>
796         /// animation.AnimateTo(view, "BoxShadow.BlurRadius", 10.0f);
797         /// </code>
798         /// Animatable sub-property : Offset, Color, BlurRadius.
799         /// </para>
800         /// </remarks>
801         /// <since_tizen> 9 </since_tizen>
802         public Shadow BoxShadow
803         {
804             get
805             {
806                 return (Shadow)GetValue(BoxShadowProperty);
807             }
808             set
809             {
810                 SetValue(BoxShadowProperty, value);
811                 NotifyPropertyChanged();
812             }
813         }
814
815         /// <summary>
816         /// The radius for the rounded corners of the View.
817         /// This will rounds background and shadow edges.
818         /// The values in Vector4 are used in clockwise order from top-left to bottom-left : Vector4(top-left-corner, top-right-corner, bottom-right-corner, bottom-left-corner).
819         /// Each radius will clamp internally to the half of smaller of the view's width or height.
820         /// Note that, an image background (or shadow) may not have rounded corners if it uses a Border property.
821         /// </summary>
822         /// <remarks>
823         /// <para>
824         /// Animatable - This property can be animated using <c>Animation</c> class.
825         /// <code>
826         /// animation.AnimateTo(view, "CornerRadius", new Vector4(10, 10, 10, 10));
827         /// </code>
828         /// </para>
829         /// </remarks>
830         /// <since_tizen> 9 </since_tizen>
831         public Vector4 CornerRadius
832         {
833             get
834             {
835                 return (Vector4)GetValue(CornerRadiusProperty);
836             }
837             set
838             {
839                 SetValue(CornerRadiusProperty, value);
840                 NotifyPropertyChanged();
841             }
842         }
843
844         /// <summary>
845         /// Whether the CornerRadius property value is relative (percentage [0.0f to 0.5f] of the view size) or absolute (in world units).
846         /// It is absolute by default.
847         /// When the policy is relative, the corner radius is relative to the smaller of the view's width and height.
848         /// </summary>
849         /// <since_tizen> 9 </since_tizen>
850         public VisualTransformPolicyType CornerRadiusPolicy
851         {
852             get => (VisualTransformPolicyType)GetValue(CornerRadiusPolicyProperty);
853             set => SetValue(CornerRadiusPolicyProperty, value);
854         }
855
856         /// <summary>
857         /// The width for the borderline of the View.
858         /// </summary>
859         /// <remarks>
860         /// <para>
861         /// Animatable - This property can be animated using <c>Animation</c> class.
862         /// <code>
863         /// animation.AnimateTo(view, "BorderlineWidth", 100.0f);
864         /// </code>
865         /// </para>
866         /// Note that, an image background may not have borderline if it uses the Border property.
867         /// </remarks>
868         /// <since_tizen> 9 </since_tizen>
869         public float BorderlineWidth
870         {
871             get
872             {
873                 return (float)GetValue(BorderlineWidthProperty);
874             }
875             set
876             {
877                 SetValue(BorderlineWidthProperty, value);
878                 NotifyPropertyChanged();
879             }
880         }
881
882         /// <summary>
883         /// The color for the borderline of the View.
884         /// It is Color.Black by default.
885         /// </summary>
886         /// <remarks>
887         /// <para>
888         /// Animatable - This property can be animated using <c>Animation</c> class.
889         /// <code>
890         /// animation.AnimateTo(view, "BorderlineColor", new Color(r, g, b, a));
891         /// </code>
892         /// </para>
893         /// </remarks>
894         /// <since_tizen> 9 </since_tizen>
895         public Color BorderlineColor
896         {
897             get
898             {
899                 return (Color)GetValue(BorderlineColorProperty);
900             }
901             set
902             {
903                 SetValue(BorderlineColorProperty, value);
904                 NotifyPropertyChanged();
905             }
906         }
907
908         /// <summary>
909         /// The color selector for the borderline of the View.
910         /// Like BackgroundColor, color selector typed BorderlineColor should be used in ViewStyle only.
911         /// So this API is internally used only.
912         /// </summary>
913         internal Selector<Color> BorderlineColorSelector
914         {
915             get
916             {
917                 return (Selector<Color>)GetValue(BorderlineColorSelectorProperty);
918             }
919             set
920             {
921                 SetValue(BorderlineColorSelectorProperty, value);
922                 NotifyPropertyChanged();
923             }
924         }
925
926         /// <summary>
927         /// The Relative offset for the borderline of the View.
928         /// Recommended range : [-1.0f to 1.0f].
929         /// If -1.0f, draw borderline inside of the View.
930         /// If 1.0f, draw borderline outside of the View.
931         /// If 0.0f, draw borderline half inside and half outside.
932         /// It is 0.0f by default.
933         /// </summary>
934         /// <remarks>
935         /// <para>
936         /// Animatable - This property can be animated using <c>Animation</c> class.
937         /// <code>
938         /// animation.AnimateTo(view, "BorderlineOffset", -1.0f);
939         /// </code>
940         /// </para>
941         /// </remarks>
942         /// <since_tizen> 9 </since_tizen>
943         public float BorderlineOffset
944         {
945             get
946             {
947                 return (float)GetValue(BorderlineOffsetProperty);
948             }
949             set
950             {
951                 SetValue(BorderlineOffsetProperty, value);
952                 NotifyPropertyChanged();
953             }
954         }
955
956         /// <summary>
957         /// The current state of the view.
958         /// </summary>
959         /// <since_tizen> 3 </since_tizen>
960         public States State
961         {
962             get
963             {
964 #if NUI_PROPERTY_CHANGE_DEBUG
965 StateGetter++;
966 #endif
967                 return (States)GetValue(StateProperty);
968             }
969             set
970             {
971 #if NUI_PROPERTY_CHANGE_DEBUG
972 StateSetter++;
973 #endif
974                 SetValue(StateProperty, value);
975                 NotifyPropertyChanged();
976             }
977         }
978
979         /// <summary>
980         /// The current sub state of the view.
981         /// </summary>
982         /// <since_tizen> 3 </since_tizen>
983         public States SubState
984         {
985             get
986             {
987 #if NUI_PROPERTY_CHANGE_DEBUG
988 SubStateGetter++;
989 #endif
990                 return (States)GetValue(SubStateProperty);
991             }
992             set
993             {
994 #if NUI_PROPERTY_CHANGE_DEBUG
995 SubStateSetter++;
996 #endif
997                 SetValue(SubStateProperty, value);
998                 NotifyPropertyChanged();
999             }
1000         }
1001
1002         /// <summary>
1003         /// Displays a tooltip
1004         /// </summary>
1005         /// <since_tizen> 3 </since_tizen>
1006         public Tizen.NUI.PropertyMap Tooltip
1007         {
1008             get
1009             {
1010                 return (PropertyMap)GetValue(TooltipProperty);
1011             }
1012             set
1013             {
1014                 SetValue(TooltipProperty, value);
1015                 NotifyPropertyChanged();
1016             }
1017         }
1018
1019         /// <summary>
1020         /// Displays a tooltip as a text.
1021         /// </summary>
1022         /// <since_tizen> 3 </since_tizen>
1023         public string TooltipText
1024         {
1025             get
1026             {
1027                 return GetValue(TooltipTextProperty) as string;
1028             }
1029             set
1030             {
1031                 SetValue(TooltipTextProperty, value);
1032             }
1033         }
1034
1035         private string InternalTooltipText
1036         {
1037             get
1038             {
1039                 using (var propertyValue = GetProperty(Property.TOOLTIP))
1040                 {
1041                     if (propertyValue != null && propertyValue.Get(out string retrivedValue))
1042                     {
1043                         return retrivedValue;
1044                     }
1045                     NUILog.Error($"[ERROR] Fail to get TooltipText! Return error MSG (error to get TooltipText)!");
1046                     return "error to get TooltipText";
1047                 }
1048             }
1049             set
1050             {
1051                 var temp = new Tizen.NUI.PropertyValue(value);
1052                 SetProperty(View.Property.TOOLTIP, temp);
1053                 temp.Dispose();
1054                 NotifyPropertyChanged();
1055             }
1056         }
1057
1058         /// <summary>
1059         /// The Child property of FlexContainer.<br />
1060         /// The proportion of the free space in the container, the flex item will receive.<br />
1061         /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
1062         /// </summary>
1063         /// <since_tizen> 3 </since_tizen>
1064         [Obsolete("Deprecated in API8, will be removed in API10.")]
1065         public float Flex
1066         {
1067             get
1068             {
1069 #if NUI_PROPERTY_CHANGE_DEBUG
1070 FlexGetter++;
1071 #endif
1072                 return (float)GetValue(FlexProperty);
1073             }
1074             set
1075             {
1076 #if NUI_PROPERTY_CHANGE_DEBUG
1077 FlexSetter++;
1078 #endif
1079                 SetValue(FlexProperty, value);
1080                 NotifyPropertyChanged();
1081             }
1082         }
1083
1084         /// <summary>
1085         /// The Child property of FlexContainer.<br />
1086         /// The alignment of the flex item along the cross axis, which, if set, overrides the default alignment for all items in the container.<br />
1087         /// </summary>
1088         /// <since_tizen> 3 </since_tizen>
1089         [Obsolete("Deprecated in API8, will be removed in API10.")]
1090         public int AlignSelf
1091         {
1092             get
1093             {
1094 #if NUI_PROPERTY_CHANGE_DEBUG
1095 AlignSelfGetter++;
1096 #endif
1097                 return (int)GetValue(AlignSelfProperty);
1098             }
1099             set
1100             {
1101 #if NUI_PROPERTY_CHANGE_DEBUG
1102 AlignSelfSetter++;
1103 #endif
1104                 SetValue(AlignSelfProperty, value);
1105                 NotifyPropertyChanged();
1106             }
1107         }
1108
1109         /// <summary>
1110         /// The Child property of FlexContainer.<br />
1111         /// The space around the flex item.<br />
1112         /// </summary>
1113         /// <remarks>
1114         /// The property cascade chaining set is possible. For example, this (view.FlexMargin.X = 0.1f;) is possible.
1115         /// </remarks>
1116         /// <since_tizen> 3 </since_tizen>
1117         [Obsolete("Deprecated in API8, will be removed in API10.")]
1118         public Vector4 FlexMargin
1119         {
1120             get
1121             {
1122 #if NUI_PROPERTY_CHANGE_DEBUG
1123 FlexMarginGetter++;
1124 #endif
1125                 Vector4 temp = (Vector4)GetValue(FlexMarginProperty);
1126                 return new Vector4(OnFlexMarginChanged, temp.X, temp.Y, temp.Z, temp.W);
1127             }
1128             set
1129             {
1130 #if NUI_PROPERTY_CHANGE_DEBUG
1131 FlexMarginSetter++;
1132 #endif
1133                 SetValue(FlexMarginProperty, value);
1134                 NotifyPropertyChanged();
1135             }
1136         }
1137
1138         /// <summary>
1139         /// The top-left cell this child occupies, if not set, the first available cell is used.
1140         /// </summary>
1141         /// <remarks>
1142         /// The property cascade chaining set is not recommended.
1143         /// Also, this property is for <see cref="TableView"/> class. Please use the property for the child position of <see cref="TableView"/>.
1144         /// </remarks>
1145         /// <example>
1146         /// This way is recommended for setting the property
1147         /// <code>
1148         /// var view = new View();
1149         /// view.CellIndex = new Vector2(1, 3);
1150         /// </code>
1151         /// This way to set the property is prohibited
1152         /// <code>
1153         /// view.CellIndex.X = 1; //This does not guarantee a proper operation
1154         /// </code>
1155         /// </example>
1156         /// <since_tizen> 3 </since_tizen>
1157         public Vector2 CellIndex
1158         {
1159             get
1160             {
1161 #if NUI_PROPERTY_CHANGE_DEBUG
1162 CellIndexGetter++;
1163 #endif
1164                 return (Vector2)GetValue(CellIndexProperty);
1165             }
1166             set
1167             {
1168 #if NUI_PROPERTY_CHANGE_DEBUG
1169 CellIndexSetter++;
1170 #endif
1171                 SetValue(CellIndexProperty, value);
1172                 NotifyPropertyChanged();
1173             }
1174         }
1175
1176         /// <summary>
1177         /// The number of rows this child occupies, if not set, the default value is 1.
1178         /// </summary>
1179         /// <remarks>
1180         /// This property is for <see cref="TableView"/> class. Use the property for the child position of <see cref="TableView"/>.
1181         /// </remarks>
1182         /// <since_tizen> 3 </since_tizen>
1183         public float RowSpan
1184         {
1185             get
1186             {
1187 #if NUI_PROPERTY_CHANGE_DEBUG
1188 RowSpanGetter++;
1189 #endif
1190                 return (float)GetValue(RowSpanProperty);
1191             }
1192             set
1193             {
1194 #if NUI_PROPERTY_CHANGE_DEBUG
1195 RowSpanSetter++;
1196 #endif
1197                 SetValue(RowSpanProperty, value);
1198                 NotifyPropertyChanged();
1199             }
1200         }
1201
1202         /// <summary>
1203         /// The number of columns this child occupies, if not set, the default value is 1.
1204         /// </summary>
1205         /// <remarks>
1206         /// This property is for <see cref="TableView"/> class. Use the property for the child position of <see cref="TableView"/>.
1207         /// </remarks>
1208         /// <since_tizen> 3 </since_tizen>
1209         public float ColumnSpan
1210         {
1211             get
1212             {
1213 #if NUI_PROPERTY_CHANGE_DEBUG
1214 ColumnSpanGetter++;
1215 #endif
1216                 return (float)GetValue(ColumnSpanProperty);
1217             }
1218             set
1219             {
1220 #if NUI_PROPERTY_CHANGE_DEBUG
1221 ColumnSpanSetter++;
1222 #endif
1223                 SetValue(ColumnSpanProperty, value);
1224                 NotifyPropertyChanged();
1225             }
1226         }
1227
1228         /// <summary>
1229         /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
1230         /// </summary>
1231         /// <remarks>
1232         /// This property is for <see cref="TableView"/> class. Use the property for the child position of <see cref="TableView"/>.
1233         /// </remarks>
1234         /// <since_tizen> 3 </since_tizen>
1235         public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
1236         {
1237             get
1238             {
1239 #if NUI_PROPERTY_CHANGE_DEBUG
1240 CellHorizontalAlignmentGetter++;
1241 #endif
1242                 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
1243             }
1244             set
1245             {
1246 #if NUI_PROPERTY_CHANGE_DEBUG
1247 CellHorizontalAlignmentSetter++;
1248 #endif
1249                 SetValue(CellHorizontalAlignmentProperty, value);
1250                 NotifyPropertyChanged();
1251             }
1252         }
1253
1254         /// <summary>
1255         /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
1256         /// </summary>
1257         /// <remarks>
1258         /// This property is for <see cref="TableView"/> class. Use the property for the child position of <see cref="TableView"/>.
1259         /// </remarks>
1260         /// <since_tizen> 3 </since_tizen>
1261         public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
1262         {
1263             get
1264             {
1265 #if NUI_PROPERTY_CHANGE_DEBUG
1266 CellVerticalAlignmentGetter++;
1267 #endif
1268                 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
1269             }
1270             set
1271             {
1272 #if NUI_PROPERTY_CHANGE_DEBUG
1273 CellVerticalAlignmentSetter++;
1274 #endif
1275                 SetValue(CellVerticalAlignmentProperty, value);
1276                 NotifyPropertyChanged();
1277             }
1278         }
1279
1280         /// <summary>
1281         /// The left focusable view.<br />
1282         /// This will return null if not set.<br />
1283         /// This will also return null if the specified left focusable view is not on a window.<br />
1284         /// </summary>
1285         /// <since_tizen> 3 </since_tizen>
1286         public View LeftFocusableView
1287         {
1288             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1289             get
1290             {
1291                 return (View)GetValue(LeftFocusableViewProperty);
1292             }
1293             set
1294             {
1295                 SetValue(LeftFocusableViewProperty, value);
1296                 NotifyPropertyChanged();
1297             }
1298         }
1299
1300         /// <summary>
1301         /// The right focusable view.<br />
1302         /// This will return null if not set.<br />
1303         /// This will also return null if the specified right focusable view is not on a window.<br />
1304         /// </summary>
1305         /// <since_tizen> 3 </since_tizen>
1306         public View RightFocusableView
1307         {
1308             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1309             get
1310             {
1311                 return (View)GetValue(RightFocusableViewProperty);
1312             }
1313             set
1314             {
1315                 SetValue(RightFocusableViewProperty, value);
1316                 NotifyPropertyChanged();
1317             }
1318         }
1319
1320         /// <summary>
1321         /// The up focusable view.<br />
1322         /// This will return null if not set.<br />
1323         /// This will also return null if the specified up focusable view is not on a window.<br />
1324         /// </summary>
1325         /// <since_tizen> 3 </since_tizen>
1326         public View UpFocusableView
1327         {
1328             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1329             get
1330             {
1331                 return (View)GetValue(UpFocusableViewProperty);
1332             }
1333             set
1334             {
1335                 SetValue(UpFocusableViewProperty, value);
1336                 NotifyPropertyChanged();
1337             }
1338         }
1339
1340         /// <summary>
1341         /// The down focusable view.<br />
1342         /// This will return null if not set.<br />
1343         /// This will also return null if the specified down focusable view is not on a window.<br />
1344         /// </summary>
1345         /// <since_tizen> 3 </since_tizen>
1346         public View DownFocusableView
1347         {
1348             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1349             get
1350             {
1351                 return (View)GetValue(DownFocusableViewProperty);
1352             }
1353             set
1354             {
1355                 SetValue(DownFocusableViewProperty, value);
1356                 NotifyPropertyChanged();
1357             }
1358         }
1359
1360         /// <summary>
1361         /// The clockwise focusable view by rotary wheel.<br />
1362         /// This will return null if not set.<br />
1363         /// This will also return null if the specified clockwise focusable view is not on a window.<br />
1364         /// </summary>
1365         [EditorBrowsable(EditorBrowsableState.Never)]
1366         public View ClockwiseFocusableView
1367         {
1368             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1369             get
1370             {
1371                 return (View)GetValue(ClockwiseFocusableViewProperty);
1372             }
1373             set
1374             {
1375                 SetValue(ClockwiseFocusableViewProperty, value);
1376                 NotifyPropertyChanged();
1377             }
1378         }
1379
1380         /// <summary>
1381         /// The counter clockwise focusable view by rotary wheel.<br />
1382         /// This will return null if not set.<br />
1383         /// This will also return null if the specified counter clockwise focusable view is not on a window.<br />
1384         /// </summary>
1385         [EditorBrowsable(EditorBrowsableState.Never)]
1386         public View CounterClockwiseFocusableView
1387         {
1388             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
1389             get
1390             {
1391                 return (View)GetValue(CounterClockwiseFocusableViewProperty);
1392             }
1393             set
1394             {
1395                 SetValue(CounterClockwiseFocusableViewProperty, value);
1396                 NotifyPropertyChanged();
1397             }
1398         }
1399
1400         /// <summary>
1401         /// Whether the view should be focusable by keyboard navigation.
1402         /// </summary>
1403         /// <since_tizen> 3 </since_tizen>
1404         public bool Focusable
1405         {
1406             set
1407             {
1408                 SetValue(FocusableProperty, value);
1409                 NotifyPropertyChanged();
1410             }
1411             get
1412             {
1413                 return (bool)GetValue(FocusableProperty);
1414             }
1415         }
1416
1417         /// <summary>
1418         /// 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.
1419         /// Note : Default value is true.
1420         /// </summary>
1421         [EditorBrowsable(EditorBrowsableState.Never)]
1422         public bool FocusableChildren
1423         {
1424             set
1425             {
1426                 SetValue(FocusableChildrenProperty, value);
1427                 NotifyPropertyChanged();
1428             }
1429             get
1430             {
1431                 return (bool)GetValue(FocusableChildrenProperty);
1432             }
1433         }
1434
1435         /// <summary>
1436         /// Whether this view can focus by touch.
1437         /// If Focusable is false, FocusableInTouch is disabled.
1438         /// If you want to have focus on touch, you need to set both Focusable and FocusableInTouch settings to true.
1439         /// </summary>
1440         [EditorBrowsable(EditorBrowsableState.Never)]
1441         public bool FocusableInTouch
1442         {
1443             set
1444             {
1445                 SetValue(FocusableInTouchProperty, value);
1446                 NotifyPropertyChanged();
1447             }
1448             get
1449             {
1450                 return (bool)GetValue(FocusableInTouchProperty);
1451             }
1452         }
1453
1454         /// <summary>
1455         /// Retrieves the position of the view.
1456         /// The coordinates are relative to the view's parent.
1457         /// </summary>
1458         /// <remarks>
1459         /// The <see cref="Size"/>, <see cref="Position"/>, <see cref="Color"/>, and <see cref="Scale"/> properties are set in the main thread.
1460         /// Therefore, it is not updated in real time when the value is changed in the render thread (for example, the value is changed during animation).
1461         /// However, <see cref="CurrentSize"/>, <see cref="CurrentPosition"/>, <see cref="CurrentColor"/>, and <see cref="CurrentScale"/> properties are updated in real time,
1462         /// and users can get the current actual values through them.
1463         /// </remarks>
1464         /// <since_tizen> 3 </since_tizen>
1465         public Position CurrentPosition
1466         {
1467             get
1468             {
1469                 return GetCurrentPosition();
1470             }
1471         }
1472
1473         /// <summary>
1474         /// Sets the size of a view for the width and the height.<br />
1475         /// Geometry can be scaled to fit within this area.<br />
1476         /// This does not interfere with the view's scale factor.<br />
1477         /// The views default depth is the minimum of width and height.<br />
1478         /// </summary>
1479         /// <remarks>
1480         /// The property cascade chaining set is not recommended.
1481         /// </remarks>
1482         /// <example>
1483         /// This way is recommended for setting the property
1484         /// <code>
1485         /// var view = new View();
1486         /// view.Size2D = new Size2D(100, 200);
1487         /// </code>
1488         /// This way to set the property is prohibited
1489         /// <code>
1490         /// view.Size2D.Width = 100; //This does not guarantee a proper operation
1491         /// </code>
1492         /// </example>
1493         /// <since_tizen> 3 </since_tizen>
1494         public Size2D Size2D
1495         {
1496             get
1497             {
1498 #if NUI_PROPERTY_CHANGE_DEBUG
1499 Size2DGetter++;
1500 #endif
1501
1502                 var temp = (Size2D)GetValue(Size2DProperty);
1503
1504                 if (this.Layout == null)
1505                 {
1506                     if (temp.Width < 0) { temp.Width = 0; }
1507                     if (temp.Height < 0) { temp.Height = 0; }
1508                 }
1509
1510                 return temp;
1511             }
1512             set
1513             {
1514 #if NUI_PROPERTY_CHANGE_DEBUG
1515 Size2DSetter++;
1516 #endif
1517
1518                 SetValue(Size2DProperty, value);
1519
1520                 NotifyPropertyChanged();
1521             }
1522         }
1523
1524         /// <summary>
1525         /// Retrieves the size of the view.
1526         /// The coordinates are relative to the view's parent.
1527         /// </summary>
1528         /// <remarks>
1529         /// The <see cref="Size"/>, <see cref="Position"/>, <see cref="Color"/>, and <see cref="Scale"/> properties are set in the main thread.
1530         /// Therefore, it is not updated in real time when the value is changed in the render thread (for example, the value is changed during animation).
1531         /// However, <see cref="CurrentSize"/>, <see cref="CurrentPosition"/>, <see cref="CurrentColor"/>, and <see cref="CurrentScale"/> properties are updated in real time,
1532         /// and users can get the current actual values through them.
1533         /// </remarks>
1534         /// <since_tizen> 3 </since_tizen>
1535         public Size2D CurrentSize
1536         {
1537             get
1538             {
1539                 return GetCurrentSize();
1540             }
1541         }
1542
1543         /// <summary>
1544         /// Retrieves and sets the view's opacity.<br />
1545         /// </summary>
1546         /// <remarks>
1547         /// <para>
1548         /// Animatable - This property can be animated using <c>Animation</c> class.
1549         /// <code>
1550         /// animation.AnimateTo(view, "Opacity", 0.5f);
1551         /// </code>
1552         /// </para>
1553         /// </remarks>
1554         /// <since_tizen> 3 </since_tizen>
1555         public float Opacity
1556         {
1557             get
1558             {
1559 #if NUI_PROPERTY_CHANGE_DEBUG
1560 OpacityGetter++;
1561 #endif
1562                 return (float)GetValue(OpacityProperty);
1563             }
1564             set
1565             {
1566 #if NUI_PROPERTY_CHANGE_DEBUG
1567 OpacitySetter++;
1568 #endif
1569                 SetValue(OpacityProperty, value);
1570                 NotifyPropertyChanged();
1571             }
1572         }
1573
1574         /// <summary>
1575         /// Sets the position of the view for X and Y.<br />
1576         /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
1577         /// If the position inheritance is disabled, sets the world position.<br />
1578         /// </summary>
1579         /// <remarks>
1580         /// The property cascade chaining set is not recommended.
1581         ///</remarks>
1582         /// <example>
1583         /// This way is recommended for setting the property
1584         /// <code>
1585         /// var view = new View();
1586         /// view.Position2D = new Position2D(100, 200);
1587         /// </code>
1588         /// This way to set the property is prohibited
1589         /// <code>
1590         /// view.Position2D.X = 100; //This does not guarantee a proper operation
1591         /// </code>
1592         /// </example>
1593         /// <since_tizen> 3 </since_tizen>
1594         public Position2D Position2D
1595         {
1596             get
1597             {
1598 #if NUI_PROPERTY_CHANGE_DEBUG
1599 Position2DGetter++;
1600 #endif
1601
1602                 return (Position2D)GetValue(Position2DProperty);
1603             }
1604             set
1605             {
1606 #if NUI_PROPERTY_CHANGE_DEBUG
1607 Position2DSetter++;
1608 #endif
1609
1610                 SetValue(Position2DProperty, value);
1611                 NotifyPropertyChanged();
1612             }
1613         }
1614
1615         /// <summary>
1616         /// Retrieves the screen position of the view.<br />
1617         /// </summary>
1618         /// <since_tizen> 3 </since_tizen>
1619         public Vector2 ScreenPosition
1620         {
1621             get
1622             {
1623                 Vector2 temp = new Vector2(0.0f, 0.0f);
1624                 var pValue = GetProperty(View.Property.ScreenPosition);
1625                 pValue.Get(temp);
1626                 pValue.Dispose();
1627                 return temp;
1628             }
1629         }
1630
1631         /// <summary>
1632         /// Determines whether the pivot point should be used to determine the position of the view.
1633         /// This is false by default.
1634         /// </summary>
1635         /// <remarks>If false, then the top-left of the view is used for the position.
1636         /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
1637         /// </remarks>
1638         /// <since_tizen> 3 </since_tizen>
1639         public bool PositionUsesPivotPoint
1640         {
1641             get
1642             {
1643 #if NUI_PROPERTY_CHANGE_DEBUG
1644 PositionUsesPivotPointGetter++;
1645 #endif
1646                 return (bool)GetValue(PositionUsesPivotPointProperty);
1647             }
1648             set
1649             {
1650 #if NUI_PROPERTY_CHANGE_DEBUG
1651 PositionUsesPivotPointSetter++;
1652 #endif
1653                 SetValue(PositionUsesPivotPointProperty, value);
1654                 NotifyPropertyChanged();
1655             }
1656         }
1657
1658         /// <summary>
1659         /// This has been deprecated in API5 and Will be removed in API8. Use PositionUsesPivotPoint instead.
1660         /// </summary>
1661         /// <since_tizen> 3 </since_tizen>
1662         [Obsolete("This has been deprecated in API5 and will be removed in API8. Use PositionUsesPivotPoint instead. " +
1663             "Like: " +
1664             "View view = new View(); " +
1665             "view.PivotPoint = PivotPoint.Center; " +
1666             "view.PositionUsesPivotPoint = true;" +
1667             " This has been deprecated in API5 and will be removed in API8")]
1668         [EditorBrowsable(EditorBrowsableState.Never)]
1669         public bool PositionUsesAnchorPoint
1670         {
1671             get
1672             {
1673                 return (bool)GetValue(PositionUsesAnchorPointProperty);
1674             }
1675             set
1676             {
1677                 SetValue(PositionUsesAnchorPointProperty, value);
1678             }
1679         }
1680
1681         private bool InternalPositionUsesAnchorPoint
1682         {
1683             get
1684             {
1685                 bool temp = false;
1686                 var pValue = GetProperty(View.Property.PositionUsesAnchorPoint);
1687                 pValue.Get(out temp);
1688                 pValue.Dispose();
1689                 return temp;
1690             }
1691             set
1692             {
1693                 var temp = new Tizen.NUI.PropertyValue(value);
1694                 SetProperty(View.Property.PositionUsesAnchorPoint, temp);
1695                 temp.Dispose();
1696                 NotifyPropertyChanged();
1697             }
1698         }
1699
1700         /// <summary>
1701         /// Queries whether the view is connected to the stage.<br />
1702         /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
1703         /// </summary>
1704         /// <since_tizen> 3 </since_tizen>
1705         public bool IsOnWindow
1706         {
1707             get
1708             {
1709                 return OnWindow();
1710             }
1711         }
1712
1713         /// <summary>
1714         /// Gets the depth in the hierarchy for the view.
1715         /// </summary>
1716         /// <since_tizen> 3 </since_tizen>
1717         public int HierarchyDepth
1718         {
1719             get
1720             {
1721                 return GetHierarchyDepth();
1722             }
1723         }
1724
1725         /// <summary>
1726         /// Sets the sibling order of the view so the depth position can be defined within the same parent.
1727         /// </summary>
1728         /// <remarks>
1729         /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
1730         /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
1731         /// The values set by this property will likely change.
1732         /// </remarks>
1733         /// <since_tizen> 3 </since_tizen>
1734         public int SiblingOrder
1735         {
1736             get
1737             {
1738                 return (int)GetValue(SiblingOrderProperty);
1739             }
1740             set
1741             {
1742                 SetValue(SiblingOrderProperty, value);
1743
1744                 Layout?.ChangeLayoutSiblingOrder(value);
1745
1746                 NotifyPropertyChanged();
1747             }
1748         }
1749
1750         /// <summary>
1751         /// Returns the natural size of the view.
1752         /// </summary>
1753         /// <remarks>
1754         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
1755         /// </remarks>
1756         /// <since_tizen> 5 </since_tizen>
1757         public Vector3 NaturalSize
1758         {
1759             get
1760             {
1761                 Vector3 ret = GetNaturalSize();
1762                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1763                 return ret;
1764             }
1765         }
1766
1767         /// <summary>
1768         /// Returns the natural size (Size2D) of the view.
1769         /// </summary>
1770         /// <remarks>
1771         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
1772         /// </remarks>
1773         /// <since_tizen> 4 </since_tizen>
1774         public Size2D NaturalSize2D
1775         {
1776             get
1777             {
1778                 Vector3 temp = GetNaturalSize();
1779                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1780
1781                 Size2D sz = new Size2D((int)temp.Width, (int)temp.Height);
1782                 temp.Dispose();
1783                 return sz;
1784             }
1785         }
1786
1787         /// <summary>
1788         /// Gets or sets the origin of a view within its parent's area.<br />
1789         /// 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 />
1790         /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
1791         /// A view's position is the distance between this origin and the view's anchor-point.<br />
1792         /// </summary>
1793         /// <pre>The view has been initialized.</pre>
1794         /// <since_tizen> 3 </since_tizen>
1795         public Position ParentOrigin
1796         {
1797             get
1798             {
1799 #if NUI_PROPERTY_CHANGE_DEBUG
1800 ParentOriginGetter++;
1801 #endif
1802                 Position tmp = (Position)GetValue(ParentOriginProperty);
1803                 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
1804             }
1805             set
1806             {
1807 #if NUI_PROPERTY_CHANGE_DEBUG
1808 ParentOriginSetter++;
1809 #endif
1810                 SetValue(ParentOriginProperty, value);
1811                 NotifyPropertyChanged();
1812             }
1813         }
1814
1815         /// <summary>
1816         /// Gets or sets the anchor-point of a view.<br />
1817         /// 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 />
1818         /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
1819         /// A view position is the distance between its parent-origin and this anchor-point.<br />
1820         /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
1821         /// <pre>The view has been initialized.</pre>
1822         /// </summary>
1823         /// <remarks>
1824         /// The property cascade chaining set is not recommended.
1825         ///</remarks>
1826         /// <example>
1827         /// This way is recommended for setting the property
1828         /// <code>
1829         /// var view = new View();
1830         /// view.PivotPoint = PivotPoint.Center;
1831         /// </code>
1832         /// This way to set the property is prohibited
1833         /// <code>
1834         /// view.PivotPoint.X = 0.5f; //This does not guarantee a proper operation
1835         /// </code>
1836         /// </example>
1837         /// <since_tizen> 3 </since_tizen>
1838         public Position PivotPoint
1839         {
1840             get
1841             {
1842 #if NUI_PROPERTY_CHANGE_DEBUG
1843 PivotPointGetter++;
1844 #endif
1845                 return (Position)GetValue(PivotPointProperty);
1846             }
1847             set
1848             {
1849 #if NUI_PROPERTY_CHANGE_DEBUG
1850 PivotPointSetter++;
1851 #endif
1852                 SetValue(PivotPointProperty, value);
1853                 NotifyPropertyChanged();
1854             }
1855         }
1856
1857         /// <summary>
1858         /// Gets or sets the size width of the view.
1859         /// </summary>
1860         /// <remarks>
1861         /// <para>
1862         /// Animatable - This property can be animated using <c>Animation</c> class.
1863         /// <code>
1864         /// animation.AnimateTo(view, "SizeWidth", 500.0f);
1865         /// </code>
1866         /// </para>
1867         /// </remarks>
1868         /// <since_tizen> 3 </since_tizen>
1869         public float SizeWidth
1870         {
1871             get
1872             {
1873 #if NUI_PROPERTY_CHANGE_DEBUG
1874 SizeWidthGetter++;
1875 #endif
1876
1877                 return (float)GetValue(SizeWidthProperty);
1878             }
1879             set
1880             {
1881 #if NUI_PROPERTY_CHANGE_DEBUG
1882 SizeWidthSetter++;
1883 #endif
1884
1885                 SetValue(SizeWidthProperty, value);
1886                 NotifyPropertyChanged();
1887             }
1888         }
1889
1890         /// <summary>
1891         /// Gets or sets the size height of the view.
1892         /// </summary>
1893         /// <remarks>
1894         /// <para>
1895         /// Animatable - This property can be animated using <c>Animation</c> class.
1896         /// </para>
1897         /// <code>
1898         /// animation.AnimateTo(view, "SizeHeight", 500.0f);
1899         /// </code>
1900         /// </remarks>
1901         /// <since_tizen> 3 </since_tizen>
1902         public float SizeHeight
1903         {
1904             get
1905             {
1906 #if NUI_PROPERTY_CHANGE_DEBUG
1907 SizeHeightGetter++;
1908 #endif
1909
1910                 return (float)GetValue(SizeHeightProperty);
1911             }
1912             set
1913             {
1914 #if NUI_PROPERTY_CHANGE_DEBUG
1915 SizeHeightSetter++;
1916 #endif
1917
1918                 SetValue(SizeHeightProperty, value);
1919                 NotifyPropertyChanged();
1920             }
1921         }
1922
1923         /// <summary>
1924         /// Gets or sets the position of the view.<br />
1925         /// By default, sets the position vector between the parent origin and pivot point (default).<br />
1926         /// If the position inheritance is disabled, sets the world position.<br />
1927         /// </summary>
1928         /// <remarks>
1929         /// <para>
1930         /// Animatable - This property can be animated using <c>Animation</c> class.
1931         /// <code>
1932         /// animation.AnimateTo(view, "Position", new Position(50, 0));
1933         /// </code>
1934         /// </para>
1935         /// The property cascade chaining set is not recommended.
1936         /// </remarks>
1937         /// <example>
1938         /// This way is recommended for setting the property
1939         /// <code>
1940         /// var view = new View();
1941         /// view.Position = new Position(100, 200.5f, 0);
1942         /// </code>
1943         /// This way to set the property is prohibited
1944         /// <code>
1945         /// view.Position.Y = 200.5f; //This does not guarantee a proper operation
1946         /// </code>
1947         /// </example>
1948         /// <since_tizen> 3 </since_tizen>
1949         public Position Position
1950         {
1951             get
1952             {
1953 #if NUI_PROPERTY_CHANGE_DEBUG
1954 PositionGetter++;
1955 #endif
1956
1957                 return (Position)GetValue(PositionProperty);
1958             }
1959             set
1960             {
1961 #if NUI_PROPERTY_CHANGE_DEBUG
1962 PositionSetter++;
1963 #endif
1964
1965                 SetValue(PositionProperty, value);
1966                 NotifyPropertyChanged();
1967             }
1968         }
1969
1970         /// <summary>
1971         /// Gets or sets the position X of the view.
1972         /// </summary>
1973         /// <remarks>
1974         /// <para>
1975         /// Animatable - This property can be animated using <c>Animation</c> class.
1976         /// <code>
1977         /// animation.AnimateTo(view, "PositionX", 50.0f);
1978         /// </code>
1979         /// </para>
1980         /// </remarks>
1981         /// <since_tizen> 3 </since_tizen>
1982         public float PositionX
1983         {
1984             get
1985             {
1986 #if NUI_PROPERTY_CHANGE_DEBUG
1987 PositionXGetter++;
1988 #endif
1989                 return (float)GetValue(PositionXProperty);
1990             }
1991             set
1992             {
1993 #if NUI_PROPERTY_CHANGE_DEBUG
1994 PositionXSetter++;
1995 #endif
1996                 SetValue(PositionXProperty, value);
1997                 NotifyPropertyChanged();
1998             }
1999         }
2000
2001         /// <summary>
2002         /// Gets or sets the position Y of the view.
2003         /// </summary>
2004         /// <remarks>
2005         /// <para>
2006         /// Animatable - This property can be animated using <c>Animation</c> class.
2007         /// <code>
2008         /// animation.AnimateTo(view, "PositionY", 50.0f);
2009         /// </code>
2010         /// </para>
2011         /// </remarks>
2012         /// <since_tizen> 3 </since_tizen>
2013         public float PositionY
2014         {
2015             get
2016             {
2017 #if NUI_PROPERTY_CHANGE_DEBUG
2018 PositionYGetter++;
2019 #endif
2020                 return (float)GetValue(PositionYProperty);
2021             }
2022             set
2023             {
2024 #if NUI_PROPERTY_CHANGE_DEBUG
2025 PositionYSetter++;
2026 #endif
2027                 SetValue(PositionYProperty, value);
2028                 NotifyPropertyChanged();
2029             }
2030         }
2031
2032         /// <summary>
2033         /// Gets or sets the position Z of the view.
2034         /// </summary>
2035         /// <remarks>
2036         /// <para>
2037         /// Animatable - This property can be animated using <c>Animation</c> class.
2038         /// <code>
2039         /// animation.AnimateTo(view, "PositionZ", 50.0f);
2040         /// </code>
2041         /// </para>
2042         /// </remarks>
2043         /// <since_tizen> 3 </since_tizen>
2044         public float PositionZ
2045         {
2046             get
2047             {
2048 #if NUI_PROPERTY_CHANGE_DEBUG
2049 PositionZGetter++;
2050 #endif
2051
2052                 return (float)GetValue(PositionZProperty);
2053             }
2054             set
2055             {
2056 #if NUI_PROPERTY_CHANGE_DEBUG
2057 PositionZSetter++;
2058 #endif
2059
2060                 SetValue(PositionZProperty, value);
2061                 NotifyPropertyChanged();
2062             }
2063         }
2064
2065         /// <summary>
2066         /// Gets or sets the world position of the view.
2067         /// </summary>
2068         /// <since_tizen> 3 </since_tizen>
2069         public Vector3 WorldPosition
2070         {
2071             get
2072             {
2073                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2074                 var pValue = GetProperty(View.Property.WorldPosition);
2075                 pValue.Get(temp);
2076                 pValue.Dispose();
2077                 return temp;
2078             }
2079         }
2080
2081         /// <summary>
2082         /// Gets or sets the orientation of the view.<br />
2083         /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2084         /// </summary>
2085         /// <remarks>
2086         /// <para>
2087         /// This is an asynchronous method.
2088         /// </para>
2089         /// <para>
2090         /// Animatable - This property can be animated using <c>Animation</c> class.
2091         /// <code>
2092         /// animation.AnimateTo(view, "Orientation", new Rotation(new Radian((float)Math.PI), Vector3.XAxis));
2093         /// </code>
2094         /// </para>
2095         /// </remarks>
2096         /// <since_tizen> 3 </since_tizen>
2097         public Rotation Orientation
2098         {
2099             get
2100             {
2101 #if NUI_PROPERTY_CHANGE_DEBUG
2102 OrientationGetter++;
2103 #endif
2104                 return (Rotation)GetValue(OrientationProperty);
2105             }
2106             set
2107             {
2108 #if NUI_PROPERTY_CHANGE_DEBUG
2109 OrientationSetter++;
2110 #endif
2111                 SetValue(OrientationProperty, value);
2112                 NotifyPropertyChanged();
2113             }
2114         }
2115
2116         /// <summary>
2117         /// Gets or sets the world orientation of the view.<br />
2118         /// </summary>
2119         /// <since_tizen> 3 </since_tizen>
2120         public Rotation WorldOrientation
2121         {
2122             get
2123             {
2124                 Rotation temp = new Rotation();
2125                 var pValue = GetProperty(View.Property.WorldOrientation);
2126                 pValue.Get(temp);
2127                 pValue.Dispose();
2128                 return temp;
2129             }
2130         }
2131
2132         /// <summary>
2133         /// Gets or sets the scale factor applied to the view.<br />
2134         /// </summary>
2135         /// <remarks>
2136         /// <para>
2137         /// Animatable - This property can be animated using <c>Animation</c> class.
2138         /// <code>
2139         /// animation.AnimateTo(view, "Scale", new Vector3(1.5f, 1.5f, 1.0f));
2140         /// </code>
2141         /// </para>
2142         /// The property cascade chaining set is not recommended.
2143         /// </remarks>
2144         /// <example>
2145         /// This way is recommended for setting the property
2146         /// <code>
2147         /// var view = new View();
2148         /// view.Scale = new Vector3(1.5f, 2.0f, 1.0f);
2149         /// </code>
2150         /// This way to set the property is prohibited
2151         /// <code>
2152         /// view.Scale.Width = 1.5f; //This does not guarantee a proper operation
2153         /// </code>
2154         /// </example>
2155         /// <since_tizen> 3 </since_tizen>
2156         public Vector3 Scale
2157         {
2158             get
2159             {
2160 #if NUI_PROPERTY_CHANGE_DEBUG
2161 ScaleGetter++;
2162 #endif
2163                 return (Vector3)GetValue(ScaleProperty);
2164             }
2165             set
2166             {
2167 #if NUI_PROPERTY_CHANGE_DEBUG
2168 ScaleSetter++;
2169 #endif
2170                 SetValue(ScaleProperty, value);
2171                 NotifyPropertyChanged();
2172             }
2173         }
2174
2175         /// <summary>
2176         /// Gets or sets the scale X factor applied to the view.
2177         /// </summary>
2178         /// <remarks>
2179         /// <para>
2180         /// Animatable - This property can be animated using <c>Animation</c> class.
2181         /// <code>
2182         /// animation.AnimateTo(view, "ScaleX", 1.5f);
2183         /// </code>
2184         /// </para>
2185         /// </remarks>
2186         /// <since_tizen> 3 </since_tizen>
2187         public float ScaleX
2188         {
2189             get
2190             {
2191 #if NUI_PROPERTY_CHANGE_DEBUG
2192 ScaleXGetter++;
2193 #endif
2194                 return (float)GetValue(ScaleXProperty);
2195             }
2196             set
2197             {
2198 #if NUI_PROPERTY_CHANGE_DEBUG
2199 ScaleXSetter++;
2200 #endif
2201                 SetValue(ScaleXProperty, value);
2202                 NotifyPropertyChanged();
2203             }
2204         }
2205
2206         /// <summary>
2207         /// Gets or sets the scale Y factor applied to the view.
2208         /// </summary>
2209         /// <remarks>
2210         /// <para>
2211         /// Animatable - This property can be animated using <c>Animation</c> class.
2212         /// <code>
2213         /// animation.AnimateTo(view, "ScaleY", 1.5f);
2214         /// </code>
2215         /// </para>
2216         /// </remarks>
2217         /// <since_tizen> 3 </since_tizen>
2218         public float ScaleY
2219         {
2220             get
2221             {
2222 #if NUI_PROPERTY_CHANGE_DEBUG
2223 ScaleYGetter++;
2224 #endif
2225                 return (float)GetValue(ScaleYProperty);
2226             }
2227             set
2228             {
2229 #if NUI_PROPERTY_CHANGE_DEBUG
2230 ScaleYSetter++;
2231 #endif
2232                 SetValue(ScaleYProperty, value);
2233                 NotifyPropertyChanged();
2234             }
2235         }
2236
2237         /// <summary>
2238         /// Gets or sets the scale Z factor applied to the view.
2239         /// </summary>
2240         /// <remarks>
2241         /// <para>
2242         /// Animatable - This property can be animated using <c>Animation</c> class.
2243         /// <code>
2244         /// animation.AnimateTo(view, "ScaleZ", 1.5f);
2245         /// </code>
2246         /// </para>
2247         /// </remarks>
2248         /// <since_tizen> 3 </since_tizen>
2249         public float ScaleZ
2250         {
2251             get
2252             {
2253 #if NUI_PROPERTY_CHANGE_DEBUG
2254 ScaleZGetter++;
2255 #endif
2256                 return (float)GetValue(ScaleZProperty);
2257             }
2258             set
2259             {
2260 #if NUI_PROPERTY_CHANGE_DEBUG
2261 ScaleZSetter++;
2262 #endif
2263                 SetValue(ScaleZProperty, value);
2264                 NotifyPropertyChanged();
2265             }
2266         }
2267
2268         /// <summary>
2269         /// Gets the world scale of the view.
2270         /// </summary>
2271         /// <since_tizen> 3 </since_tizen>
2272         public Vector3 WorldScale
2273         {
2274             get
2275             {
2276                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2277                 var pValue = GetProperty(View.Property.WorldScale);
2278                 pValue.Get(temp);
2279                 pValue.Dispose();
2280                 return temp;
2281             }
2282         }
2283
2284         /// <summary>
2285         /// Retrieves the visibility flag of the view.
2286         /// </summary>
2287         /// <remarks>
2288         /// <para>
2289         /// If the view is not visible, then the view and its children will not be rendered.
2290         /// 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.
2291         /// </para>
2292         /// <para>
2293         /// Animatable - This property can be animated using <c>Animation</c> class.
2294         /// <code>
2295         /// animation.AnimateTo(view, "Visibility", false);
2296         /// </code>
2297         /// </para>
2298         /// </remarks>
2299         /// <since_tizen> 3 </since_tizen>
2300         public bool Visibility
2301         {
2302             get
2303             {
2304                 bool temp = false;
2305                 var pValue = GetProperty(View.Property.VISIBLE);
2306                 pValue.Get(out temp);
2307                 pValue.Dispose();
2308                 return temp;
2309             }
2310         }
2311
2312         /// <summary>
2313         /// Gets the view's world color.
2314         /// </summary>
2315         /// <since_tizen> 3 </since_tizen>
2316         public Vector4 WorldColor
2317         {
2318             get
2319             {
2320                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2321                 var pValue = GetProperty(View.Property.WorldColor);
2322                 pValue.Get(temp);
2323                 pValue.Dispose();
2324                 return temp;
2325             }
2326         }
2327
2328         /// <summary>
2329         /// Gets or sets the view's name.
2330         /// </summary>
2331         /// <since_tizen> 3 </since_tizen>
2332         public string Name
2333         {
2334             get
2335             {
2336 #if NUI_PROPERTY_CHANGE_DEBUG
2337 NameGetter++;
2338 #endif
2339                 return (string)GetValue(NameProperty);
2340             }
2341             set
2342             {
2343 #if NUI_PROPERTY_CHANGE_DEBUG
2344 NameSetter++;
2345 #endif
2346                 SetValue(NameProperty, value);
2347                 NotifyPropertyChanged();
2348             }
2349         }
2350
2351         /// <summary>
2352         /// Get the number of children held by the view.
2353         /// </summary>
2354         /// <since_tizen> 3 </since_tizen>
2355         public new uint ChildCount
2356         {
2357             get
2358             {
2359                 return Convert.ToUInt32(Children.Count);
2360             }
2361         }
2362
2363         /// <summary>
2364         /// Gets the view's ID.
2365         /// Read-only
2366         /// </summary>
2367         /// <since_tizen> 3 </since_tizen>
2368         public uint ID
2369         {
2370             get
2371             {
2372                 return GetId();
2373             }
2374         }
2375
2376         /// <summary>
2377         /// Gets or sets the status of whether the view should emit touch or hover signals.
2378         /// If a View is made insensitive, then the View and its children are not hittable.
2379         /// </summary>
2380         /// <since_tizen> 3 </since_tizen>
2381         public bool Sensitive
2382         {
2383             get
2384             {
2385 #if NUI_PROPERTY_CHANGE_DEBUG
2386 SensitiveGetter++;
2387 #endif
2388                 return (bool)GetValue(SensitiveProperty);
2389             }
2390             set
2391             {
2392 #if NUI_PROPERTY_CHANGE_DEBUG
2393 SensitiveSetter++;
2394 #endif
2395                 SetValue(SensitiveProperty, value);
2396                 NotifyPropertyChanged();
2397             }
2398         }
2399
2400         /// <summary>
2401         /// Gets or sets the status of whether the view should be enabled user interactions.
2402         /// If a View is made disabled, then user interactions including touch, focus, and actiavation is disabled.
2403         /// </summary>
2404         /// <since_tizen> tizen_next </since_tizen>
2405         [EditorBrowsable(EditorBrowsableState.Never)]
2406         public bool IsEnabled
2407         {
2408             get
2409             {
2410 #if NUI_PROPERTY_CHANGE_DEBUG
2411 IsEnabledGetter++;
2412 #endif
2413                 return (bool)GetValue(IsEnabledProperty);
2414             }
2415             set
2416             {
2417 #if NUI_PROPERTY_CHANGE_DEBUG
2418 IsEnabledSetter++;
2419 #endif
2420                 SetValue(IsEnabledProperty, value);
2421                 NotifyPropertyChanged();
2422             }
2423         }
2424
2425         /// <summary>
2426         /// 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.
2427         /// </summary>
2428         /// <since_tizen> 3 </since_tizen>
2429         public bool LeaveRequired
2430         {
2431             get
2432             {
2433 #if NUI_PROPERTY_CHANGE_DEBUG
2434 LeaveRequiredGetter++;
2435 #endif
2436                 return (bool)GetValue(LeaveRequiredProperty);
2437             }
2438             set
2439             {
2440 #if NUI_PROPERTY_CHANGE_DEBUG
2441 LeaveRequiredSetter++;
2442 #endif
2443                 SetValue(LeaveRequiredProperty, value);
2444                 NotifyPropertyChanged();
2445             }
2446         }
2447
2448         /// <summary>
2449         /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2450         /// </summary>
2451         /// <since_tizen> 3 </since_tizen>
2452         public bool InheritOrientation
2453         {
2454             get
2455             {
2456                 return (bool)GetValue(InheritOrientationProperty);
2457             }
2458             set
2459             {
2460                 SetValue(InheritOrientationProperty, value);
2461                 NotifyPropertyChanged();
2462             }
2463         }
2464
2465         /// <summary>
2466         /// Gets or sets the status of whether a child view inherits it's parent's scale.
2467         /// </summary>
2468         /// <since_tizen> 3 </since_tizen>
2469         public bool InheritScale
2470         {
2471             get
2472             {
2473 #if NUI_PROPERTY_CHANGE_DEBUG
2474 InheritScaleGetter++;
2475 #endif
2476                 return (bool)GetValue(InheritScaleProperty);
2477             }
2478             set
2479             {
2480 #if NUI_PROPERTY_CHANGE_DEBUG
2481 InheritScaleSetter++;
2482 #endif
2483                 SetValue(InheritScaleProperty, value);
2484                 NotifyPropertyChanged();
2485             }
2486         }
2487
2488         /// <summary>
2489         /// Gets or sets the status of how the view and its children should be drawn.<br />
2490         /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2491         /// 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 />
2492         /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2493         /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2494         /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2495         /// </summary>
2496         /// <since_tizen> 3 </since_tizen>
2497         public DrawModeType DrawMode
2498         {
2499             get
2500             {
2501 #if NUI_PROPERTY_CHANGE_DEBUG
2502 DrawModeGetter++;
2503 #endif
2504                 return (DrawModeType)GetValue(DrawModeProperty);
2505             }
2506             set
2507             {
2508 #if NUI_PROPERTY_CHANGE_DEBUG
2509 DrawModeSetter++;
2510 #endif
2511                 SetValue(DrawModeProperty, value);
2512                 NotifyPropertyChanged();
2513             }
2514         }
2515
2516         /// <summary>
2517         /// Gets or sets the relative to parent size factor of the view.<br />
2518         /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2519         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2520         /// </summary>
2521         /// <remarks>
2522         /// The property cascade chaining set is not recommended.
2523         /// </remarks>
2524         /// <example>
2525         /// This way is recommended for setting the property
2526         /// <code>
2527         /// var text = new TextField();
2528         /// text.SizeModeFactor = new Vector3(1.0f, 0.45f, 1.0f);
2529         /// </code>
2530         /// This way to set the property is prohibited
2531         /// <code>
2532         /// text.SizeModeFactor.Width = 1.0f; //This does not guarantee a proper operation
2533         /// </code>
2534         /// </example>
2535         /// <since_tizen> 3 </since_tizen>
2536         public Vector3 SizeModeFactor
2537         {
2538             get
2539             {
2540 #if NUI_PROPERTY_CHANGE_DEBUG
2541 SizeModeFactorGetter++;
2542 #endif
2543                 return (Vector3)GetValue(SizeModeFactorProperty);
2544             }
2545             set
2546             {
2547 #if NUI_PROPERTY_CHANGE_DEBUG
2548 SizeModeFactorSetter++;
2549 #endif
2550                 SetValue(SizeModeFactorProperty, value);
2551                 NotifyPropertyChanged();
2552             }
2553         }
2554
2555         /// <summary>
2556         /// Gets or sets the width resize policy to be used.
2557         /// </summary>
2558         /// <since_tizen> 3 </since_tizen>
2559         public ResizePolicyType WidthResizePolicy
2560         {
2561             get
2562             {
2563 #if NUI_PROPERTY_CHANGE_DEBUG
2564 WidthResizePolicyGetter++;
2565 #endif
2566                 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
2567             }
2568             set
2569             {
2570 #if NUI_PROPERTY_CHANGE_DEBUG
2571 WidthResizePolicySetter++;
2572 #endif
2573                 SetValue(WidthResizePolicyProperty, value);
2574                 NotifyPropertyChanged();
2575             }
2576         }
2577
2578         /// <summary>
2579         /// Gets or sets the height resize policy to be used.
2580         /// </summary>
2581         /// <since_tizen> 3 </since_tizen>
2582         public ResizePolicyType HeightResizePolicy
2583         {
2584             get
2585             {
2586 #if NUI_PROPERTY_CHANGE_DEBUG
2587 HeightResizePolicyGetter++;
2588 #endif
2589                 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
2590             }
2591             set
2592             {
2593 #if NUI_PROPERTY_CHANGE_DEBUG
2594 HeightResizePolicySetter++;
2595 #endif
2596                 SetValue(HeightResizePolicyProperty, value);
2597                 NotifyPropertyChanged();
2598             }
2599         }
2600
2601         /// <summary>
2602         /// Gets or sets the policy to use when setting size with size negotiation.<br />
2603         /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
2604         /// </summary>
2605         /// <since_tizen> 3 </since_tizen>
2606         public SizeScalePolicyType SizeScalePolicy
2607         {
2608             get
2609             {
2610 #if NUI_PROPERTY_CHANGE_DEBUG
2611 SizeScalePolicyGetter++;
2612 #endif
2613                 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
2614             }
2615             set
2616             {
2617 #if NUI_PROPERTY_CHANGE_DEBUG
2618 SizeScalePolicySetter++;
2619 #endif
2620                 SetValue(SizeScalePolicyProperty, value);
2621                 NotifyPropertyChanged();
2622             }
2623         }
2624
2625         /// <summary>
2626         ///  Gets or sets the status of whether the width size is dependent on the height size.
2627         /// </summary>
2628         /// <since_tizen> 3 </since_tizen>
2629         public bool WidthForHeight
2630         {
2631             get
2632             {
2633 #if NUI_PROPERTY_CHANGE_DEBUG
2634 WidthForHeightGetter++;
2635 #endif
2636                 return (bool)GetValue(WidthForHeightProperty);
2637             }
2638             set
2639             {
2640 #if NUI_PROPERTY_CHANGE_DEBUG
2641 WidthForHeightSetter++;
2642 #endif
2643                 SetValue(WidthForHeightProperty, value);
2644                 NotifyPropertyChanged();
2645             }
2646         }
2647
2648         /// <summary>
2649         /// Gets or sets the status of whether the height size is dependent on the width size.
2650         /// </summary>
2651         /// <since_tizen> 3 </since_tizen>
2652         public bool HeightForWidth
2653         {
2654             get
2655             {
2656 #if NUI_PROPERTY_CHANGE_DEBUG
2657 HeightForWidthGetter++;
2658 #endif
2659                 return (bool)GetValue(HeightForWidthProperty);
2660             }
2661             set
2662             {
2663 #if NUI_PROPERTY_CHANGE_DEBUG
2664 HeightForWidthSetter++;
2665 #endif
2666                 SetValue(HeightForWidthProperty, value);
2667                 NotifyPropertyChanged();
2668             }
2669         }
2670
2671         /// <summary>
2672         /// Gets or sets the padding for use in layout.
2673         /// </summary>
2674         /// <remarks>
2675         /// The property cascade chaining set is not recommended.
2676         /// </remarks>
2677         /// <example>
2678         /// This way is recommended for setting the property
2679         /// <code>
2680         /// var view = new View();
2681         /// view.Padding = new Extents(5, 5, 5, 5);
2682         /// </code>
2683         /// This way to set the property is prohibited
2684         /// <code>
2685         /// view.Padding.Start = 5; //This does not guarantee a proper operation
2686         /// </code>
2687         /// </example>
2688         /// <since_tizen> 5 </since_tizen>
2689         public Extents Padding
2690         {
2691             get
2692             {
2693                 return (Extents)GetValue(PaddingProperty);
2694             }
2695             set
2696             {
2697                 SetValue(PaddingProperty, value);
2698                 NotifyPropertyChanged();
2699             }
2700         }
2701
2702         /// <summary>
2703         /// Gets or sets the minimum size the view can be assigned in size negotiation.
2704         /// </summary>
2705         /// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
2706         /// <remarks>
2707         /// The property cascade chaining set is not recommended.
2708         /// </remarks>
2709         /// <example>
2710         /// This way is recommended for setting the property
2711         /// <code>
2712         /// var view = new View();
2713         /// view.MinimumSize = new Size2D(100, 200);
2714         /// </code>
2715         /// This way to set the property is prohibited
2716         /// <code>
2717         /// view.MinimumSize.Width = 100; //This does not guarantee a proper operation
2718         /// </code>
2719         /// </example>
2720         /// <since_tizen> 3 </since_tizen>
2721         public Size2D MinimumSize
2722         {
2723             get
2724             {
2725 #if NUI_PROPERTY_CHANGE_DEBUG
2726 MinimumSizeGetter++;
2727 #endif
2728                 return (Size2D)GetValue(MinimumSizeProperty);
2729             }
2730             set
2731             {
2732 #if NUI_PROPERTY_CHANGE_DEBUG
2733 MinimumSizeSetter++;
2734 #endif
2735                 if (value == null)
2736                 {
2737                     throw new ArgumentNullException(nameof(value));
2738                 }
2739                 if (layout != null)
2740                 {
2741                     // Note: it only works if minimum size is >= than natural size.
2742                     // To force the size it should be done through the width&height spec or Size2D.
2743                     layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
2744                     layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
2745                     layout.RequestLayout();
2746                 }
2747                 SetValue(MinimumSizeProperty, value);
2748                 NotifyPropertyChanged();
2749             }
2750         }
2751
2752         /// <summary>
2753         /// Gets or sets the maximum size the view can be assigned in size negotiation.
2754         /// </summary>
2755         /// <example>
2756         /// This way is recommended for setting the property
2757         /// <code>
2758         /// var view = new View();
2759         /// view.MaximumSize = new Size2D(100, 200);
2760         /// </code>
2761         /// This way to set the property is prohibited
2762         /// <code>
2763         /// view.MaximumSize.Height = 200; //This does not guarantee a proper operation
2764         /// </code>
2765         /// </example>
2766         /// <since_tizen> 3 </since_tizen>
2767         public Size2D MaximumSize
2768         {
2769             get
2770             {
2771 #if NUI_PROPERTY_CHANGE_DEBUG
2772 MaximumSizeGetter++;
2773 #endif
2774                 return (Size2D)GetValue(MaximumSizeProperty);
2775             }
2776             set
2777             {
2778 #if NUI_PROPERTY_CHANGE_DEBUG
2779 MaximumSizeSetter++;
2780 #endif
2781                 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
2782                 // MATCH_PARENT spec + parent container size can be used to limit
2783                 if (layout != null)
2784                 {
2785                     layout.RequestLayout();
2786                 }
2787                 SetValue(MaximumSizeProperty, value);
2788                 NotifyPropertyChanged();
2789             }
2790         }
2791
2792         /// <summary>
2793         /// Gets or sets whether a child view inherits it's parent's position.<br />
2794         /// Default is to inherit.<br />
2795         /// 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 />
2796         /// </summary>
2797         /// <since_tizen> 3 </since_tizen>
2798         public bool InheritPosition
2799         {
2800             get
2801             {
2802 #if NUI_PROPERTY_CHANGE_DEBUG
2803 InheritPositionGetter++;
2804 #endif
2805                 return (bool)GetValue(InheritPositionProperty);
2806             }
2807             set
2808             {
2809 #if NUI_PROPERTY_CHANGE_DEBUG
2810 InheritPositionSetter++;
2811 #endif
2812                 SetValue(InheritPositionProperty, value);
2813                 NotifyPropertyChanged();
2814             }
2815         }
2816
2817         /// <summary>
2818         /// Gets or sets the clipping behavior (mode) of it's children.
2819         /// </summary>
2820         /// <since_tizen> 3 </since_tizen>
2821         public ClippingModeType ClippingMode
2822         {
2823             get
2824             {
2825 #if NUI_PROPERTY_CHANGE_DEBUG
2826 ClippingModeGetter++;
2827 #endif
2828                 return (ClippingModeType)GetValue(ClippingModeProperty);
2829             }
2830             set
2831             {
2832 #if NUI_PROPERTY_CHANGE_DEBUG
2833 ClippingModeSetter++;
2834 #endif
2835                 SetValue(ClippingModeProperty, value);
2836                 NotifyPropertyChanged();
2837             }
2838         }
2839
2840         /// <summary>
2841         /// Gets the number of renderers held by the view.
2842         /// </summary>
2843         /// <since_tizen> 3 </since_tizen>
2844         public uint RendererCount
2845         {
2846             get
2847             {
2848                 return GetRendererCount();
2849             }
2850         }
2851
2852         /// <summary>
2853         /// This has been deprecated in API5 and will be removed in API8. Use PivotPoint instead.
2854         /// </summary>
2855         /// <remarks>
2856         /// The property cascade chaining set is possible. For example, this (view.AnchorPoint.X = 0.1f;) is possible.
2857         /// </remarks>
2858         /// <since_tizen> 3 </since_tizen>
2859         [Obsolete("This has been deprecated in API5 and will be removed in API8. Use PivotPoint instead. " +
2860             "Like: " +
2861             "View view = new View(); " +
2862             "view.PivotPoint = PivotPoint.Center; " +
2863             "view.PositionUsesPivotPoint = true;")]
2864         [EditorBrowsable(EditorBrowsableState.Never)]
2865         public Position AnchorPoint
2866         {
2867             get
2868             {
2869                 return GetValue(AnchorPointProperty) as Position;
2870             }
2871             set
2872             {
2873                 SetValue(AnchorPointProperty, value);
2874             }
2875         }
2876
2877         private Position InternalAnchorPoint
2878         {
2879             get
2880             {
2881                 Position temp = new Position(0.0f, 0.0f, 0.0f);
2882                 var pValue = GetProperty(View.Property.AnchorPoint);
2883                 pValue.Get(temp);
2884                 pValue.Dispose();
2885                 Position ret = new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
2886                 temp.Dispose();
2887                 return ret;
2888             }
2889             set
2890             {
2891                 var temp = new Tizen.NUI.PropertyValue(value);
2892                 SetProperty(View.Property.AnchorPoint, temp);
2893                 temp.Dispose();
2894                 NotifyPropertyChanged();
2895             }
2896         }
2897
2898         /// <summary>
2899         /// Sets the size of a view for the width, the height and the depth.<br />
2900         /// Geometry can be scaled to fit within this area.<br />
2901         /// This does not interfere with the view's scale factor.<br />
2902         /// The views default depth is the minimum of width and height.<br />
2903         /// </summary>
2904         /// <remarks>
2905         /// <para>
2906         /// Animatable - This property can be animated using <c>Animation</c> class.
2907         /// <code>
2908         /// animation.AnimateTo(view, "Size", new Size(100, 100));
2909         /// </code>
2910         /// </para>
2911         /// The property cascade chaining set is not recommended.
2912         /// </remarks>
2913         /// <example>
2914         /// This way is recommended for setting the property
2915         /// <code>
2916         /// var view = new View();
2917         /// view.Size = new Size(100.5f, 200, 0);
2918         /// </code>
2919         /// This way to set the property is prohibited
2920         /// <code>
2921         /// view.Size.Width = 100.5f; //This does not guarantee a proper operation
2922         /// </code>
2923         /// </example>
2924         /// <since_tizen> 5 </since_tizen>
2925         public Size Size
2926         {
2927             get
2928             {
2929 #if NUI_PROPERTY_CHANGE_DEBUG
2930 SizeGetter++;
2931 #endif
2932                 return (Size)GetValue(SizeProperty);
2933             }
2934             set
2935             {
2936 #if NUI_PROPERTY_CHANGE_DEBUG
2937 SizeSetter++;
2938 #endif
2939                 SetValue(SizeProperty, value);
2940                 NotifyPropertyChanged();
2941             }
2942         }
2943
2944         /// <summary>
2945         /// This has been deprecated in API5 and will be removed in API8. Use 'Container GetParent() for derived class' instead.
2946         /// </summary>
2947         /// <since_tizen> 3 </since_tizen>
2948         [Obsolete("This has been deprecated in API5 and will be removed in API8. Use 'Container GetParent() for derived class' instead. " +
2949             "Like: " +
2950             "Container parent =  view.GetParent(); " +
2951             "View view = parent as View;")]
2952         [EditorBrowsable(EditorBrowsableState.Never)]
2953         public new View Parent
2954         {
2955             get
2956             {
2957                 View ret;
2958                 IntPtr cPtr = Interop.Actor.GetParent(SwigCPtr);
2959                 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
2960                 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
2961
2962                 if (basehandle is Layer layer)
2963                 {
2964                     ret = new View(Layer.getCPtr(layer).Handle, false);
2965                     NUILog.Error("This Parent property is deprecated, should do not be used");
2966                 }
2967                 else
2968                 {
2969                     ret = basehandle as View;
2970                 }
2971
2972                 Interop.BaseHandle.DeleteBaseHandle(CPtr);
2973                 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2974
2975                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
2976                 return ret;
2977             }
2978         }
2979
2980         /// <summary>
2981         /// Gets/Sets whether inherit parent's the layout Direction.
2982         /// </summary>
2983         /// <since_tizen> 4 </since_tizen>
2984         public bool InheritLayoutDirection
2985         {
2986             get
2987             {
2988 #if NUI_PROPERTY_CHANGE_DEBUG
2989 InheritLayoutDirectionGetter++;
2990 #endif
2991                 return (bool)GetValue(InheritLayoutDirectionProperty);
2992             }
2993             set
2994             {
2995 #if NUI_PROPERTY_CHANGE_DEBUG
2996 InheritLayoutDirectionSetter++;
2997 #endif
2998                 SetValue(InheritLayoutDirectionProperty, value);
2999                 NotifyPropertyChanged();
3000             }
3001         }
3002
3003         /// <summary>
3004         /// Gets/Sets the layout Direction.
3005         /// </summary>
3006         /// <since_tizen> 4 </since_tizen>
3007         public ViewLayoutDirectionType LayoutDirection
3008         {
3009             get
3010             {
3011 #if NUI_PROPERTY_CHANGE_DEBUG
3012 LayoutDirectionGetter++;
3013 #endif
3014                 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3015             }
3016             set
3017             {
3018 #if NUI_PROPERTY_CHANGE_DEBUG
3019 LayoutDirectionSetter++;
3020 #endif
3021                 SetValue(LayoutDirectionProperty, value);
3022                 NotifyPropertyChanged();
3023                 layout?.RequestLayout();
3024             }
3025         }
3026
3027         /// <summary>
3028         /// Gets or sets the Margin for use in layout.
3029         /// </summary>
3030         /// <remarks>
3031         /// Margin property is supported by Layout algorithms and containers.
3032         /// Please Set Layout if you want to use Margin property.
3033         /// The property cascade chaining set is not recommended.
3034         /// </remarks>
3035         /// <example>
3036         /// This way is recommended for setting the property
3037         /// <code>
3038         /// var view = new View();
3039         /// view.Margin = new Extents(10, 5, 15, 20);
3040         /// </code>
3041         /// This way to set the property is prohibited
3042         /// <code>
3043         /// view.Margin.Top = 15; //This does not guarantee a proper operation
3044         /// </code>
3045         /// </example>
3046         /// <since_tizen> 4 </since_tizen>
3047         public Extents Margin
3048         {
3049             get
3050             {
3051                 return (Extents)GetValue(MarginProperty);
3052             }
3053             set
3054             {
3055                 SetValue(MarginProperty, value);
3056                 NotifyPropertyChanged();
3057             }
3058         }
3059
3060         ///<summary>
3061         /// The required policy for this dimension, <see cref="LayoutParamPolicies"/> values or exact value.
3062         ///</summary>
3063         /// <example>
3064         /// <code>
3065         /// // matchParentView matches its size to its parent size.
3066         /// matchParentView.WidthSpecification = LayoutParamPolicies.MatchParent;
3067         /// matchParentView.HeightSpecification = LayoutParamPolicies.MatchParent;
3068         ///
3069         /// // wrapContentView wraps its children with their desired size.
3070         /// wrapContentView.WidthSpecification = LayoutParamPolicies.WrapContent;
3071         /// wrapContentView.HeightSpecification = LayoutParamPolicies.WrapContent;
3072         ///
3073         /// // exactSizeView shows itself with an exact size.
3074         /// exactSizeView.WidthSpecification = 100;
3075         /// exactSizeView.HeightSpecification = 100;
3076         /// </code>
3077         /// </example>
3078         /// <since_tizen> 6 </since_tizen>
3079         [Binding.TypeConverter(typeof(IntGraphicsTypeConverter))]
3080         public int WidthSpecification
3081         {
3082             get
3083             {
3084                 return (int)GetValue(WidthSpecificationProperty);
3085             }
3086             set
3087             {
3088                 SetValue(WidthSpecificationProperty, value);
3089                 NotifyPropertyChanged();
3090             }
3091         }
3092
3093         private int InternalWidthSpecification
3094         {
3095             get
3096             {
3097                 return widthPolicy;
3098             }
3099             set
3100             {
3101                 if (value == widthPolicy)
3102                     return;
3103
3104                 widthPolicy = value;
3105                 if (widthPolicy >= 0)
3106                 {
3107                     if (heightPolicy >= 0) // Policy an exact value
3108                     {
3109                         // Create Size2D only both _widthPolicy and _heightPolicy are set.
3110                         Size2D = new Size2D(widthPolicy, heightPolicy);
3111                     }
3112                 }
3113                 layout?.RequestLayout();
3114             }
3115         }
3116
3117         ///<summary>
3118         /// The required policy for this dimension, <see cref="LayoutParamPolicies"/> values or exact value.
3119         ///</summary>
3120         /// <example>
3121         /// <code>
3122         /// // matchParentView matches its size to its parent size.
3123         /// matchParentView.WidthSpecification = LayoutParamPolicies.MatchParent;
3124         /// matchParentView.HeightSpecification = LayoutParamPolicies.MatchParent;
3125         ///
3126         /// // wrapContentView wraps its children with their desired size.
3127         /// wrapContentView.WidthSpecification = LayoutParamPolicies.WrapContent;
3128         /// wrapContentView.HeightSpecification = LayoutParamPolicies.WrapContent;
3129         ///
3130         /// // exactSizeView shows itself with an exact size.
3131         /// exactSizeView.WidthSpecification = 100;
3132         /// exactSizeView.HeightSpecification = 100;
3133         /// </code>
3134         /// </example>
3135         /// <since_tizen> 6 </since_tizen>
3136         [Binding.TypeConverter(typeof(IntGraphicsTypeConverter))]
3137         public int HeightSpecification
3138         {
3139             get
3140             {
3141                 return (int)GetValue(HeightSpecificationProperty);
3142             }
3143             set
3144             {
3145                 SetValue(HeightSpecificationProperty, value);
3146                 NotifyPropertyChanged();
3147             }
3148         }
3149
3150         private int InternalHeightSpecification
3151         {
3152             get
3153             {
3154                 return heightPolicy;
3155             }
3156             set
3157             {
3158                 if (value == heightPolicy)
3159                     return;
3160
3161                 heightPolicy = value;
3162                 if (heightPolicy >= 0)
3163                 {
3164                     if (widthPolicy >= 0) // Policy an exact value
3165                     {
3166                         // Create Size2D only both _widthPolicy and _heightPolicy are set.
3167                         Size2D = new Size2D(widthPolicy, heightPolicy);
3168                     }
3169                 }
3170                 layout?.RequestLayout();
3171             }
3172         }
3173
3174         ///<summary>
3175         /// Gets the List of transitions for this View.
3176         ///</summary>
3177         /// <since_tizen> 6 </since_tizen>
3178         public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3179         {
3180             get
3181             {
3182                 if (layoutTransitions == null)
3183                 {
3184                     layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3185                 }
3186                 return layoutTransitions;
3187             }
3188         }
3189
3190         ///<summary>
3191         /// Sets a layout transitions for this View.
3192         ///</summary>
3193         /// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
3194         /// <remarks>
3195         /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
3196         /// </remarks>
3197         /// <since_tizen> 6 </since_tizen>
3198         public LayoutTransition LayoutTransition
3199         {
3200             get
3201             {
3202                 return GetValue(LayoutTransitionProperty) as LayoutTransition;
3203             }
3204             set
3205             {
3206                 SetValue(LayoutTransitionProperty, value);
3207                 NotifyPropertyChanged();
3208             }
3209         }
3210
3211         private LayoutTransition InternalLayoutTransition
3212         {
3213             get
3214             {
3215                 return layoutTransition;
3216             }
3217             set
3218             {
3219                 if (value == null)
3220                 {
3221                     throw new global::System.ArgumentNullException(nameof(value));
3222                 }
3223                 if (layoutTransitions == null)
3224                 {
3225                     layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3226                 }
3227
3228                 LayoutTransitionsHelper.AddTransitionForCondition(layoutTransitions, value.Condition, value, true);
3229
3230                 AttachTransitionsToChildren(value);
3231
3232                 layoutTransition = value;
3233             }
3234         }
3235
3236         /// <summary>
3237         /// This has been deprecated in API5 and will be removed in API8. Use Padding instead.
3238         /// </summary>
3239         /// <remarks>
3240         /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
3241         /// </remarks>
3242         /// <since_tizen> 4 </since_tizen>
3243         [Obsolete("This has been deprecated in API5 and will be removed in API8. Use Padding instead.")]
3244         [EditorBrowsable(EditorBrowsableState.Never)]
3245         public Extents PaddingEX
3246         {
3247             get
3248             {
3249                 return GetValue(PaddingEXProperty) as Extents;
3250             }
3251             set
3252             {
3253                 SetValue(PaddingEXProperty, value);
3254             }
3255         }
3256
3257         private Extents InternalPaddingEX
3258         {
3259             get
3260             {
3261                 Extents temp = new Extents(0, 0, 0, 0);
3262                 var pValue = GetProperty(View.Property.PADDING);
3263                 pValue.Get(temp);
3264                 pValue.Dispose();
3265                 Extents ret = new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
3266                 temp.Dispose();
3267                 return ret;
3268             }
3269             set
3270             {
3271                 var temp = new Tizen.NUI.PropertyValue(value);
3272                 SetProperty(View.Property.PADDING, temp);
3273                 temp.Dispose();
3274                 NotifyPropertyChanged();
3275                 layout?.RequestLayout();
3276             }
3277         }
3278
3279         /// <summary>
3280         /// The Color of View. This is an RGBA value.
3281         /// Each RGBA components match as <see cref="ColorRed"/>, <see cref="ColorGreen"/>, <see cref="ColorBlue"/>, and <see cref="Opacity"/>.
3282         /// This property will multiply the final color of this view. (BackgroundColor, BorderlineColor, BackgroundImage, etc).
3283         /// For example, if view.BackgroundColor = Color.Yellow and view.Color = Color.Purple, this view will shown as Red.
3284         /// Inherient of color value depend on <see cref="ColorMode"/>.
3285         /// </summary>
3286         /// <remarks>
3287         /// <para>
3288         /// Animatable - This property can be animated using <c>Animation</c> class.
3289         /// </para>
3290         /// The property cascade chaining set is not recommended.
3291         /// </remarks>
3292         /// <example>
3293         /// This way is recommended for setting the property
3294         /// <code>
3295         /// var view = new View();
3296         /// view.Color = new Color(0.5f, 0.2f, 0.1f, 0.5f);
3297         /// </code>
3298         /// This way to set the property is prohibited
3299         /// <code>
3300         /// view.Color.A = 0.5f; //This does not guarantee a proper operation
3301         /// </code>
3302         /// </example>
3303         [EditorBrowsable(EditorBrowsableState.Never)]
3304         public Color Color
3305         {
3306             get
3307             {
3308 #if NUI_PROPERTY_CHANGE_DEBUG
3309 ColorGetter++;
3310 #endif
3311                 return (Color)GetValue(ColorProperty);
3312             }
3313             set
3314             {
3315 #if NUI_PROPERTY_CHANGE_DEBUG
3316 ColorSetter++;
3317 #endif
3318                 SetValue(ColorProperty, value);
3319                 NotifyPropertyChanged();
3320             }
3321         }
3322
3323         /// <summary>
3324         /// The Red component of View.Color.
3325         /// </summary>
3326         /// <remarks>
3327         /// <para>
3328         /// Animatable - This property can be animated using <c>Animation</c> class.
3329         /// </para>
3330         /// </remarks>
3331         [EditorBrowsable(EditorBrowsableState.Never)]
3332         public float ColorRed
3333         {
3334             get
3335             {
3336 #if NUI_PROPERTY_CHANGE_DEBUG
3337 ColorRedGetter++;
3338 #endif
3339                 return (float)GetValue(ColorRedProperty);
3340             }
3341             set
3342             {
3343 #if NUI_PROPERTY_CHANGE_DEBUG
3344 ColorRedSetter++;
3345 #endif
3346                 SetValue(ColorRedProperty, value);
3347                 NotifyPropertyChanged();
3348             }
3349         }
3350
3351         /// <summary>
3352         /// The Green component of View.Color.
3353         /// </summary>
3354         /// <remarks>
3355         /// <para>
3356         /// Animatable - This property can be animated using <c>Animation</c> class.
3357         /// </para>
3358         /// </remarks>
3359         [EditorBrowsable(EditorBrowsableState.Never)]
3360         public float ColorGreen
3361         {
3362             get
3363             {
3364 #if NUI_PROPERTY_CHANGE_DEBUG
3365 ColorGreenGetter++;
3366 #endif
3367                 return (float)GetValue(ColorGreenProperty);
3368             }
3369             set
3370             {
3371 #if NUI_PROPERTY_CHANGE_DEBUG
3372 ColorGreenSetter++;
3373 #endif
3374                 SetValue(ColorGreenProperty, value);
3375                 NotifyPropertyChanged();
3376             }
3377         }
3378
3379         /// <summary>
3380         /// The Blue component of View.Color.
3381         /// </summary>
3382         /// <remarks>
3383         /// <para>
3384         /// Animatable - This property can be animated using <c>Animation</c> class.
3385         /// </para>
3386         /// </remarks>
3387         [EditorBrowsable(EditorBrowsableState.Never)]
3388         public float ColorBlue
3389         {
3390             get
3391             {
3392 #if NUI_PROPERTY_CHANGE_DEBUG
3393 ColorBlueGetter++;
3394 #endif
3395                 return (float)GetValue(ColorBlueProperty);
3396             }
3397             set
3398             {
3399 #if NUI_PROPERTY_CHANGE_DEBUG
3400 ColorBlueSetter++;
3401 #endif
3402                 SetValue(ColorBlueProperty, value);
3403                 NotifyPropertyChanged();
3404             }
3405         }
3406
3407         /// <summary>
3408         /// Set the layout on this View. Replaces any existing Layout.
3409         /// </summary>
3410         /// <remarks>
3411         /// If this Layout is set as null explicitly, it means this View itself and it's child Views will not use Layout anymore.
3412         /// </remarks>
3413         /// <since_tizen> 6 </since_tizen>
3414         public LayoutItem Layout
3415         {
3416             get
3417             {
3418                 return GetValue(LayoutProperty) as LayoutItem;
3419             }
3420             set
3421             {
3422                 SetValue(LayoutProperty, value);
3423             }
3424         }
3425
3426         private LayoutItem InternalLayout
3427         {
3428             get
3429             {
3430                 return layout;
3431             }
3432             set
3433             {
3434                 // Do nothing if layout provided is already set on this View.
3435                 if (value == layout)
3436                 {
3437                     return;
3438                 }
3439
3440                 LayoutingDisabled = false;
3441                 layoutSet = true;
3442
3443                 // If new layout being set already has a owner then that owner receives a replacement default layout.
3444                 // First check if the layout to be set already has a owner.
3445                 if (value?.Owner != null)
3446                 {
3447                     // Previous owner of the layout gets a default layout as a replacement.
3448                     value.Owner.Layout = new AbsoluteLayout()
3449                     {
3450                         // Copy Margin and Padding to replacement LayoutGroup.
3451                         Margin = value.Margin,
3452                         Padding = value.Padding,
3453                     };
3454                 }
3455
3456                 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3457                 // View if no replacement. Previously margin and padding values would have been moved from
3458                 // the View to the layout.
3459                 if (layout != null) // Existing layout
3460                 {
3461                     if (value != null)
3462                     {
3463                         // Existing layout being replaced so copy over margin and padding values.
3464                         value.Margin = layout.Margin;
3465                         value.Padding = layout.Padding;
3466                         value.SetPositionByLayout = !excludeLayouting;
3467                     }
3468                     else
3469                     {
3470                         // Layout not being replaced so restore margin and padding to View.
3471                         SetValue(MarginProperty, layout.Margin);
3472                         SetValue(PaddingProperty, layout.Padding);
3473                         NotifyPropertyChanged();
3474                     }
3475                 }
3476                 else
3477                 {
3478                     // First Layout to be added to the View hence copy
3479
3480                     // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3481                     if (value != null)
3482                     {
3483                         Extents margin = Margin;
3484                         Extents padding = Padding;
3485                         bool setMargin = false;
3486                         bool setPadding = false;
3487
3488                         if (margin.Top != 0 || margin.Bottom != 0 || margin.Start != 0 || margin.End != 0)
3489                         {
3490                             // If View already has a margin set then store it in Layout instead.
3491                             value.Margin = margin;
3492                             SetValue(MarginProperty, new Extents(0, 0, 0, 0));
3493                             setMargin = true;
3494                         }
3495
3496                         if (padding.Top != 0 || padding.Bottom != 0 || padding.Start != 0 || padding.End != 0)
3497                         {
3498                             // If View already has a padding set then store it in Layout instead.
3499                             value.Padding = padding;
3500                             SetValue(PaddingProperty, new Extents(0, 0, 0, 0));
3501                             setPadding = true;
3502                         }
3503
3504                         if (setMargin || setPadding)
3505                         {
3506                             NotifyPropertyChanged();
3507                         }
3508
3509                         value.SetPositionByLayout = !excludeLayouting;
3510                     }
3511                 }
3512
3513                 // Remove existing layout from it's parent layout group.
3514                 layout?.Unparent();
3515
3516                 // Set layout to this view
3517                 SetLayout(value);
3518             }
3519         }
3520
3521         /// <summary>
3522         /// The weight of the View, used to share available space in a layout with siblings.
3523         /// </summary>
3524         /// <since_tizen> 6 </since_tizen>
3525         public float Weight
3526         {
3527             get
3528             {
3529                 return weight;
3530             }
3531             set
3532             {
3533                 weight = value;
3534                 layout?.RequestLayout();
3535             }
3536         }
3537
3538         /// <summary>
3539         ///  Whether to load the BackgroundImage synchronously.
3540         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3541         ///  Note: For Normal Quad images only.
3542         /// </summary>
3543         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3544         [EditorBrowsable(EditorBrowsableState.Never)]
3545         public bool BackgroundImageSynchronosLoading
3546         {
3547             get
3548             {
3549                 return (bool)GetValue(BackgroundImageSynchronosLoadingProperty);
3550             }
3551             set
3552             {
3553                 SetValue(BackgroundImageSynchronosLoadingProperty, value);
3554                 NotifyPropertyChanged();
3555             }
3556         }
3557
3558         private bool InternalBackgroundImageSynchronosLoading
3559         {
3560             get
3561             {
3562                 return BackgroundImageSynchronousLoading;
3563             }
3564             set
3565             {
3566                 BackgroundImageSynchronousLoading = value;
3567             }
3568         }
3569
3570         /// <summary>
3571         ///  Whether to load the BackgroundImage synchronously.
3572         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3573         ///  Note: For Normal Quad images only.
3574         /// </summary>
3575         /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3576         [EditorBrowsable(EditorBrowsableState.Never)]
3577         public bool BackgroundImageSynchronousLoading
3578         {
3579             get
3580             {
3581                 return (bool)GetValue(BackgroundImageSynchronousLoadingProperty);
3582             }
3583             set
3584             {
3585                 SetValue(BackgroundImageSynchronousLoadingProperty, value);
3586                 NotifyPropertyChanged();
3587             }
3588         }
3589
3590         private bool InternalBackgroundImageSynchronousLoading
3591         {
3592             get
3593             {
3594                 return backgroundImageSynchronousLoading;
3595             }
3596             set
3597             {
3598                 backgroundImageSynchronousLoading = value;
3599
3600                 string bgUrl = null;
3601                 var pValue = Background.Find(ImageVisualProperty.URL);
3602                 pValue?.Get(out bgUrl);
3603                 pValue?.Dispose();
3604
3605                 if (!string.IsNullOrEmpty(bgUrl))
3606                 {
3607                     PropertyMap bgMap = this.Background;
3608                     var temp = new PropertyValue(backgroundImageSynchronousLoading);
3609                     bgMap[ImageVisualProperty.SynchronousLoading] = temp;
3610                     temp.Dispose();
3611                     Background = bgMap;
3612                 }
3613             }
3614         }
3615
3616         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3617         [EditorBrowsable(EditorBrowsableState.Never)]
3618         public Vector4 UpdateAreaHint
3619         {
3620             get
3621             {
3622 #if NUI_PROPERTY_CHANGE_DEBUG
3623 UpdateAreaHintGetter++;
3624 #endif
3625                 return (Vector4)GetValue(UpdateAreaHintProperty);
3626             }
3627             set
3628             {
3629 #if NUI_PROPERTY_CHANGE_DEBUG
3630 UpdateAreaHintSetter++;
3631 #endif
3632                 SetValue(UpdateAreaHintProperty, value);
3633                 NotifyPropertyChanged();
3634             }
3635         }
3636
3637         /// <summary>
3638         /// Enable/Disable ControlState propagation for children.
3639         /// It is false by default.
3640         /// If the View needs to share ControlState with descendants, please set it true.
3641         /// Please note that, changing the value will also changes children's EnableControlStatePropagation value recursively.
3642         /// </summary>
3643         [EditorBrowsable(EditorBrowsableState.Never)]
3644         public bool EnableControlStatePropagation
3645         {
3646             get
3647             {
3648                 return (bool)GetValue(EnableControlStatePropagationProperty);
3649             }
3650             set
3651             {
3652                 SetValue(EnableControlStatePropagationProperty, value);
3653                 NotifyPropertyChanged();
3654             }
3655         }
3656
3657         private bool InternalEnableControlStatePropagation
3658         {
3659             get => themeData?.ControlStatePropagation ?? false;
3660             set
3661             {
3662                 if (InternalEnableControlStatePropagation == value) return;
3663
3664                 if (themeData == null) themeData = new ThemeData();
3665
3666                 themeData.ControlStatePropagation = value;
3667
3668                 foreach (View child in Children)
3669                 {
3670                     child.EnableControlStatePropagation = value;
3671                 }
3672             }
3673         }
3674
3675         /// <summary>
3676         /// The ControlStates can propagate from the parent.
3677         /// Listed ControlStates will be accepted propagation of the parent ControlState changes
3678         /// if parent view EnableControlState is true.
3679         /// <see cref="EnableControlState"/>.
3680         /// Default is ControlState.All, so every ControlStates will be propagated from the parent.
3681         /// </summary>
3682         [EditorBrowsable(EditorBrowsableState.Never)]
3683         public ControlState PropagatableControlStates
3684         {
3685             get
3686             {
3687                 return (ControlState)GetValue(PropagatableControlStatesProperty);
3688             }
3689             set
3690             {
3691                 SetValue(PropagatableControlStatesProperty, value);
3692                 NotifyPropertyChanged();
3693             }
3694         }
3695
3696         private ControlState InternalPropagatableControlStates
3697         {
3698             get => propagatableControlStates;
3699             set => propagatableControlStates = value;
3700         }
3701
3702         /// <summary>
3703         /// By default, it is false in View, true in Control.
3704         /// Note that if the value is true, the View will be a touch receptor.
3705         /// </summary>
3706         [EditorBrowsable(EditorBrowsableState.Never)]
3707         public bool EnableControlState
3708         {
3709             get
3710             {
3711                 return (bool)GetValue(EnableControlStateProperty);
3712             }
3713             set
3714             {
3715                 SetValue(EnableControlStateProperty, value);
3716             }
3717         }
3718
3719         /// <summary>
3720         /// Whether the actor grab all touches even if touch leaves its boundary.
3721         /// </summary>
3722         /// <returns>true, if it grab all touch after start</returns>
3723         [EditorBrowsable(EditorBrowsableState.Never)]
3724         public bool GrabTouchAfterLeave
3725         {
3726             get
3727             {
3728                 return (bool)GetValue(GrabTouchAfterLeaveProperty);
3729             }
3730             set
3731             {
3732                 SetValue(GrabTouchAfterLeaveProperty, value);
3733             }
3734         }
3735
3736         private bool InternalGrabTouchAfterLeave
3737         {
3738             get
3739             {
3740                 bool temp = false;
3741                 var pValue = GetProperty(View.Property.CaptureAllTouchAfterStart);
3742                 pValue.Get(out temp);
3743                 pValue.Dispose();
3744                 return temp;
3745             }
3746             set
3747             {
3748                 var temp = new Tizen.NUI.PropertyValue(value);
3749                 SetProperty(View.Property.CaptureAllTouchAfterStart, temp);
3750                 temp.Dispose();
3751                 NotifyPropertyChanged();
3752             }
3753         }
3754
3755         /// <summary>
3756         /// Whether the view will only receive own touch.
3757         /// </summary>
3758         /// <returns>true, if it only receives touches that started from itself.</returns>
3759         [EditorBrowsable(EditorBrowsableState.Never)]
3760         public bool AllowOnlyOwnTouch
3761         {
3762             get
3763             {
3764                 return (bool)GetValue(AllowOnlyOwnTouchProperty);
3765             }
3766             set
3767             {
3768                 SetValue(AllowOnlyOwnTouchProperty, value);
3769             }
3770         }
3771
3772         private bool InternalAllowOnlyOwnTouch
3773         {
3774             get
3775             {
3776                 bool temp = false;
3777                 var pValue = GetProperty(View.Property.AllowOnlyOwnTouch);
3778                 pValue.Get(out temp);
3779                 pValue.Dispose();
3780                 return temp;
3781             }
3782             set
3783             {
3784                 var temp = new Tizen.NUI.PropertyValue(value);
3785                 SetProperty(View.Property.AllowOnlyOwnTouch, temp);
3786                 temp.Dispose();
3787                 NotifyPropertyChanged();
3788             }
3789         }
3790
3791         /// <summary>
3792         /// Determines which blend equation will be used to render renderers of this actor.
3793         /// </summary>
3794         /// <returns>blend equation enum currently assigned</returns>
3795         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
3796         [EditorBrowsable(EditorBrowsableState.Never)]
3797         public BlendEquationType BlendEquation
3798         {
3799             get
3800             {
3801                 return (BlendEquationType)GetValue(BlendEquationProperty);
3802             }
3803             set
3804             {
3805                 SetValue(BlendEquationProperty, value);
3806             }
3807         }
3808
3809         private BlendEquationType InternalBlendEquation
3810         {
3811             get
3812             {
3813                 int temp = 0;
3814                 var pValue = GetProperty(View.Property.BlendEquation);
3815                 pValue.Get(out temp);
3816                 pValue.Dispose();
3817                 return (BlendEquationType)temp;
3818             }
3819             set
3820             {
3821                 var temp = new Tizen.NUI.PropertyValue((int)value);
3822                 SetProperty(View.Property.BlendEquation, temp);
3823                 temp.Dispose();
3824                 NotifyPropertyChanged();
3825             }
3826         }
3827
3828         /// <summary>
3829         /// If the value is true, the View will change its style as the theme changes.
3830         /// The default value is false in normal case but it can be true when the NUIApplication is created with <see cref="NUIApplication.ThemeOptions.ThemeChangeSensitive"/>.
3831         /// </summary>
3832         /// <since_tizen> 9 </since_tizen>
3833         public bool ThemeChangeSensitive
3834         {
3835             get => (bool)GetValue(ThemeChangeSensitiveProperty);
3836             set => SetValue(ThemeChangeSensitiveProperty, value);
3837         }
3838
3839         /// <summary>
3840         /// Create Style, it is abstract function and must be override.
3841         /// </summary>
3842         [EditorBrowsable(EditorBrowsableState.Never)]
3843         protected virtual ViewStyle CreateViewStyle()
3844         {
3845             return new ViewStyle();
3846         }
3847
3848         /// <summary>
3849         /// Called after the View's ControlStates changed.
3850         /// </summary>
3851         /// <param name="controlStateChangedInfo">The information including state changed variables.</param>
3852         [EditorBrowsable(EditorBrowsableState.Never)]
3853         protected virtual void OnControlStateChanged(ControlStateChangedEventArgs controlStateChangedInfo)
3854         {
3855         }
3856
3857         /// <summary>
3858         /// </summary>
3859         [EditorBrowsable(EditorBrowsableState.Never)]
3860         protected virtual void OnThemeChanged(object sender, ThemeChangedEventArgs e)
3861         {
3862             isThemeChanged = true;
3863             if (string.IsNullOrEmpty(styleName)) ApplyStyle(ThemeManager.GetUpdateStyleWithoutClone(GetType()));
3864             else ApplyStyle(ThemeManager.GetUpdateStyleWithoutClone(styleName));
3865             isThemeChanged = false;
3866         }
3867
3868         /// <summary>
3869         /// Apply style instance to the view.
3870         /// Basically it sets the bindable property to the value of the bindable property with same name in the style.
3871         /// </summary>
3872         /// <since_tizen> 9 </since_tizen>
3873         public virtual void ApplyStyle(ViewStyle viewStyle)
3874         {
3875             if (viewStyle == null || themeData?.viewStyle == viewStyle) return;
3876
3877             if (themeData == null) themeData = new ThemeData();
3878
3879             themeData.viewStyle = viewStyle;
3880
3881             if (viewStyle.DirtyProperties == null || viewStyle.DirtyProperties.Count == 0)
3882             {
3883                 // Nothing to apply
3884                 return;
3885             }
3886
3887             BindableProperty.GetBindablePropertysOfType(GetType(), out var bindablePropertyOfView);
3888
3889             if (bindablePropertyOfView == null)
3890             {
3891                 return;
3892             }
3893
3894             var dirtyStyleProperties = new BindableProperty[viewStyle.DirtyProperties.Count];
3895             viewStyle.DirtyProperties.CopyTo(dirtyStyleProperties);
3896
3897             foreach (var sourceProperty in dirtyStyleProperties)
3898             {
3899                 var sourceValue = viewStyle.GetValue(sourceProperty);
3900
3901                 if (sourceValue == null)
3902                 {
3903                     continue;
3904                 }
3905
3906                 bindablePropertyOfView.TryGetValue(sourceProperty.PropertyName, out var destinationProperty);
3907
3908                 // Do not set value again when theme is changed and the value has been set already.
3909                 if (isThemeChanged && ChangedPropertiesSetExcludingStyle.Contains(destinationProperty))
3910                 {
3911                     continue;
3912                 }
3913
3914                 if (destinationProperty != null)
3915                 {
3916                     InternalSetValue(destinationProperty, sourceValue);
3917                 }
3918             }
3919         }
3920
3921         /// <summary>
3922         /// Get whether the View is culled or not.
3923         /// True means that the View is out of the view frustum.
3924         /// </summary>
3925         /// <remarks>
3926         /// Hidden-API (Inhouse-API).
3927         /// </remarks>
3928         [EditorBrowsable(EditorBrowsableState.Never)]
3929         public bool Culled
3930         {
3931             get
3932             {
3933                 bool temp = false;
3934                 var pValue = GetProperty(View.Property.Culled);
3935                 pValue.Get(out temp);
3936                 pValue.Dispose();
3937                 return temp;
3938             }
3939         }
3940
3941         /// <summary>
3942         /// Set or Get TransitionOptions for the page transition.
3943         /// This property is used to define how this view will be transitioned during Page switching.
3944         /// </summary>
3945         /// <since_tizen> 9 </since_tizen>
3946         public TransitionOptions TransitionOptions
3947         {
3948             get
3949             {
3950                 return GetValue(TransitionOptionsProperty) as TransitionOptions;
3951             }
3952             set
3953             {
3954                 SetValue(TransitionOptionsProperty, value);
3955                 NotifyPropertyChanged();
3956             }
3957         }
3958
3959         private TransitionOptions InternalTransitionOptions
3960         {
3961             set
3962             {
3963                 transitionOptions = value;
3964             }
3965             get
3966             {
3967                 return transitionOptions;
3968             }
3969         }
3970
3971         /// <summary>
3972         /// Gets or sets the status of whether the view should emit key event signals.
3973         /// If a View's DispatchKeyEvents is set to false, then itself and parents will not receive key event signals.
3974         /// </summary>
3975         [EditorBrowsable(EditorBrowsableState.Never)]
3976         public bool DispatchKeyEvents
3977         {
3978             get
3979             {
3980 #if NUI_PROPERTY_CHANGE_DEBUG
3981 DispatchKeyEventsGetter++;
3982 #endif
3983                 return (bool)GetValue(DispatchKeyEventsProperty);
3984             }
3985             set
3986             {
3987 #if NUI_PROPERTY_CHANGE_DEBUG
3988 DispatchKeyEventsSetter++;
3989 #endif
3990                 SetValue(DispatchKeyEventsProperty, value);
3991                 NotifyPropertyChanged();
3992             }
3993         }
3994
3995         /// <summary>
3996         /// Gets or sets the status of whether touch events can be dispatched.
3997         /// If a View's DispatchTouchEvents is set to false, then it's can not will receive touch and parents will not receive a touch event signal either.
3998         /// This works without adding a TouchEvent callback in the View.
3999         /// <note>
4000         /// If the <see cref="Tizen.NUI.BaseComponents.View.Sensitive"/> is a property that determines whether or not to be hittable, then this property prevents the propagation of the hit touch event.
4001         /// </note>
4002         /// </summary>
4003         [EditorBrowsable(EditorBrowsableState.Never)]
4004         public bool DispatchTouchEvents
4005         {
4006             get
4007             {
4008                 return dispatchTouchEvents;
4009             }
4010             set
4011             {
4012                 if (dispatchTouchEvents != value)
4013                 {
4014                     dispatchTouchEvents = value;
4015                     if (dispatchTouchEvents == false)
4016                     {
4017                         TouchEvent += OnDispatchTouchEvent;
4018                     }
4019                     else
4020                     {
4021                         TouchEvent -= OnDispatchTouchEvent;
4022                     }
4023                 }
4024             }
4025         }
4026
4027         private bool OnDispatchTouchEvent(object source, View.TouchEventArgs e)
4028         {
4029             return true;
4030         }
4031
4032         /// <summary>
4033         /// Gets or sets the status of whether the view should emit Gesture event signals.
4034         /// If a View's DispatchGestureEvents is set to false, then itself and parents will not receive all gesture event signals.
4035         /// The itself and parents does not receive tap, pinch, pan, rotation, or longpress gestures.
4036         /// </summary>
4037         [EditorBrowsable(EditorBrowsableState.Never)]
4038         public bool DispatchGestureEvents
4039         {
4040             get
4041             {
4042                 return dispatchGestureEvents;
4043             }
4044             set
4045             {
4046                 if (dispatchGestureEvents != value)
4047                 {
4048                     dispatchGestureEvents = value;
4049                     ConfigGestureDetector(dispatchGestureEvents);
4050                 }
4051             }
4052         }
4053
4054         /// <summary>
4055         /// Gets or sets the status of whether the view should emit Gesture event signals.
4056         /// If a View's DispatchParentGestureEvents is set to false, then parents will not receive all gesture event signals.
4057         /// The parents does not receive tap, pinch, pan, rotation, or longpress gestures.
4058         /// </summary>
4059         [EditorBrowsable(EditorBrowsableState.Never)]
4060         public bool DispatchParentGestureEvents
4061         {
4062             get
4063             {
4064                 return dispatchParentGestureEvents;
4065             }
4066             set
4067             {
4068                 if (dispatchParentGestureEvents != value)
4069                 {
4070                     dispatchParentGestureEvents = value;
4071                     ConfigGestureDetector(dispatchParentGestureEvents);
4072                 }
4073             }
4074         }
4075
4076         private void ConfigGestureDetector(bool dispatch)
4077         {
4078             if (panGestureDetector == null) panGestureDetector = new PanGestureDetector();
4079             if (longGestureDetector == null) longGestureDetector = new LongPressGestureDetector();
4080             if (pinchGestureDetector == null) pinchGestureDetector = new PinchGestureDetector();
4081             if (tapGestureDetector == null) tapGestureDetector = new TapGestureDetector();
4082             if (rotationGestureDetector == null) rotationGestureDetector = new RotationGestureDetector();
4083
4084             if (dispatch == true)
4085             {
4086                 configGestureCount = configGestureCount > 0 ? configGestureCount-- : 0;
4087                 if (configGestureCount == 0)
4088                 {
4089                     panGestureDetector.Detach(this);
4090                     longGestureDetector.Detach(this);
4091                     pinchGestureDetector.Detach(this);
4092                     tapGestureDetector.Detach(this);
4093                     rotationGestureDetector.Detach(this);
4094
4095                     panGestureDetector.Detected -= OnGestureDetected;
4096                     longGestureDetector.Detected -= OnGestureDetected;
4097                     pinchGestureDetector.Detected -= OnGestureDetected;
4098                     tapGestureDetector.Detected -= OnGestureDetected;
4099                     rotationGestureDetector.Detected -= OnGestureDetected;
4100
4101                     panGestureDetector = null;
4102                     longGestureDetector = null;
4103                     pinchGestureDetector = null;
4104                     tapGestureDetector = null;
4105                     rotationGestureDetector = null;
4106                 }
4107             }
4108             else
4109             {
4110                 if (configGestureCount == 0)
4111                 {
4112                     panGestureDetector.Attach(this);
4113                     longGestureDetector.Attach(this);
4114                     pinchGestureDetector.Attach(this);
4115                     tapGestureDetector.Attach(this);
4116                     rotationGestureDetector.Attach(this);
4117
4118                     panGestureDetector.Detected += OnGestureDetected;
4119                     longGestureDetector.Detected += OnGestureDetected;
4120                     pinchGestureDetector.Detected += OnGestureDetected;
4121                     tapGestureDetector.Detected += OnGestureDetected;
4122                     rotationGestureDetector.Detected += OnGestureDetected;
4123                 }
4124                 configGestureCount++;
4125             }
4126         }
4127
4128         private void OnGestureDetected(object source, EventArgs e)
4129         {
4130             // Does notting. This is to consume the gesture.
4131         }
4132
4133         /// <summary>
4134         /// Called when the view is hit through TouchEvent or GestureEvent.
4135         /// If it returns true, it means that it was hit, and the touch/gesture event is called from the view.
4136         /// If it returns false, it means that it will not be hit, and the hit-test continues to the next view.
4137         /// User can override whether hit or not in HitTest.
4138         /// You can get the coordinates relative to tthe top-left of the hit view by touch.GetLocalPosition(0).
4139         /// or you can get the coordinates relative to the top-left of the screen by touch.GetScreenPosition(0).
4140         /// </summary>
4141         // <param name="touch"><see cref="Tizen.NUI.Touch"/>The touch data</param>
4142         [EditorBrowsable(EditorBrowsableState.Never)]
4143         protected virtual bool HitTest(Touch touch)
4144         {
4145             return true;
4146         }
4147
4148         /// <summary>
4149         /// Retrieve the View's current Color.
4150         /// </summary>
4151         /// <remarks>
4152         /// The <see cref="Size"/>, <see cref="Position"/>, <see cref="Color"/>, and <see cref="Scale"/> properties are set in the main thread.
4153         /// Therefore, it is not updated in real time when the value is changed in the render thread (for example, the value is changed during animation).
4154         /// However, <see cref="CurrentSize"/>, <see cref="CurrentPosition"/>, <see cref="CurrentColor"/>, and <see cref="CurrentScale"/> properties are updated in real time,
4155         /// and users can get the current actual values through them.
4156         /// </remarks>
4157         [EditorBrowsable(EditorBrowsableState.Never)]
4158         public Color CurrentColor => GetCurrentColor();
4159
4160         /// <summary>
4161         /// Retrieve the current scale factor applied to the View.
4162         /// </summary>
4163         /// <remarks>
4164         /// The <see cref="Size"/>, <see cref="Position"/>, <see cref="Color"/>, and <see cref="Scale"/> properties are set in the main thread.
4165         /// Therefore, it is not updated in real time when the value is changed in the render thread (for example, the value is changed during animation).
4166         /// However, <see cref="CurrentSize"/>, <see cref="CurrentPosition"/>, <see cref="CurrentColor"/>, and <see cref="CurrentScale"/> properties are updated in real time,
4167         /// and users can get the current actual values through them.
4168         /// </remarks>
4169         [EditorBrowsable(EditorBrowsableState.Never)]
4170         public Vector3 CurrentScale => GetCurrentScale();
4171
4172     }
4173 }