[NUI] Add BindableProperties to all public Properties
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / View.cs
1 /*
2  * Copyright(c) 2021 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
35         internal BackgroundExtraData backgroundExtraData;
36
37         private bool layoutSet = false;
38         private LayoutItem layout; // Exclusive layout assigned to this View.
39
40         // List of transitions paired with the condition that uses the transition.
41         private Dictionary<TransitionCondition, TransitionList> layoutTransitions;
42         private int widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
43         private int heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
44         private float weight = 0.0f; // Weighting of child View in a Layout
45         private bool backgroundImageSynchronousLoading = false;
46         private bool excludeLayouting = false;
47         private LayoutTransition layoutTransition;
48         private TransitionOptions transitionOptions = null;
49         private ThemeData themeData;
50
51         // List of constraints
52         private Constraint widthConstraint = null;
53         private Constraint heightConstraint = null;
54         static View()
55         {
56             RegisterPropertyGroup(PositionProperty, positionPropertyGroup);
57             RegisterPropertyGroup(Position2DProperty, positionPropertyGroup);
58             RegisterPropertyGroup(PositionXProperty, positionPropertyGroup);
59             RegisterPropertyGroup(PositionYProperty, positionPropertyGroup);
60
61             RegisterPropertyGroup(SizeProperty, sizePropertyGroup);
62             RegisterPropertyGroup(Size2DProperty, sizePropertyGroup);
63             RegisterPropertyGroup(SizeWidthProperty, sizePropertyGroup);
64             RegisterPropertyGroup(SizeHeightProperty, sizePropertyGroup);
65
66             RegisterPropertyGroup(ScaleProperty, scalePropertyGroup);
67             RegisterPropertyGroup(ScaleXProperty, scalePropertyGroup);
68             RegisterPropertyGroup(ScaleYProperty, scalePropertyGroup);
69             RegisterPropertyGroup(ScaleZProperty, scalePropertyGroup);
70         }
71
72         /// <summary>
73         /// Creates a new instance of a view.
74         /// </summary>
75         /// <since_tizen> 3 </since_tizen>
76         public View() : this(Interop.View.New(), true)
77         {
78             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
79         }
80
81         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
82         [EditorBrowsable(EditorBrowsableState.Never)]
83         public View(ViewStyle viewStyle) : this(Interop.View.New(), true, viewStyle)
84         {
85         }
86
87         /// <summary>
88         /// Create a new instance of a View with setting the status of shown or hidden.
89         /// </summary>
90         /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
91         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
92         [EditorBrowsable(EditorBrowsableState.Never)]
93         public View(bool shown) : this(Interop.View.New(), true)
94         {
95             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
96             SetVisible(shown);
97         }
98
99         internal View(View uiControl, bool shown = true) : this(Interop.View.NewView(View.getCPtr(uiControl)), true)
100         {
101             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
102             if (!shown)
103             {
104                 SetVisible(false);
105             }
106
107             backgroundExtraData = uiControl.backgroundExtraData == null ? null : new BackgroundExtraData(uiControl.backgroundExtraData);
108         }
109
110         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, ViewStyle viewStyle, bool shown = true) : this(cPtr, cMemoryOwn, shown)
111         {
112             InitializeStyle(viewStyle);
113         }
114
115         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(cPtr, cMemoryOwn)
116         {
117             if (HasBody())
118             {
119                 PositionUsesPivotPoint = false;
120             }
121
122             onWindowSendEventCallback = SendViewAddedEventToWindow;
123             using ViewSignal signal = new ViewSignal(Interop.ActorSignal.ActorOnSceneSignal(SwigCPtr), false);
124             signal?.Connect(onWindowSendEventCallback);
125
126             if (!shown)
127             {
128                 SetVisible(false);
129             }
130         }
131
132         internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.NewViewInternal(ViewImpl.getCPtr(implementation)), true)
133         {
134             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
135
136             if (!shown)
137             {
138                 SetVisible(false);
139             }
140         }
141
142         /// <summary>
143         /// The event that is triggered when the View's ControlState is changed.
144         /// </summary>
145         [EditorBrowsable(EditorBrowsableState.Never)]
146         public event EventHandler<ControlStateChangedEventArgs> ControlStateChangedEvent;
147
148         internal event EventHandler<ControlStateChangedEventArgs> ControlStateChangeEventInternal;
149
150
151         /// <summary>
152         /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
153         /// </summary>
154         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
155         [EditorBrowsable(EditorBrowsableState.Never)]
156         public bool LayoutSet
157         {
158             get
159             {
160                 return layoutSet;
161             }
162         }
163
164         /// <summary>
165         /// Flag to allow Layouting to be disabled for Views.
166         /// Once a View has a Layout set then any children added to Views from then on will receive
167         /// automatic Layouts.
168         /// </summary>
169         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
170         [EditorBrowsable(EditorBrowsableState.Never)]
171         public static bool LayoutingDisabled { get; set; } = true;
172
173         /// <summary>
174         /// Deprecate. Please do not use this.
175         /// The style instance applied to this view.
176         /// Note that please do not modify the ViewStyle.
177         /// Modifying ViewStyle will affect other views with same ViewStyle.
178         /// </summary>
179         [EditorBrowsable(EditorBrowsableState.Never)]
180         protected ViewStyle ViewStyle
181         {
182             get
183             {
184                 if (themeData == null) themeData = new ThemeData();
185
186                 if (themeData.viewStyle == null)
187                 {
188                     ApplyStyle(CreateViewStyle());
189                 }
190                 return themeData.viewStyle;
191             }
192         }
193
194         /// <summary>
195         /// Get/Set the control state.
196         /// Note that the ControlState only available for the classes derived from Control.
197         /// If the classes that are not derived from Control (such as View, ImageView and TextLabel) want to use this system,
198         /// please set <see cref="EnableControlState"/> to true.
199         /// </summary>
200         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
201         [EditorBrowsable(EditorBrowsableState.Never)]
202         public ControlState ControlState
203         {
204             get
205             {
206                 return themeData == null ? ControlState.Normal : themeData.controlStates;
207             }
208             protected set
209             {
210                 if (ControlState == value)
211                 {
212                     return;
213                 }
214
215                 var prevState = ControlState;
216
217                 if (themeData == null) themeData = new ThemeData();
218                 themeData.controlStates = value;
219
220                 var changeInfo = new ControlStateChangedEventArgs(prevState, value);
221
222                 ControlStateChangeEventInternal?.Invoke(this, changeInfo);
223
224                 if (themeData.ControlStatePropagation)
225                 {
226                     foreach (View child in Children)
227                     {
228                         child.ControlState = value;
229                     }
230                 }
231
232                 OnControlStateChanged(changeInfo);
233
234                 ControlStateChangedEvent?.Invoke(this, changeInfo);
235             }
236         }
237
238         /// <summary>
239         /// Gets / Sets the status of whether the view is excluded from its parent's layouting or not.
240         /// </summary>
241         /// This will be public opened later after ACR done. Before ACR, need to be hidden as inhouse API.
242         [EditorBrowsable(EditorBrowsableState.Never)]
243         public bool ExcludeLayouting
244         {
245             get
246             {
247                 return (bool)GetValue(ExcludeLayoutingProperty);
248             }
249             set
250             {
251                 SetValue(ExcludeLayoutingProperty, value);
252                 NotifyPropertyChanged();
253             }
254         }
255
256         private bool InternalExcludeLayouting
257         {
258             get
259             {
260                 return excludeLayouting;
261             }
262             set
263             {
264                 excludeLayouting = value;
265                 if (Layout != null && Layout.SetPositionByLayout == value)
266                 {
267                     Layout.SetPositionByLayout = !value;
268                     Layout.RequestLayout();
269                 }
270             }
271         }
272
273         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
274         [EditorBrowsable(EditorBrowsableState.Never)]
275         public bool IsResourcesCreated
276         {
277             get
278             {
279                 return Application.Current.IsResourcesCreated;
280             }
281         }
282
283         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
284         [EditorBrowsable(EditorBrowsableState.Never)]
285         public ResourceDictionary XamlResources
286         {
287             get
288             {
289                 return Application.Current.XamlResources;
290             }
291             set
292             {
293                 Application.Current.XamlResources = value;
294             }
295         }
296
297         /// <summary>
298         /// The StyleName, type string.
299         /// The value indicates DALi style name defined in json theme file.
300         /// </summary>
301         /// <since_tizen> 3 </since_tizen>
302         public string StyleName
303         {
304             get
305             {
306                 return (string)GetValue(StyleNameProperty);
307             }
308             set
309             {
310                 SetValue(StyleNameProperty, value);
311                 NotifyPropertyChanged();
312             }
313         }
314
315         /// <summary>
316         /// The KeyInputFocus, type bool.
317         /// </summary>
318         [EditorBrowsable(EditorBrowsableState.Never)]
319         public bool KeyInputFocus
320         {
321             get
322             {
323                 return (bool)GetValue(KeyInputFocusProperty);
324             }
325             set
326             {
327                 SetValue(KeyInputFocusProperty, value);
328                 NotifyPropertyChanged();
329             }
330         }
331
332         /// <summary>
333         /// The mutually exclusive with "backgroundImage" and "background" type Vector4.
334         /// </summary>
335         /// <remarks>
336         /// <para>
337         /// The property cascade chaining set is possible. For example, this (view.BackgroundColor.X = 0.1f;) is possible.
338         /// </para>
339         /// <para>
340         /// Animatable - This property can be animated using <c>Animation</c> class.
341         /// <code>
342         /// animation.AnimateTo(view, "BackgroundColor", new Color(r, g, b, a));
343         /// </code>
344         /// </para>
345         /// </remarks>
346         /// <since_tizen> 3 </since_tizen>
347         public Color BackgroundColor
348         {
349             get
350             {
351                 Color temp = (Color)GetValue(BackgroundColorProperty);
352                 return new Color(OnBackgroundColorChanged, temp.R, temp.G, temp.B, temp.A);
353             }
354             set
355             {
356                 SetValue(BackgroundColorProperty, value);
357                 NotifyPropertyChanged();
358             }
359         }
360
361         /// <summary>
362         /// The mutually exclusive with "backgroundColor" and "background" type Map.
363         /// </summary>
364         /// <since_tizen> 3 </since_tizen>
365         public string BackgroundImage
366         {
367             get
368             {
369                 return (string)GetValue(BackgroundImageProperty);
370             }
371             set
372             {
373                 SetValue(BackgroundImageProperty, value);
374                 NotifyPropertyChanged();
375             }
376         }
377
378         /// <summary>
379         /// Get or set the border of background image.
380         /// </summary>
381         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
382         [EditorBrowsable(EditorBrowsableState.Never)]
383         public Rectangle BackgroundImageBorder
384         {
385             get
386             {
387                 return (Rectangle)GetValue(BackgroundImageBorderProperty);
388             }
389             set
390             {
391                 SetValue(BackgroundImageBorderProperty, value);
392                 NotifyPropertyChanged();
393             }
394         }
395
396         /// <summary>
397         /// The background of view.
398         /// </summary>
399         /// <since_tizen> 3 </since_tizen>
400         public Tizen.NUI.PropertyMap Background
401         {
402             get
403             {
404                 return (PropertyMap)GetValue(BackgroundProperty);
405             }
406             set
407             {
408                 SetValue(BackgroundProperty, value);
409                 NotifyPropertyChanged();
410             }
411         }
412
413         /// <summary>
414         /// Describes a shadow as an image for a View.
415         /// It is null by default.
416         /// </summary>
417         /// <remarks>
418         /// Getter returns copied instance of current shadow.
419         /// </remarks>
420         /// <remarks>
421         /// The mutually exclusive with "BoxShadow".
422         /// </remarks>
423         /// <remarks>
424         /// <para>
425         /// Animatable - This property can be animated using <c>Animation</c> class.
426         /// To animate this property, specify a sub-property with separator ".", for example, "ImageShadow.Offset".
427         /// <code>
428         /// animation.AnimateTo(view, "ImageShadow.Offset", new Vector2(10, 10));
429         /// </code>
430         /// Animatable sub-property : Offset.
431         /// </para>
432         /// </remarks>
433         [EditorBrowsable(EditorBrowsableState.Never)]
434         public ImageShadow ImageShadow
435         {
436             get
437             {
438                 return (ImageShadow)GetValue(ImageShadowProperty);
439             }
440             set
441             {
442                 SetValue(ImageShadowProperty, value);
443                 NotifyPropertyChanged();
444             }
445         }
446
447         /// <summary>
448         /// Describes a box shaped shadow drawing for a View.
449         /// It is null by default.
450         /// </summary>
451         /// <remarks>
452         /// The mutually exclusive with "ImageShadow".
453         /// </remarks>
454         /// <remarks>
455         /// <para>
456         /// Animatable - This property can be animated using <c>Animation</c> class.
457         /// To animate this property, specify a sub-property with separator ".", for example, "BoxShadow.BlurRadius".
458         /// <code>
459         /// animation.AnimateTo(view, "BoxShadow.BlurRadius", 10.0f);
460         /// </code>
461         /// Animatable sub-property : Offset, Color, BlurRadius.
462         /// </para>
463         /// </remarks>
464         /// <since_tizen> 9 </since_tizen>
465         public Shadow BoxShadow
466         {
467             get
468             {
469                 return (Shadow)GetValue(BoxShadowProperty);
470             }
471             set
472             {
473                 SetValue(BoxShadowProperty, value);
474                 NotifyPropertyChanged();
475             }
476         }
477
478         /// <summary>
479         /// The radius for the rounded corners of the View.
480         /// This will rounds background and shadow edges.
481         /// 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).
482         /// Each radius will clamp internally to the half of smaller of the view's width or height.
483         /// Note that, an image background (or shadow) may not have rounded corners if it uses a Border property.
484         /// </summary>
485         /// <remarks>
486         /// <para>
487         /// Animatable - This property can be animated using <c>Animation</c> class.
488         /// <code>
489         /// animation.AnimateTo(view, "CornerRadius", new Vector4(10, 10, 10, 10));
490         /// </code>
491         /// </para>
492         /// </remarks>
493         /// <since_tizen> 9 </since_tizen>
494         public Vector4 CornerRadius
495         {
496             get
497             {
498                 return (Vector4)GetValue(CornerRadiusProperty);
499             }
500             set
501             {
502                 SetValue(CornerRadiusProperty, value);
503                 NotifyPropertyChanged();
504             }
505         }
506
507         /// <summary>
508         /// Whether the CornerRadius property value is relative (percentage [0.0f to 0.5f] of the view size) or absolute (in world units).
509         /// It is absolute by default.
510         /// When the policy is relative, the corner radius is relative to the smaller of the view's width and height.
511         /// </summary>
512         /// <since_tizen> 9 </since_tizen>
513         public VisualTransformPolicyType CornerRadiusPolicy
514         {
515             get => (VisualTransformPolicyType)GetValue(CornerRadiusPolicyProperty);
516             set => SetValue(CornerRadiusPolicyProperty, value);
517         }
518
519         /// <summary>
520         /// The width for the borderline of the View.
521         /// Note that, an image background may not have borderline if it uses a Border property.
522         /// </summary>
523         /// <remarks>
524         /// <para>
525         /// Animatable - This property can be animated using <c>Animation</c> class.
526         /// <code>
527         /// animation.AnimateTo(view, "BorderlineWidth", 100.0f);
528         /// </code>
529         /// </para>
530         /// </remarks>
531         /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
532         [EditorBrowsable(EditorBrowsableState.Never)]
533         public float BorderlineWidth
534         {
535             get
536             {
537                 return (float)GetValue(BorderlineWidthProperty);
538             }
539             set
540             {
541                 SetValue(BorderlineWidthProperty, value);
542                 NotifyPropertyChanged();
543             }
544         }
545
546         /// <summary>
547         /// The color for the borderline of the View.
548         /// It is Color.Black by default.
549         /// </summary>
550         /// <remarks>
551         /// <para>
552         /// Animatable - This property can be animated using <c>Animation</c> class.
553         /// <code>
554         /// animation.AnimateTo(view, "BorderlineColor", new Color(r, g, b, a));
555         /// </code>
556         /// </para>
557         /// </remarks>
558         /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
559         [EditorBrowsable(EditorBrowsableState.Never)]
560         public Color BorderlineColor
561         {
562             get
563             {
564                 return (Color)GetValue(BorderlineColorProperty);
565             }
566             set
567             {
568                 SetValue(BorderlineColorProperty, value);
569                 NotifyPropertyChanged();
570             }
571         }
572
573         /// <summary>
574         /// The Relative offset for the borderline of the View.
575         /// recommand [-1.0f to 1.0f] range.
576         /// If -1.0f, borderline draw inside of View.
577         /// If 1.0f, borderline draw outside of View.
578         /// If 0.0f, borderline draw half at inside and half at outside.
579         /// It is 0.0f by default.
580         /// </summary>
581         /// <remarks>
582         /// <para>
583         /// Animatable - This property can be animated using <c>Animation</c> class.
584         /// <code>
585         /// animation.AnimateTo(view, "BorderlineOffset", -1.0f);
586         /// </code>
587         /// </para>
588         /// </remarks>
589         /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
590         [EditorBrowsable(EditorBrowsableState.Never)]
591         public float BorderlineOffset
592         {
593             get
594             {
595                 return (float)GetValue(BorderlineOffsetProperty);
596             }
597             set
598             {
599                 SetValue(BorderlineOffsetProperty, value);
600                 NotifyPropertyChanged();
601             }
602         }
603
604         /// <summary>
605         /// The current state of the view.
606         /// </summary>
607         /// <since_tizen> 3 </since_tizen>
608         public States State
609         {
610             get
611             {
612                 return (States)GetValue(StateProperty);
613             }
614             set
615             {
616                 SetValue(StateProperty, value);
617                 NotifyPropertyChanged();
618             }
619         }
620
621         /// <summary>
622         /// The current sub state of the view.
623         /// </summary>
624         /// <since_tizen> 3 </since_tizen>
625         public States SubState
626         {
627             get
628             {
629                 return (States)GetValue(SubStateProperty);
630             }
631             set
632             {
633                 SetValue(SubStateProperty, value);
634                 NotifyPropertyChanged();
635             }
636         }
637
638         /// <summary>
639         /// Displays a tooltip
640         /// </summary>
641         /// <since_tizen> 3 </since_tizen>
642         public Tizen.NUI.PropertyMap Tooltip
643         {
644             get
645             {
646                 return (PropertyMap)GetValue(TooltipProperty);
647             }
648             set
649             {
650                 SetValue(TooltipProperty, value);
651                 NotifyPropertyChanged();
652             }
653         }
654
655         /// <summary>
656         /// Displays a tooltip as a text.
657         /// </summary>
658         /// <since_tizen> 3 </since_tizen>
659         public string TooltipText
660         {
661             get
662             {
663                 return GetValue(TooltipTextProperty) as string;
664             }
665             set
666             {
667                 SetValue(TooltipTextProperty, value);
668             }
669         }
670
671         private string InternalTooltipText
672         {
673             get
674             {
675                 using (var propertyValue = GetProperty(Property.TOOLTIP))
676                 {
677                     if (propertyValue != null && propertyValue.Get(out string retrivedValue))
678                     {
679                         return retrivedValue;
680                     }
681                     NUILog.Error($"[ERROR] Fail to get TooltipText! Return error MSG (error to get TooltipText)!");
682                     return "error to get TooltipText";
683                 }
684             }
685             set
686             {
687                 var temp = new Tizen.NUI.PropertyValue(value);
688                 SetProperty(View.Property.TOOLTIP, temp);
689                 temp.Dispose();
690                 NotifyPropertyChanged();
691             }
692         }
693
694         /// <summary>
695         /// The Child property of FlexContainer.<br />
696         /// The proportion of the free space in the container, the flex item will receive.<br />
697         /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
698         /// </summary>
699         /// <since_tizen> 3 </since_tizen>
700         [Obsolete("Deprecated in API8, will be removed in API10.")]
701         public float Flex
702         {
703             get
704             {
705                 return (float)GetValue(FlexProperty);
706             }
707             set
708             {
709                 SetValue(FlexProperty, value);
710                 NotifyPropertyChanged();
711             }
712         }
713
714         /// <summary>
715         /// The Child property of FlexContainer.<br />
716         /// The alignment of the flex item along the cross axis, which, if set, overrides the default alignment for all items in the container.<br />
717         /// </summary>
718         /// <since_tizen> 3 </since_tizen>
719         [Obsolete("Deprecated in API8, will be removed in API10.")]
720         public int AlignSelf
721         {
722             get
723             {
724                 return (int)GetValue(AlignSelfProperty);
725             }
726             set
727             {
728                 SetValue(AlignSelfProperty, value);
729                 NotifyPropertyChanged();
730             }
731         }
732
733         /// <summary>
734         /// The Child property of FlexContainer.<br />
735         /// The space around the flex item.<br />
736         /// </summary>
737         /// <remarks>
738         /// The property cascade chaining set is possible. For example, this (view.FlexMargin.X = 0.1f;) is possible.
739         /// </remarks>
740         /// <since_tizen> 3 </since_tizen>
741         [Obsolete("Deprecated in API8, will be removed in API10.")]
742         public Vector4 FlexMargin
743         {
744             get
745             {
746                 Vector4 temp = (Vector4)GetValue(FlexMarginProperty);
747                 return new Vector4(OnFlexMarginChanged, temp.X, temp.Y, temp.Z, temp.W);
748             }
749             set
750             {
751                 SetValue(FlexMarginProperty, value);
752                 NotifyPropertyChanged();
753             }
754         }
755
756         /// <summary>
757         /// The top-left cell this child occupies, if not set, the first available cell is used.
758         /// </summary>
759         /// <remarks>
760         /// The property cascade chaining set is possible. For example, this (view.CellIndex.X = 0.1f;) is possible.
761         /// Also, this property is for <see cref="TableView"/> class. Please use the property for the child position of <see cref="TableView"/>.
762         /// </remarks>
763         /// <since_tizen> 3 </since_tizen>
764         public Vector2 CellIndex
765         {
766             get
767             {
768                 Vector2 temp = (Vector2)GetValue(CellIndexProperty);
769                 return new Vector2(OnCellIndexChanged, temp.X, temp.Y);
770             }
771             set
772             {
773                 SetValue(CellIndexProperty, value);
774                 NotifyPropertyChanged();
775             }
776         }
777
778         /// <summary>
779         /// The number of rows this child occupies, if not set, the default value is 1.
780         /// </summary>
781         /// <remarks>
782         /// This property is for <see cref="TableView"/> class. Please use the property for the child position of <see cref="TableView"/>.
783         /// </remarks>
784         /// <since_tizen> 3 </since_tizen>
785         public float RowSpan
786         {
787             get
788             {
789                 return (float)GetValue(RowSpanProperty);
790             }
791             set
792             {
793                 SetValue(RowSpanProperty, value);
794                 NotifyPropertyChanged();
795             }
796         }
797
798         /// <summary>
799         /// The number of columns this child occupies, if not set, the default value is 1.
800         /// </summary>
801         /// <remarks>
802         /// This property is for <see cref="TableView"/> class. Please use the property for the child position of <see cref="TableView"/>.
803         /// </remarks>
804         /// <since_tizen> 3 </since_tizen>
805         public float ColumnSpan
806         {
807             get
808             {
809                 return (float)GetValue(ColumnSpanProperty);
810             }
811             set
812             {
813                 SetValue(ColumnSpanProperty, value);
814                 NotifyPropertyChanged();
815             }
816         }
817
818         /// <summary>
819         /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
820         /// </summary>
821         /// <remarks>
822         /// This property is for <see cref="TableView"/> class. Please use the property for the child position of <see cref="TableView"/>.
823         /// </remarks>
824         /// <since_tizen> 3 </since_tizen>
825         public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
826         {
827             get
828             {
829                 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
830             }
831             set
832             {
833                 SetValue(CellHorizontalAlignmentProperty, value);
834                 NotifyPropertyChanged();
835             }
836         }
837
838         /// <summary>
839         /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
840         /// </summary>
841         /// <remarks>
842         /// This property is for <see cref="TableView"/> class. Please use the property for the child position of <see cref="TableView"/>.
843         /// </remarks>
844         /// <since_tizen> 3 </since_tizen>
845         public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
846         {
847             get
848             {
849                 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
850             }
851             set
852             {
853                 SetValue(CellVerticalAlignmentProperty, value);
854                 NotifyPropertyChanged();
855             }
856         }
857
858         /// <summary>
859         /// The left focusable view.<br />
860         /// This will return null if not set.<br />
861         /// This will also return null if the specified left focusable view is not on a window.<br />
862         /// </summary>
863         /// <since_tizen> 3 </since_tizen>
864         public View LeftFocusableView
865         {
866             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
867             get
868             {
869                 return (View)GetValue(LeftFocusableViewProperty);
870             }
871             set
872             {
873                 SetValue(LeftFocusableViewProperty, value);
874                 NotifyPropertyChanged();
875             }
876         }
877
878         /// <summary>
879         /// The right focusable view.<br />
880         /// This will return null if not set.<br />
881         /// This will also return null if the specified right focusable view is not on a window.<br />
882         /// </summary>
883         /// <since_tizen> 3 </since_tizen>
884         public View RightFocusableView
885         {
886             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
887             get
888             {
889                 return (View)GetValue(RightFocusableViewProperty);
890             }
891             set
892             {
893                 SetValue(RightFocusableViewProperty, value);
894                 NotifyPropertyChanged();
895             }
896         }
897
898         /// <summary>
899         /// The up focusable view.<br />
900         /// This will return null if not set.<br />
901         /// This will also return null if the specified up focusable view is not on a window.<br />
902         /// </summary>
903         /// <since_tizen> 3 </since_tizen>
904         public View UpFocusableView
905         {
906             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
907             get
908             {
909                 return (View)GetValue(UpFocusableViewProperty);
910             }
911             set
912             {
913                 SetValue(UpFocusableViewProperty, value);
914                 NotifyPropertyChanged();
915             }
916         }
917
918         /// <summary>
919         /// The down focusable view.<br />
920         /// This will return null if not set.<br />
921         /// This will also return null if the specified down focusable view is not on a window.<br />
922         /// </summary>
923         /// <since_tizen> 3 </since_tizen>
924         public View DownFocusableView
925         {
926             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
927             get
928             {
929                 return (View)GetValue(DownFocusableViewProperty);
930             }
931             set
932             {
933                 SetValue(DownFocusableViewProperty, value);
934                 NotifyPropertyChanged();
935             }
936         }
937
938         /// <summary>
939         /// Whether the view should be focusable by keyboard navigation.
940         /// </summary>
941         /// <since_tizen> 3 </since_tizen>
942         public bool Focusable
943         {
944             set
945             {
946                 SetValue(FocusableProperty, value);
947                 NotifyPropertyChanged();
948             }
949             get
950             {
951                 return (bool)GetValue(FocusableProperty);
952             }
953         }
954
955         /// <summary>
956         /// 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.
957         /// Note : Default value is true.
958         /// </summary>
959         [EditorBrowsable(EditorBrowsableState.Never)]
960         public bool FocusableChildren
961         {
962             set
963             {
964                 SetValue(FocusableChildrenProperty, value);
965                 NotifyPropertyChanged();
966             }
967             get
968             {
969                 return (bool)GetValue(FocusableChildrenProperty);
970             }
971         }
972
973         /// <summary>
974         /// Whether this view can focus by touch.
975         /// If Focusable is false, FocusableInTouch is disabled.
976         /// If you want to have focus on touch, you need to set both Focusable and FocusableInTouch settings to true.
977         /// </summary>
978         [EditorBrowsable(EditorBrowsableState.Never)]
979         public bool FocusableInTouch
980         {
981             set
982             {
983                 SetValue(FocusableInTouchProperty, value);
984                 NotifyPropertyChanged();
985             }
986             get
987             {
988                 return (bool)GetValue(FocusableInTouchProperty);
989             }
990         }
991
992         /// <summary>
993         ///  Retrieves the position of the view.<br />
994         ///  The coordinates are relative to the view's parent.<br />
995         /// </summary>
996         /// <since_tizen> 3 </since_tizen>
997         public Position CurrentPosition
998         {
999             get
1000             {
1001                 return GetCurrentPosition();
1002             }
1003         }
1004
1005         /// <summary>
1006         /// Sets the size of a view for the width and the height.<br />
1007         /// Geometry can be scaled to fit within this area.<br />
1008         /// This does not interfere with the view's scale factor.<br />
1009         /// The views default depth is the minimum of width and height.<br />
1010         /// </summary>
1011         /// <remarks>
1012         /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
1013         /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
1014         /// </remarks>
1015         /// <since_tizen> 3 </since_tizen>
1016         public Size2D Size2D
1017         {
1018             get
1019             {
1020                 Size2D temp = (Size2D)GetValue(Size2DProperty);
1021                 int width = temp.Width;
1022                 int height = temp.Height;
1023
1024                 if (this.Layout == null)
1025                 {
1026                     if (width < 0) { width = 0; }
1027                     if (height < 0) { height = 0; }
1028                 }
1029
1030                 return new Size2D(OnSize2DChanged, width, height);
1031             }
1032             set
1033             {
1034                 SetValue(Size2DProperty, value);
1035
1036                 NotifyPropertyChanged();
1037             }
1038         }
1039
1040         /// <summary>
1041         ///  Retrieves the size of the view.<br />
1042         ///  The coordinates are relative to the view's parent.<br />
1043         /// </summary>
1044         /// <since_tizen> 3 </since_tizen>
1045         public Size2D CurrentSize
1046         {
1047             get
1048             {
1049                 return GetCurrentSize();
1050             }
1051         }
1052
1053         /// <summary>
1054         /// Retrieves and sets the view's opacity.<br />
1055         /// </summary>
1056         /// <remarks>
1057         /// <para>
1058         /// Animatable - This property can be animated using <c>Animation</c> class.
1059         /// <code>
1060         /// animation.AnimateTo(view, "Opacity", 0.5f);
1061         /// </code>
1062         /// </para>
1063         /// </remarks>
1064         /// <since_tizen> 3 </since_tizen>
1065         public float Opacity
1066         {
1067             get
1068             {
1069                 return (float)GetValue(OpacityProperty);
1070             }
1071             set
1072             {
1073                 SetValue(OpacityProperty, value);
1074                 NotifyPropertyChanged();
1075             }
1076         }
1077
1078         /// <summary>
1079         /// Sets the position of the view for X and Y.<br />
1080         /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
1081         /// If the position inheritance is disabled, sets the world position.<br />
1082         /// </summary>
1083         /// <remarks>
1084         /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
1085         /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
1086         /// </remarks>
1087         /// <since_tizen> 3 </since_tizen>
1088         public Position2D Position2D
1089         {
1090             get
1091             {
1092                 Position2D temp = (Position2D)GetValue(Position2DProperty);
1093                 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
1094             }
1095             set
1096             {
1097                 SetValue(Position2DProperty, value);
1098                 NotifyPropertyChanged();
1099             }
1100         }
1101
1102         /// <summary>
1103         /// Retrieves the screen position of the view.<br />
1104         /// </summary>
1105         /// <since_tizen> 3 </since_tizen>
1106         public Vector2 ScreenPosition
1107         {
1108             get
1109             {
1110                 Vector2 temp = new Vector2(0.0f, 0.0f);
1111                 var pValue = GetProperty(View.Property.ScreenPosition);
1112                 pValue.Get(temp);
1113                 pValue.Dispose();
1114                 return temp;
1115             }
1116         }
1117
1118         /// <summary>
1119         /// Determines whether the pivot point should be used to determine the position of the view.
1120         /// This is false by default.
1121         /// </summary>
1122         /// <remarks>If false, then the top-left of the view is used for the position.
1123         /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
1124         /// </remarks>
1125         /// <since_tizen> 3 </since_tizen>
1126         public bool PositionUsesPivotPoint
1127         {
1128             get
1129             {
1130                 return (bool)GetValue(PositionUsesPivotPointProperty);
1131             }
1132             set
1133             {
1134                 SetValue(PositionUsesPivotPointProperty, value);
1135                 NotifyPropertyChanged();
1136             }
1137         }
1138
1139         /// <summary>
1140         /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
1141         /// </summary>
1142         /// <since_tizen> 3 </since_tizen>
1143         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
1144             "Like: " +
1145             "View view = new View(); " +
1146             "view.PivotPoint = PivotPoint.Center; " +
1147             "view.PositionUsesPivotPoint = true;" +
1148             " Deprecated in API5: Will be removed in API8")]
1149         [EditorBrowsable(EditorBrowsableState.Never)]
1150         public bool PositionUsesAnchorPoint
1151         {
1152             get
1153             {
1154                 return (bool)GetValue(PositionUsesAnchorPointProperty);
1155             }
1156             set
1157             {
1158                 SetValue(PositionUsesAnchorPointProperty, value);
1159             }
1160         }
1161
1162         private bool InternalPositionUsesAnchorPoint
1163         {
1164             get
1165             {
1166                 bool temp = false;
1167                 var pValue = GetProperty(View.Property.PositionUsesAnchorPoint);
1168                 pValue.Get(out temp);
1169                 pValue.Dispose();
1170                 return temp;
1171             }
1172             set
1173             {
1174                 var temp = new Tizen.NUI.PropertyValue(value);
1175                 SetProperty(View.Property.PositionUsesAnchorPoint, temp);
1176                 temp.Dispose();
1177                 NotifyPropertyChanged();
1178             }
1179         }
1180
1181         /// <summary>
1182         /// Queries whether the view is connected to the stage.<br />
1183         /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
1184         /// </summary>
1185         /// <since_tizen> 3 </since_tizen>
1186         public bool IsOnWindow
1187         {
1188             get
1189             {
1190                 return OnWindow();
1191             }
1192         }
1193
1194         /// <summary>
1195         /// Gets the depth in the hierarchy for the view.
1196         /// </summary>
1197         /// <since_tizen> 3 </since_tizen>
1198         public int HierarchyDepth
1199         {
1200             get
1201             {
1202                 return GetHierarchyDepth();
1203             }
1204         }
1205
1206         /// <summary>
1207         /// Sets the sibling order of the view so the depth position can be defined within the same parent.
1208         /// </summary>
1209         /// <remarks>
1210         /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
1211         /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
1212         /// The values set by this property will likely change.
1213         /// </remarks>
1214         /// <since_tizen> 3 </since_tizen>
1215         public int SiblingOrder
1216         {
1217             get
1218             {
1219                 return (int)GetValue(SiblingOrderProperty);
1220             }
1221             set
1222             {
1223                 SetValue(SiblingOrderProperty, value);
1224
1225                 LayoutGroup layout = Layout as LayoutGroup;
1226                 layout?.ChangeLayoutSiblingOrder(value);
1227
1228                 NotifyPropertyChanged();
1229             }
1230         }
1231
1232         /// <summary>
1233         /// Returns the natural size of the view.
1234         /// </summary>
1235         /// <remarks>
1236         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
1237         /// </remarks>
1238         /// <since_tizen> 5 </since_tizen>
1239         public Vector3 NaturalSize
1240         {
1241             get
1242             {
1243                 Vector3 ret = new Vector3(Interop.Actor.GetNaturalSize(SwigCPtr), true);
1244                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1245                 return ret;
1246             }
1247         }
1248
1249         /// <summary>
1250         /// Returns the natural size (Size2D) of the view.
1251         /// </summary>
1252         /// <remarks>
1253         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
1254         /// </remarks>
1255         /// <since_tizen> 4 </since_tizen>
1256         public Size2D NaturalSize2D
1257         {
1258             get
1259             {
1260                 Vector3 temp = new Vector3(Interop.Actor.GetNaturalSize(SwigCPtr), true);
1261                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
1262
1263                 Size2D sz = new Size2D((int)temp.Width, (int)temp.Height);
1264                 temp.Dispose();
1265                 return sz;
1266             }
1267         }
1268
1269         /// <summary>
1270         /// Gets or sets the origin of a view within its parent's area.<br />
1271         /// 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 />
1272         /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
1273         /// A view's position is the distance between this origin and the view's anchor-point.<br />
1274         /// </summary>
1275         /// <pre>The view has been initialized.</pre>
1276         /// <since_tizen> 3 </since_tizen>
1277         public Position ParentOrigin
1278         {
1279             get
1280             {
1281                 Position tmp = (Position)GetValue(ParentOriginProperty);
1282                 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
1283             }
1284             set
1285             {
1286                 SetValue(ParentOriginProperty, value);
1287                 NotifyPropertyChanged();
1288             }
1289         }
1290
1291         /// <summary>
1292         /// Gets or sets the anchor-point of a view.<br />
1293         /// 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 />
1294         /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
1295         /// A view position is the distance between its parent-origin and this anchor-point.<br />
1296         /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
1297         /// <pre>The view has been initialized.</pre>
1298         /// </summary>
1299         /// <remarks>
1300         /// The property cascade chaining set is possible. For example, this (view.PivotPoint.X = 0.1f;) is possible.
1301         /// </remarks>
1302         /// <since_tizen> 3 </since_tizen>
1303         public Position PivotPoint
1304         {
1305             get
1306             {
1307                 Position tmp = (Position)GetValue(PivotPointProperty);
1308                 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
1309             }
1310             set
1311             {
1312                 SetValue(PivotPointProperty, value);
1313                 NotifyPropertyChanged();
1314             }
1315         }
1316
1317         /// <summary>
1318         /// Gets or sets the size width of the view.
1319         /// </summary>
1320         /// <remarks>
1321         /// <para>
1322         /// Animatable - This property can be animated using <c>Animation</c> class.
1323         /// <code>
1324         /// animation.AnimateTo(view, "SizeWidth", 500.0f);
1325         /// </code>
1326         /// </para>
1327         /// </remarks>
1328         /// <since_tizen> 3 </since_tizen>
1329         public float SizeWidth
1330         {
1331             get
1332             {
1333                 return (float)GetValue(SizeWidthProperty);
1334             }
1335             set
1336             {
1337                 SetValue(SizeWidthProperty, value);
1338                 NotifyPropertyChanged();
1339             }
1340         }
1341
1342         /// <summary>
1343         /// Gets or sets the size height of the view.
1344         /// </summary>
1345         /// <remarks>
1346         /// <para>
1347         /// Animatable - This property can be animated using <c>Animation</c> class.
1348         /// </para>
1349         /// <code>
1350         /// animation.AnimateTo(view, "SizeHeight", 500.0f);
1351         /// </code>
1352         /// </remarks>
1353         /// <since_tizen> 3 </since_tizen>
1354         public float SizeHeight
1355         {
1356             get
1357             {
1358                 return (float)GetValue(SizeHeightProperty);
1359             }
1360             set
1361             {
1362                 SetValue(SizeHeightProperty, value);
1363                 NotifyPropertyChanged();
1364             }
1365         }
1366
1367         /// <summary>
1368         /// Gets or sets the position of the view.<br />
1369         /// By default, sets the position vector between the parent origin and pivot point (default).<br />
1370         /// If the position inheritance is disabled, sets the world position.<br />
1371         /// </summary>
1372         /// <remarks>
1373         /// <para>
1374         /// Animatable - This property can be animated using <c>Animation</c> class.
1375         /// <code>
1376         /// animation.AnimateTo(view, "Position", new Position(50, 0));
1377         /// </code>
1378         /// </para>
1379         /// The property cascade chaining set is possible. For example, this (view.Position.X = 1.0f;) is possible.
1380         /// </remarks>
1381         /// <since_tizen> 3 </since_tizen>
1382         public Position Position
1383         {
1384             get
1385             {
1386                 Position tmp = (Position)GetValue(PositionProperty);
1387                 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
1388             }
1389             set
1390             {
1391                 SetValue(PositionProperty, value);
1392                 NotifyPropertyChanged();
1393             }
1394         }
1395
1396         /// <summary>
1397         /// Gets or sets the position X of the view.
1398         /// </summary>
1399         /// <remarks>
1400         /// <para>
1401         /// Animatable - This property can be animated using <c>Animation</c> class.
1402         /// <code>
1403         /// animation.AnimateTo(view, "PositionX", 50.0f);
1404         /// </code>
1405         /// </para>
1406         /// </remarks>
1407         /// <since_tizen> 3 </since_tizen>
1408         public float PositionX
1409         {
1410             get
1411             {
1412                 return (float)GetValue(PositionXProperty);
1413             }
1414             set
1415             {
1416                 SetValue(PositionXProperty, value);
1417                 NotifyPropertyChanged();
1418             }
1419         }
1420
1421         /// <summary>
1422         /// Gets or sets the position Y of the view.
1423         /// </summary>
1424         /// <remarks>
1425         /// <para>
1426         /// Animatable - This property can be animated using <c>Animation</c> class.
1427         /// <code>
1428         /// animation.AnimateTo(view, "PositionY", 50.0f);
1429         /// </code>
1430         /// </para>
1431         /// </remarks>
1432         /// <since_tizen> 3 </since_tizen>
1433         public float PositionY
1434         {
1435             get
1436             {
1437                 return (float)GetValue(PositionYProperty);
1438             }
1439             set
1440             {
1441                 SetValue(PositionYProperty, value);
1442                 NotifyPropertyChanged();
1443             }
1444         }
1445
1446         /// <summary>
1447         /// Gets or sets the position Z of the view.
1448         /// </summary>
1449         /// <remarks>
1450         /// <para>
1451         /// Animatable - This property can be animated using <c>Animation</c> class.
1452         /// <code>
1453         /// animation.AnimateTo(view, "PositionZ", 50.0f);
1454         /// </code>
1455         /// </para>
1456         /// </remarks>
1457         /// <since_tizen> 3 </since_tizen>
1458         public float PositionZ
1459         {
1460             get
1461             {
1462                 return (float)GetValue(PositionZProperty);
1463             }
1464             set
1465             {
1466                 SetValue(PositionZProperty, value);
1467                 NotifyPropertyChanged();
1468             }
1469         }
1470
1471         /// <summary>
1472         /// Gets or sets the world position of the view.
1473         /// </summary>
1474         /// <since_tizen> 3 </since_tizen>
1475         public Vector3 WorldPosition
1476         {
1477             get
1478             {
1479                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1480                 var pValue = GetProperty(View.Property.WorldPosition);
1481                 pValue.Get(temp);
1482                 pValue.Dispose();
1483                 return temp;
1484             }
1485         }
1486
1487         /// <summary>
1488         /// Gets or sets the orientation of the view.<br />
1489         /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
1490         /// </summary>
1491         /// <remarks>
1492         /// <para>
1493         /// This is an asynchronous method.
1494         /// </para>
1495         /// <para>
1496         /// Animatable - This property can be animated using <c>Animation</c> class.
1497         /// <code>
1498         /// animation.AnimateTo(view, "Orientation", new Rotation(new Radian((float)Math.PI), Vector3.XAxis));
1499         /// </code>
1500         /// </para>
1501         /// </remarks>
1502         /// <since_tizen> 3 </since_tizen>
1503         public Rotation Orientation
1504         {
1505             get
1506             {
1507                 return (Rotation)GetValue(OrientationProperty);
1508             }
1509             set
1510             {
1511                 SetValue(OrientationProperty, value);
1512                 NotifyPropertyChanged();
1513             }
1514         }
1515
1516         /// <summary>
1517         /// Gets or sets the world orientation of the view.<br />
1518         /// </summary>
1519         /// <since_tizen> 3 </since_tizen>
1520         public Rotation WorldOrientation
1521         {
1522             get
1523             {
1524                 Rotation temp = new Rotation();
1525                 var pValue = GetProperty(View.Property.WorldOrientation);
1526                 pValue.Get(temp);
1527                 pValue.Dispose();
1528                 return temp;
1529             }
1530         }
1531
1532         /// <summary>
1533         /// Gets or sets the scale factor applied to the view.<br />
1534         /// </summary>
1535         /// <remarks>
1536         /// <para>
1537         /// Animatable - This property can be animated using <c>Animation</c> class.
1538         /// <code>
1539         /// animation.AnimateTo(view, "Scale", new Vector3(1.5f, 1.5f, 1.0f));
1540         /// </code>
1541         /// </para>
1542         /// The property cascade chaining set is possible. For example, this (view.Scale.X = 0.1f;) is possible.
1543         /// </remarks>
1544         /// <since_tizen> 3 </since_tizen>
1545         public Vector3 Scale
1546         {
1547             get
1548             {
1549                 Vector3 temp = (Vector3)GetValue(ScaleProperty);
1550                 return new Vector3(OnScaleChanged, temp.X, temp.Y, temp.Z);
1551             }
1552             set
1553             {
1554                 SetValue(ScaleProperty, value);
1555                 NotifyPropertyChanged();
1556             }
1557         }
1558
1559         /// <summary>
1560         /// Gets or sets the scale X factor applied to the view.
1561         /// </summary>
1562         /// <remarks>
1563         /// <para>
1564         /// Animatable - This property can be animated using <c>Animation</c> class.
1565         /// <code>
1566         /// animation.AnimateTo(view, "ScaleX", 1.5f);
1567         /// </code>
1568         /// </para>
1569         /// </remarks>
1570         /// <since_tizen> 3 </since_tizen>
1571         public float ScaleX
1572         {
1573             get
1574             {
1575                 return (float)GetValue(ScaleXProperty);
1576             }
1577             set
1578             {
1579                 SetValue(ScaleXProperty, value);
1580                 NotifyPropertyChanged();
1581             }
1582         }
1583
1584         /// <summary>
1585         /// Gets or sets the scale Y factor applied to the view.
1586         /// </summary>
1587         /// <remarks>
1588         /// <para>
1589         /// Animatable - This property can be animated using <c>Animation</c> class.
1590         /// <code>
1591         /// animation.AnimateTo(view, "ScaleY", 1.5f);
1592         /// </code>
1593         /// </para>
1594         /// </remarks>
1595         /// <since_tizen> 3 </since_tizen>
1596         public float ScaleY
1597         {
1598             get
1599             {
1600                 return (float)GetValue(ScaleYProperty);
1601             }
1602             set
1603             {
1604                 SetValue(ScaleYProperty, value);
1605                 NotifyPropertyChanged();
1606             }
1607         }
1608
1609         /// <summary>
1610         /// Gets or sets the scale Z factor applied to the view.
1611         /// </summary>
1612         /// <remarks>
1613         /// <para>
1614         /// Animatable - This property can be animated using <c>Animation</c> class.
1615         /// <code>
1616         /// animation.AnimateTo(view, "ScaleZ", 1.5f);
1617         /// </code>
1618         /// </para>
1619         /// </remarks>
1620         /// <since_tizen> 3 </since_tizen>
1621         public float ScaleZ
1622         {
1623             get
1624             {
1625                 return (float)GetValue(ScaleZProperty);
1626             }
1627             set
1628             {
1629                 SetValue(ScaleZProperty, value);
1630                 NotifyPropertyChanged();
1631             }
1632         }
1633
1634         /// <summary>
1635         /// Gets the world scale of the view.
1636         /// </summary>
1637         /// <since_tizen> 3 </since_tizen>
1638         public Vector3 WorldScale
1639         {
1640             get
1641             {
1642                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1643                 var pValue = GetProperty(View.Property.WorldScale);
1644                 pValue.Get(temp);
1645                 pValue.Dispose();
1646                 return temp;
1647             }
1648         }
1649
1650         /// <summary>
1651         /// Retrieves the visibility flag of the view.
1652         /// </summary>
1653         /// <remarks>
1654         /// <para>
1655         /// If the view is not visible, then the view and its children will not be rendered.
1656         /// 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.
1657         /// </para>
1658         /// <para>
1659         /// Animatable - This property can be animated using <c>Animation</c> class.
1660         /// <code>
1661         /// animation.AnimateTo(view, "Visibility", false);
1662         /// </code>
1663         /// </para>
1664         /// </remarks>
1665         /// <since_tizen> 3 </since_tizen>
1666         public bool Visibility
1667         {
1668             get
1669             {
1670                 bool temp = false;
1671                 var pValue = GetProperty(View.Property.VISIBLE);
1672                 pValue.Get(out temp);
1673                 pValue.Dispose();
1674                 return temp;
1675             }
1676         }
1677
1678         /// <summary>
1679         /// Gets the view's world color.
1680         /// </summary>
1681         /// <since_tizen> 3 </since_tizen>
1682         public Vector4 WorldColor
1683         {
1684             get
1685             {
1686                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1687                 var pValue = GetProperty(View.Property.WorldColor);
1688                 pValue.Get(temp);
1689                 pValue.Dispose();
1690                 return temp;
1691             }
1692         }
1693
1694         /// <summary>
1695         /// Gets or sets the view's name.
1696         /// </summary>
1697         /// <since_tizen> 3 </since_tizen>
1698         public string Name
1699         {
1700             get
1701             {
1702                 return (string)GetValue(NameProperty);
1703             }
1704             set
1705             {
1706                 SetValue(NameProperty, value);
1707                 NotifyPropertyChanged();
1708             }
1709         }
1710
1711         /// <summary>
1712         /// Get the number of children held by the view.
1713         /// </summary>
1714         /// <since_tizen> 3 </since_tizen>
1715         public new uint ChildCount
1716         {
1717             get
1718             {
1719                 return Convert.ToUInt32(Children.Count);
1720             }
1721         }
1722
1723         /// <summary>
1724         /// Gets the view's ID.
1725         /// Read-only
1726         /// </summary>
1727         /// <since_tizen> 3 </since_tizen>
1728         public uint ID
1729         {
1730             get
1731             {
1732                 return GetId();
1733             }
1734         }
1735
1736         /// <summary>
1737         /// Gets or sets the status of whether the view should emit touch or hover signals.
1738         /// If a View is made insensitive, then the View and its children are not hittable.
1739         /// </summary>
1740         /// <since_tizen> 3 </since_tizen>
1741         public bool Sensitive
1742         {
1743             get
1744             {
1745                 return (bool)GetValue(SensitiveProperty);
1746             }
1747             set
1748             {
1749                 SetValue(SensitiveProperty, value);
1750                 NotifyPropertyChanged();
1751             }
1752         }
1753
1754         /// <summary>
1755         /// 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.
1756         /// </summary>
1757         /// <since_tizen> 3 </since_tizen>
1758         public bool LeaveRequired
1759         {
1760             get
1761             {
1762                 return (bool)GetValue(LeaveRequiredProperty);
1763             }
1764             set
1765             {
1766                 SetValue(LeaveRequiredProperty, value);
1767                 NotifyPropertyChanged();
1768             }
1769         }
1770
1771         /// <summary>
1772         /// Gets or sets the status of whether a child view inherits it's parent's orientation.
1773         /// </summary>
1774         /// <since_tizen> 3 </since_tizen>
1775         public bool InheritOrientation
1776         {
1777             get
1778             {
1779                 return (bool)GetValue(InheritOrientationProperty);
1780             }
1781             set
1782             {
1783                 SetValue(InheritOrientationProperty, value);
1784                 NotifyPropertyChanged();
1785             }
1786         }
1787
1788         /// <summary>
1789         /// Gets or sets the status of whether a child view inherits it's parent's scale.
1790         /// </summary>
1791         /// <since_tizen> 3 </since_tizen>
1792         public bool InheritScale
1793         {
1794             get
1795             {
1796                 return (bool)GetValue(InheritScaleProperty);
1797             }
1798             set
1799             {
1800                 SetValue(InheritScaleProperty, value);
1801                 NotifyPropertyChanged();
1802             }
1803         }
1804
1805         /// <summary>
1806         /// Gets or sets the status of how the view and its children should be drawn.<br />
1807         /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
1808         /// 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 />
1809         /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
1810         /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
1811         /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
1812         /// </summary>
1813         /// <since_tizen> 3 </since_tizen>
1814         public DrawModeType DrawMode
1815         {
1816             get
1817             {
1818                 return (DrawModeType)GetValue(DrawModeProperty);
1819             }
1820             set
1821             {
1822                 SetValue(DrawModeProperty, value);
1823                 NotifyPropertyChanged();
1824             }
1825         }
1826
1827         /// <summary>
1828         /// Gets or sets the relative to parent size factor of the view.<br />
1829         /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
1830         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
1831         /// </summary>
1832         /// <remarks>
1833         /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
1834         /// </remarks>
1835         /// <since_tizen> 3 </since_tizen>
1836         public Vector3 SizeModeFactor
1837         {
1838             get
1839             {
1840                 Vector3 temp = (Vector3)GetValue(SizeModeFactorProperty);
1841                 return new Vector3(OnSizeModeFactorChanged, temp.X, temp.Y, temp.Z);
1842             }
1843             set
1844             {
1845                 SetValue(SizeModeFactorProperty, value);
1846                 NotifyPropertyChanged();
1847             }
1848         }
1849
1850         /// <summary>
1851         /// Gets or sets the width resize policy to be used.
1852         /// </summary>
1853         /// <since_tizen> 3 </since_tizen>
1854         public ResizePolicyType WidthResizePolicy
1855         {
1856             get
1857             {
1858                 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
1859             }
1860             set
1861             {
1862                 SetValue(WidthResizePolicyProperty, value);
1863                 NotifyPropertyChanged();
1864             }
1865         }
1866
1867         /// <summary>
1868         /// Gets or sets the height resize policy to be used.
1869         /// </summary>
1870         /// <since_tizen> 3 </since_tizen>
1871         public ResizePolicyType HeightResizePolicy
1872         {
1873             get
1874             {
1875                 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
1876             }
1877             set
1878             {
1879                 SetValue(HeightResizePolicyProperty, value);
1880                 NotifyPropertyChanged();
1881             }
1882         }
1883
1884         /// <summary>
1885         /// Gets or sets the policy to use when setting size with size negotiation.<br />
1886         /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
1887         /// </summary>
1888         /// <since_tizen> 3 </since_tizen>
1889         public SizeScalePolicyType SizeScalePolicy
1890         {
1891             get
1892             {
1893                 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
1894             }
1895             set
1896             {
1897                 SetValue(SizeScalePolicyProperty, value);
1898                 NotifyPropertyChanged();
1899             }
1900         }
1901
1902         /// <summary>
1903         ///  Gets or sets the status of whether the width size is dependent on the height size.
1904         /// </summary>
1905         /// <since_tizen> 3 </since_tizen>
1906         public bool WidthForHeight
1907         {
1908             get
1909             {
1910                 return (bool)GetValue(WidthForHeightProperty);
1911             }
1912             set
1913             {
1914                 SetValue(WidthForHeightProperty, value);
1915                 NotifyPropertyChanged();
1916             }
1917         }
1918
1919         /// <summary>
1920         /// Gets or sets the status of whether the height size is dependent on the width size.
1921         /// </summary>
1922         /// <since_tizen> 3 </since_tizen>
1923         public bool HeightForWidth
1924         {
1925             get
1926             {
1927                 return (bool)GetValue(HeightForWidthProperty);
1928             }
1929             set
1930             {
1931                 SetValue(HeightForWidthProperty, value);
1932                 NotifyPropertyChanged();
1933             }
1934         }
1935
1936         /// <summary>
1937         /// Gets or sets the padding for use in layout.
1938         /// </summary>
1939         /// <remarks>
1940         /// The property cascade chaining set is possible. For example, this (view.Padding.X = 0.1f;) is possible.
1941         /// </remarks>
1942         /// <since_tizen> 5 </since_tizen>
1943         public Extents Padding
1944         {
1945             get
1946             {
1947                 // If View has a Layout then padding in stored in the base Layout class
1948                 if (Layout != null)
1949                 {
1950                     return Layout.Padding;
1951                 }
1952                 else
1953                 {
1954                     Extents temp = (Extents)GetValue(PaddingProperty);
1955                     return new Extents(OnPaddingChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
1956                 }
1957                 // Two return points to prevent creating a zeroed Extent native object before assignment
1958             }
1959             set
1960             {
1961                 Extents padding = value;
1962                 if (Layout != null)
1963                 {
1964                     // Layout set so store Padding in LayoutItem instead of in View.
1965                     // If View stores the Padding value then Legacy Size Negotiation will overwrite
1966                     // the position and sizes measure in the Layouting.
1967                     Layout.Padding = value;
1968                     // If Layout is a LayoutItem then it could be a View that handles it's own padding.
1969                     // Let the View keeps it's padding.  Still store Padding in Layout to reduce code paths.
1970                     if (typeof(LayoutGroup).IsAssignableFrom(Layout.GetType())) // If a Layout container of some kind.
1971                     {
1972                         padding = new Extents(0, 0, 0, 0); // Reset value stored in View.
1973                     }
1974                 }
1975
1976                 SetValue(PaddingProperty, padding);
1977                 NotifyPropertyChanged();
1978             }
1979         }
1980
1981         /// <summary>
1982         /// Gets or sets the minimum size the view can be assigned in size negotiation.
1983         /// </summary>
1984         /// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
1985         /// <remarks>
1986         /// The property cascade chaining set is possible. For example, this (view.MinimumSize.Width = 1;) is possible.
1987         /// </remarks>
1988         /// <since_tizen> 3 </since_tizen>
1989         public Size2D MinimumSize
1990         {
1991             get
1992             {
1993                 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
1994                 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
1995             }
1996             set
1997             {
1998                 if (value == null)
1999                 {
2000                     throw new ArgumentNullException(nameof(value));
2001                 }
2002                 if (layout != null)
2003                 {
2004                     // Note: it only works if minimum size is >= than natural size.
2005                     // To force the size it should be done through the width&height spec or Size2D.
2006                     layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
2007                     layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
2008                     layout.RequestLayout();
2009                 }
2010                 SetValue(MinimumSizeProperty, value);
2011                 NotifyPropertyChanged();
2012             }
2013         }
2014
2015         /// <summary>
2016         /// Gets or sets the maximum size the view can be assigned in size negotiation.
2017         /// </summary>
2018         /// <remarks>
2019         /// The property cascade chaining set is possible. For example, this (view.MaximumSize.Width = 1;) is possible.
2020         /// </remarks>
2021         /// <since_tizen> 3 </since_tizen>
2022         public Size2D MaximumSize
2023         {
2024             get
2025             {
2026                 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
2027                 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
2028             }
2029             set
2030             {
2031                 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
2032                 // MATCH_PARENT spec + parent container size can be used to limit
2033                 if (layout != null)
2034                 {
2035                     layout.RequestLayout();
2036                 }
2037                 SetValue(MaximumSizeProperty, value);
2038                 NotifyPropertyChanged();
2039             }
2040         }
2041
2042         /// <summary>
2043         /// Gets or sets whether a child view inherits it's parent's position.<br />
2044         /// Default is to inherit.<br />
2045         /// 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 />
2046         /// </summary>
2047         /// <since_tizen> 3 </since_tizen>
2048         public bool InheritPosition
2049         {
2050             get
2051             {
2052                 return (bool)GetValue(InheritPositionProperty);
2053             }
2054             set
2055             {
2056                 SetValue(InheritPositionProperty, value);
2057                 NotifyPropertyChanged();
2058             }
2059         }
2060
2061         /// <summary>
2062         /// Gets or sets the clipping behavior (mode) of it's children.
2063         /// </summary>
2064         /// <since_tizen> 3 </since_tizen>
2065         public ClippingModeType ClippingMode
2066         {
2067             get
2068             {
2069                 return (ClippingModeType)GetValue(ClippingModeProperty);
2070             }
2071             set
2072             {
2073                 SetValue(ClippingModeProperty, value);
2074                 NotifyPropertyChanged();
2075             }
2076         }
2077
2078         /// <summary>
2079         /// Gets the number of renderers held by the view.
2080         /// </summary>
2081         /// <since_tizen> 3 </since_tizen>
2082         public uint RendererCount
2083         {
2084             get
2085             {
2086                 return GetRendererCount();
2087             }
2088         }
2089
2090         /// <summary>
2091         /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
2092         /// </summary>
2093         /// <remarks>
2094         /// The property cascade chaining set is possible. For example, this (view.AnchorPoint.X = 0.1f;) is possible.
2095         /// </remarks>
2096         /// <since_tizen> 3 </since_tizen>
2097         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
2098             "Like: " +
2099             "View view = new View(); " +
2100             "view.PivotPoint = PivotPoint.Center; " +
2101             "view.PositionUsesPivotPoint = true;")]
2102         [EditorBrowsable(EditorBrowsableState.Never)]
2103         public Position AnchorPoint
2104         {
2105             get
2106             {
2107                 return GetValue(AnchorPointProperty) as Position;
2108             }
2109             set
2110             {
2111                 SetValue(AnchorPointProperty, value);
2112             }
2113         }
2114
2115         private Position InternalAnchorPoint
2116         {
2117             get
2118             {
2119                 Position temp = new Position(0.0f, 0.0f, 0.0f);
2120                 var pValue = GetProperty(View.Property.AnchorPoint);
2121                 pValue.Get(temp);
2122                 pValue.Dispose();
2123                 Position ret = new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
2124                 temp.Dispose();
2125                 return ret;
2126             }
2127             set
2128             {
2129                 var temp = new Tizen.NUI.PropertyValue(value);
2130                 SetProperty(View.Property.AnchorPoint, temp);
2131                 temp.Dispose();
2132                 NotifyPropertyChanged();
2133             }
2134         }
2135
2136         /// <summary>
2137         /// Sets the size of a view for the width, the height and the depth.<br />
2138         /// Geometry can be scaled to fit within this area.<br />
2139         /// This does not interfere with the view's scale factor.<br />
2140         /// The views default depth is the minimum of width and height.<br />
2141         /// </summary>
2142         /// <remarks>
2143         /// <para>
2144         /// Animatable - This property can be animated using <c>Animation</c> class.
2145         /// <code>
2146         /// animation.AnimateTo(view, "Size", new Size(100, 100));
2147         /// </code>
2148         /// </para>
2149         /// The property cascade chaining set is possible. For example, this (view.Size.Width = 1.0f;) is possible.
2150         /// </remarks>
2151         /// <since_tizen> 5 </since_tizen>
2152         public Size Size
2153         {
2154             get
2155             {
2156                 Size tmp = (Size)GetValue(SizeProperty);
2157                 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
2158             }
2159             set
2160             {
2161                 SetValue(SizeProperty, value);
2162                 NotifyPropertyChanged();
2163             }
2164         }
2165
2166         /// <summary>
2167         /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
2168         /// </summary>
2169         /// <since_tizen> 3 </since_tizen>
2170         [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
2171             "Like: " +
2172             "Container parent =  view.GetParent(); " +
2173             "View view = parent as View;")]
2174         [EditorBrowsable(EditorBrowsableState.Never)]
2175         public new View Parent
2176         {
2177             get
2178             {
2179                 View ret;
2180                 IntPtr cPtr = Interop.Actor.GetParent(SwigCPtr);
2181                 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
2182                 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
2183
2184                 if (basehandle is Layer layer)
2185                 {
2186                     ret = new View(Layer.getCPtr(layer).Handle, false);
2187                     NUILog.Error("This Parent property is deprecated, should do not be used");
2188                 }
2189                 else
2190                 {
2191                     ret = basehandle as View;
2192                 }
2193
2194                 Interop.BaseHandle.DeleteBaseHandle(CPtr);
2195                 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2196
2197                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
2198                 return ret;
2199             }
2200         }
2201
2202         /// <summary>
2203         /// Gets/Sets whether inherit parent's the layout Direction.
2204         /// </summary>
2205         /// <since_tizen> 4 </since_tizen>
2206         public bool InheritLayoutDirection
2207         {
2208             get
2209             {
2210                 return (bool)GetValue(InheritLayoutDirectionProperty);
2211             }
2212             set
2213             {
2214                 SetValue(InheritLayoutDirectionProperty, value);
2215                 NotifyPropertyChanged();
2216             }
2217         }
2218
2219         /// <summary>
2220         /// Gets/Sets the layout Direction.
2221         /// </summary>
2222         /// <since_tizen> 4 </since_tizen>
2223         public ViewLayoutDirectionType LayoutDirection
2224         {
2225             get
2226             {
2227                 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
2228             }
2229             set
2230             {
2231                 SetValue(LayoutDirectionProperty, value);
2232                 NotifyPropertyChanged();
2233                 layout?.RequestLayout();
2234             }
2235         }
2236
2237         /// <summary>
2238         /// Gets or sets the Margin for use in layout.
2239         /// </summary>
2240         /// <remarks>
2241         /// Margin property is supported by Layout algorithms and containers.
2242         /// Please Set Layout if you want to use Margin property.
2243         /// The property cascade chaining set is possible. For example, this (view.Margin.X = 0.1f;) is possible.
2244         /// </remarks>
2245         /// <since_tizen> 4 </since_tizen>
2246         public Extents Margin
2247         {
2248             get
2249             {
2250                 // If View has a Layout then margin is stored in Layout.
2251                 if (Layout != null)
2252                 {
2253                     return Layout.Margin;
2254                 }
2255                 else
2256                 {
2257                     // If Layout not set then return margin stored in View.
2258                     Extents temp = (Extents)GetValue(MarginProperty);
2259                     return new Extents(OnMarginChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
2260                 }
2261                 // Two return points to prevent creating a zeroed Extent native object before assignment
2262             }
2263             set
2264             {
2265                 if (Layout != null)
2266                 {
2267                     // Layout set so store Margin in LayoutItem instead of View.
2268                     // If View stores the Margin too then the Legacy Size Negotiation will
2269                     // overwrite the position and size values measured in the Layouting.
2270                     Layout.Margin = value;
2271                     SetValue(MarginProperty, new Extents(0, 0, 0, 0));
2272                     layout?.RequestLayout();
2273                 }
2274                 else
2275                 {
2276                     SetValue(MarginProperty, value);
2277                 }
2278                 NotifyPropertyChanged();
2279                 layout?.RequestLayout();
2280             }
2281         }
2282
2283         ///<summary>
2284         /// The required policy for this dimension, <see cref="LayoutParamPolicies"/> values or exact value.
2285         ///</summary>
2286         /// <example>
2287         /// <code>
2288         /// // matchParentView matches its size to its parent size.
2289         /// matchParentView.WidthSpecification = LayoutParamPolicies.MatchParent;
2290         /// matchParentView.HeightSpecification = LayoutParamPolicies.MatchParent;
2291         ///
2292         /// // wrapContentView wraps its children with their desired size.
2293         /// wrapContentView.WidthSpecification = LayoutParamPolicies.WrapContent;
2294         /// wrapContentView.HeightSpecification = LayoutParamPolicies.WrapContent;
2295         ///
2296         /// // exactSizeView shows itself with an exact size.
2297         /// exactSizeView.WidthSpecification = 100;
2298         /// exactSizeView.HeightSpecification = 100;
2299         /// </code>
2300         /// </example>
2301         /// <since_tizen> 6 </since_tizen>
2302         public int WidthSpecification
2303         {
2304             get
2305             {
2306                 return (int)GetValue(WidthSpecificationProperty);
2307             }
2308             set
2309             {
2310                 SetValue(WidthSpecificationProperty, value);
2311                 NotifyPropertyChanged();
2312             }
2313         }
2314
2315         private int InternalWidthSpecification
2316         {
2317             get
2318             {
2319                 return widthPolicy;
2320             }
2321             set
2322             {
2323                 if (value == widthPolicy)
2324                     return;
2325
2326                 widthPolicy = value;
2327                 if (widthPolicy >= 0)
2328                 {
2329                     if (heightPolicy >= 0) // Policy an exact value
2330                     {
2331                         // Create Size2D only both _widthPolicy and _heightPolicy are set.
2332                         Size2D = new Size2D(widthPolicy, heightPolicy);
2333                     }
2334                 }
2335                 layout?.RequestLayout();
2336             }
2337         }
2338
2339         ///<summary>
2340         /// The required policy for this dimension, <see cref="LayoutParamPolicies"/> values or exact value.
2341         ///</summary>
2342         /// <example>
2343         /// <code>
2344         /// // matchParentView matches its size to its parent size.
2345         /// matchParentView.WidthSpecification = LayoutParamPolicies.MatchParent;
2346         /// matchParentView.HeightSpecification = LayoutParamPolicies.MatchParent;
2347         ///
2348         /// // wrapContentView wraps its children with their desired size.
2349         /// wrapContentView.WidthSpecification = LayoutParamPolicies.WrapContent;
2350         /// wrapContentView.HeightSpecification = LayoutParamPolicies.WrapContent;
2351         ///
2352         /// // exactSizeView shows itself with an exact size.
2353         /// exactSizeView.WidthSpecification = 100;
2354         /// exactSizeView.HeightSpecification = 100;
2355         /// </code>
2356         /// </example>
2357         /// <since_tizen> 6 </since_tizen>
2358         public int HeightSpecification
2359         {
2360             get
2361             {
2362                 return (int)GetValue(HeightSpecificationProperty);
2363             }
2364             set
2365             {
2366                 SetValue(HeightSpecificationProperty, value);
2367                 NotifyPropertyChanged();
2368             }
2369         }
2370
2371         private int InternalHeightSpecification
2372         {
2373             get
2374             {
2375                 return heightPolicy;
2376             }
2377             set
2378             {
2379                 if (value == heightPolicy)
2380                     return;
2381
2382                 heightPolicy = value;
2383                 if (heightPolicy >= 0)
2384                 {
2385                     if (widthPolicy >= 0) // Policy an exact value
2386                     {
2387                         // Create Size2D only both _widthPolicy and _heightPolicy are set.
2388                         Size2D = new Size2D(widthPolicy, heightPolicy);
2389                     }
2390                 }
2391                 layout?.RequestLayout();
2392             }
2393         }
2394
2395         ///<summary>
2396         /// Gets the List of transitions for this View.
2397         ///</summary>
2398         /// <since_tizen> 6 </since_tizen>
2399         public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
2400         {
2401             get
2402             {
2403                 if (layoutTransitions == null)
2404                 {
2405                     layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
2406                 }
2407                 return layoutTransitions;
2408             }
2409         }
2410
2411         ///<summary>
2412         /// Sets a layout transitions for this View.
2413         ///</summary>
2414         /// <exception cref="ArgumentNullException"> Thrown when value is null. </exception>
2415         /// <remarks>
2416         /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
2417         /// </remarks>
2418         /// <since_tizen> 6 </since_tizen>
2419         public LayoutTransition LayoutTransition
2420         {
2421             get
2422             {
2423                 return GetValue(LayoutTransitionProperty) as LayoutTransition;
2424             }
2425             set
2426             {
2427                 SetValue(LayoutTransitionProperty, value);
2428                 NotifyPropertyChanged();
2429             }
2430         }
2431
2432         private LayoutTransition InternalLayoutTransition
2433         {
2434             get
2435             {
2436                 return layoutTransition;
2437             }
2438             set
2439             {
2440                 if (value == null)
2441                 {
2442                     throw new global::System.ArgumentNullException(nameof(value));
2443                 }
2444                 if (layoutTransitions == null)
2445                 {
2446                     layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
2447                 }
2448
2449                 LayoutTransitionsHelper.AddTransitionForCondition(layoutTransitions, value.Condition, value, true);
2450
2451                 AttachTransitionsToChildren(value);
2452
2453                 layoutTransition = value;
2454             }
2455         }
2456
2457         /// <summary>
2458         /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
2459         /// </summary>
2460         /// <remarks>
2461         /// The property cascade chaining set is possible. For example, this (view.DecorationBoundingBox.X = 0.1f;) is possible.
2462         /// </remarks>
2463         /// <since_tizen> 4 </since_tizen>
2464         [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
2465         [EditorBrowsable(EditorBrowsableState.Never)]
2466         public Extents PaddingEX
2467         {
2468             get
2469             {
2470                 return GetValue(PaddingEXProperty) as Extents;
2471             }
2472             set
2473             {
2474                 SetValue(PaddingEXProperty, value);
2475             }
2476         }
2477
2478         private Extents InternalPaddingEX
2479         {
2480             get
2481             {
2482                 Extents temp = new Extents(0, 0, 0, 0);
2483                 var pValue = GetProperty(View.Property.PADDING);
2484                 pValue.Get(temp);
2485                 pValue.Dispose();
2486                 Extents ret = new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
2487                 temp.Dispose();
2488                 return ret;
2489             }
2490             set
2491             {
2492                 var temp = new Tizen.NUI.PropertyValue(value);
2493                 SetProperty(View.Property.PADDING, temp);
2494                 temp.Dispose();
2495                 NotifyPropertyChanged();
2496                 layout?.RequestLayout();
2497             }
2498         }
2499
2500         [EditorBrowsable(EditorBrowsableState.Never)]
2501         public XamlStyle XamlStyle
2502         {
2503             get
2504             {
2505                 return (XamlStyle)GetValue(XamlStyleProperty);
2506             }
2507             set
2508             {
2509                 SetValue(XamlStyleProperty, value);
2510             }
2511         }
2512
2513         /// <summary>
2514         /// The Color of View. This is an RGBA value.
2515         /// </summary>
2516         /// <remarks>
2517         /// <para>
2518         /// Animatable - This property can be animated using <c>Animation</c> class.
2519         /// </para>
2520         /// The property cascade chaining set is possible. For example, this (view.Color.X = 0.1f;) is possible.
2521         /// </remarks>
2522         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2523         [EditorBrowsable(EditorBrowsableState.Never)]
2524         public Color Color
2525         {
2526             get
2527             {
2528                 Color temp = (Color)GetValue(ColorProperty);
2529                 return new Color(OnColorChanged, temp.R, temp.G, temp.B, temp.A);
2530             }
2531             set
2532             {
2533                 SetValue(ColorProperty, value);
2534                 NotifyPropertyChanged();
2535             }
2536         }
2537
2538         /// <summary>
2539         /// Set the layout on this View. Replaces any existing Layout.
2540         /// </summary>
2541         /// <remarks>
2542         /// If this Layout is set as null explicitly, it means this View itself and it's child Views will not use Layout anymore.
2543         /// </remarks>
2544         /// <since_tizen> 6 </since_tizen>
2545         public LayoutItem Layout
2546         {
2547             get
2548             {
2549                 return GetValue(LayoutProperty) as LayoutItem;
2550             }
2551             set
2552             {
2553                 SetValue(LayoutProperty, value);
2554             }
2555         }
2556
2557         private LayoutItem InternalLayout
2558         {
2559             get
2560             {
2561                 return layout;
2562             }
2563             set
2564             {
2565                 // Do nothing if layout provided is already set on this View.
2566                 if (value == layout)
2567                 {
2568                     return;
2569                 }
2570
2571                 LayoutingDisabled = false;
2572                 layoutSet = true;
2573
2574                 // If new layout being set already has a owner then that owner receives a replacement default layout.
2575                 // First check if the layout to be set already has a owner.
2576                 if (value?.Owner != null)
2577                 {
2578                     // Previous owner of the layout gets a default layout as a replacement.
2579                     value.Owner.Layout = new AbsoluteLayout()
2580                     {
2581                         // Copy Margin and Padding to replacement LayoutGroup.
2582                         Margin = value.Margin,
2583                         Padding = value.Padding,
2584                     };
2585                 }
2586
2587                 // Copy Margin and Padding to new layout being set or restore padding and margin back to
2588                 // View if no replacement. Previously margin and padding values would have been moved from
2589                 // the View to the layout.
2590                 if (layout != null) // Existing layout
2591                 {
2592                     if (value != null)
2593                     {
2594                         // Existing layout being replaced so copy over margin and padding values.
2595                         value.Margin = layout.Margin;
2596                         value.Padding = layout.Padding;
2597                         value.SetPositionByLayout = !excludeLayouting;
2598                     }
2599                     else
2600                     {
2601                         // Layout not being replaced so restore margin and padding to View.
2602                         SetValue(MarginProperty, layout.Margin);
2603                         SetValue(PaddingProperty, layout.Padding);
2604                         NotifyPropertyChanged();
2605                     }
2606                 }
2607                 else
2608                 {
2609                     // First Layout to be added to the View hence copy
2610
2611                     // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
2612                     if (value != null)
2613                     {
2614                         Extents margin = Margin;
2615                         Extents padding = Padding;
2616                         if (margin.Top != 0 || margin.Bottom != 0 || margin.Start != 0 || margin.End != 0)
2617                         {
2618                             // If View already has a margin set then store it in Layout instead.
2619                             value.Margin = margin;
2620                             SetValue(MarginProperty, new Extents(0, 0, 0, 0));
2621                             NotifyPropertyChanged();
2622                         }
2623
2624                         if (padding.Top != 0 || padding.Bottom != 0 || padding.Start != 0 || padding.End != 0)
2625                         {
2626                             // If View already has a padding set then store it in Layout instead.
2627                             value.Padding = padding;
2628
2629                             // If Layout is a LayoutItem then it could be a View that handles it's own padding.
2630                             // Let the View keeps it's padding.  Still store Padding in Layout to reduce code paths.
2631                             if (typeof(LayoutGroup).IsAssignableFrom(value.GetType()))
2632                             {
2633                                 SetValue(PaddingProperty, new Extents(0, 0, 0, 0));
2634                                 NotifyPropertyChanged();
2635                             }
2636                         }
2637
2638                         value.SetPositionByLayout = !excludeLayouting;
2639                     }
2640                 }
2641
2642                 // Remove existing layout from it's parent layout group.
2643                 layout?.Unparent();
2644
2645                 // Set layout to this view
2646                 SetLayout(value);
2647             }
2648         }
2649
2650         /// <summary>
2651         /// The weight of the View, used to share available space in a layout with siblings.
2652         /// </summary>
2653         /// <since_tizen> 6 </since_tizen>
2654         public float Weight
2655         {
2656             get
2657             {
2658                 return weight;
2659             }
2660             set
2661             {
2662                 weight = value;
2663                 layout?.RequestLayout();
2664             }
2665         }
2666
2667         /// <summary>
2668         ///  Whether to load the BackgroundImage synchronously.
2669         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
2670         ///  Note: For Normal Quad images only.
2671         /// </summary>
2672         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
2673         [EditorBrowsable(EditorBrowsableState.Never)]
2674         public bool BackgroundImageSynchronosLoading
2675         {
2676             get
2677             {
2678                 return (bool)GetValue(BackgroundImageSynchronosLoadingProperty);
2679             }
2680             set
2681             {
2682                 SetValue(BackgroundImageSynchronosLoadingProperty, value);
2683                 NotifyPropertyChanged();
2684             }
2685         }
2686
2687         private bool InternalBackgroundImageSynchronosLoading
2688         {
2689             get
2690             {
2691                 return BackgroundImageSynchronousLoading;
2692             }
2693             set
2694             {
2695                 BackgroundImageSynchronousLoading = value;
2696             }
2697         }
2698
2699         /// <summary>
2700         ///  Whether to load the BackgroundImage synchronously.
2701         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
2702         ///  Note: For Normal Quad images only.
2703         /// </summary>
2704         /// This will be public opened in tizen_7.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2705         [EditorBrowsable(EditorBrowsableState.Never)]
2706         public bool BackgroundImageSynchronousLoading
2707         {
2708             get
2709             {
2710                 return (bool)GetValue(BackgroundImageSynchronousLoadingProperty);
2711             }
2712             set
2713             {
2714                 SetValue(BackgroundImageSynchronousLoadingProperty, value);
2715                 NotifyPropertyChanged();
2716             }
2717         }
2718
2719         private bool InternalBackgroundImageSynchronousLoading
2720         {
2721             get
2722             {
2723                 return backgroundImageSynchronousLoading;
2724             }
2725             set
2726             {
2727                 backgroundImageSynchronousLoading = value;
2728
2729                 string bgUrl = null;
2730                 var pValue = Background.Find(ImageVisualProperty.URL);
2731                 pValue?.Get(out bgUrl);
2732                 pValue?.Dispose();
2733
2734                 if (!string.IsNullOrEmpty(bgUrl))
2735                 {
2736                     PropertyMap bgMap = this.Background;
2737                     var temp = new PropertyValue(backgroundImageSynchronousLoading);
2738                     bgMap.Add("synchronousLoading", temp);
2739                     temp.Dispose();
2740                     Background = bgMap;
2741                 }
2742             }
2743         }
2744
2745         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
2746         [EditorBrowsable(EditorBrowsableState.Never)]
2747         public Vector2 UpdateSizeHint
2748         {
2749             get
2750             {
2751                 return (Vector2)GetValue(UpdateSizeHintProperty);
2752             }
2753             set
2754             {
2755                 SetValue(UpdateSizeHintProperty, value);
2756                 NotifyPropertyChanged();
2757             }
2758         }
2759
2760         /// <summary>
2761         /// Enable/Disable ControlState propagation for children.
2762         /// It is false by default.
2763         /// If the View needs to share ControlState with descendants, please set it true.
2764         /// Please note that, changing the value will also changes children's EnableControlStatePropagation value recursively.
2765         /// </summary>
2766         [EditorBrowsable(EditorBrowsableState.Never)]
2767         public bool EnableControlStatePropagation
2768         {
2769             get
2770             {
2771                 return (bool)GetValue(EnableControlStatePropagationProperty);
2772             }
2773             set
2774             {
2775                 SetValue(EnableControlStatePropagationProperty, value);
2776                 NotifyPropertyChanged();
2777             }
2778         }
2779
2780         private bool InternalEnableControlStatePropagation
2781         {
2782             get => themeData?.ControlStatePropagation ?? false;
2783             set
2784             {
2785                 if (InternalEnableControlStatePropagation == value) return;
2786
2787                 if (themeData == null) themeData = new ThemeData();
2788
2789                 themeData.ControlStatePropagation = value;
2790
2791                 foreach (View child in Children)
2792                 {
2793                     child.EnableControlStatePropagation = value;
2794                 }
2795             }
2796         }
2797
2798         /// <summary>
2799         /// By default, it is false in View, true in Control.
2800         /// Note that if the value is true, the View will be a touch receptor.
2801         /// </summary>
2802         [EditorBrowsable(EditorBrowsableState.Never)]
2803         public bool EnableControlState
2804         {
2805             get
2806             {
2807                 return (bool)GetValue(EnableControlStateProperty);
2808             }
2809             set
2810             {
2811                 SetValue(EnableControlStateProperty, value);
2812             }
2813         }
2814
2815         /// <summary>
2816         /// Whether the actor grab all touches even if touch leaves its boundary.
2817         /// </summary>
2818         /// <returns>true, if it grab all touch after start</returns>
2819         [EditorBrowsable(EditorBrowsableState.Never)]
2820         public bool GrabTouchAfterLeave
2821         {
2822             get
2823             {
2824                 return (bool)GetValue(GrabTouchAfterLeaveProperty);
2825             }
2826             set
2827             {
2828                 SetValue(GrabTouchAfterLeaveProperty, value);
2829             }
2830         }
2831
2832         private bool InternalGrabTouchAfterLeave
2833         {
2834             get
2835             {
2836                 bool temp = false;
2837                 var pValue = GetProperty(View.Property.CaptureAllTouchAfterStart);
2838                 pValue.Get(out temp);
2839                 pValue.Dispose();
2840                 return temp;
2841             }
2842             set
2843             {
2844                 var temp = new Tizen.NUI.PropertyValue(value);
2845                 SetProperty(View.Property.CaptureAllTouchAfterStart, temp);
2846                 temp.Dispose();
2847                 NotifyPropertyChanged();
2848             }
2849         }
2850
2851         /// <summary>
2852         /// Determines which blend equation will be used to render renderers of this actor.
2853         /// </summary>
2854         /// <returns>blend equation enum currently assigned</returns>
2855         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
2856         [EditorBrowsable(EditorBrowsableState.Never)]
2857         public BlendEquationType BlendEquation
2858         {
2859             get
2860             {
2861                 return (BlendEquationType)GetValue(BlendEquationProperty);
2862             }
2863             set
2864             {
2865                 SetValue(BlendEquationProperty, value);
2866             }
2867         }
2868
2869         private BlendEquationType InternalBlendEquation
2870         {
2871             get
2872             {
2873                 int temp = 0;
2874                 var pValue = GetProperty(View.Property.BlendEquation);
2875                 pValue.Get(out temp);
2876                 pValue.Dispose();
2877                 return (BlendEquationType)temp;
2878             }
2879             set
2880             {
2881                 var temp = new Tizen.NUI.PropertyValue((int)value);
2882                 SetProperty(View.Property.BlendEquation, temp);
2883                 temp.Dispose();
2884                 NotifyPropertyChanged();
2885             }
2886         }
2887
2888         /// <summary>
2889         /// If the value is true, the View will change its style as the theme changes.
2890         /// The default value is false in normal case but it can be true when the NUIApplication is created with <see cref="NUIApplication.ThemeOptions.ThemeChangeSensitive"/>.
2891         /// </summary>
2892         /// <since_tizen> 9 </since_tizen>
2893         public bool ThemeChangeSensitive
2894         {
2895             get => (bool)GetValue(ThemeChangeSensitiveProperty);
2896             set => SetValue(ThemeChangeSensitiveProperty, value);
2897         }
2898
2899         /// <summary>
2900         /// Create Style, it is abstract function and must be override.
2901         /// </summary>
2902         [EditorBrowsable(EditorBrowsableState.Never)]
2903         protected virtual ViewStyle CreateViewStyle()
2904         {
2905             return new ViewStyle();
2906         }
2907
2908         /// <summary>
2909         /// Called after the View's ControlStates changed.
2910         /// </summary>
2911         /// <param name="controlStateChangedInfo">The information including state changed variables.</param>
2912         [EditorBrowsable(EditorBrowsableState.Never)]
2913         protected virtual void OnControlStateChanged(ControlStateChangedEventArgs controlStateChangedInfo)
2914         {
2915         }
2916
2917         /// <summary>
2918         /// </summary>
2919         [EditorBrowsable(EditorBrowsableState.Never)]
2920         protected virtual void OnThemeChanged(object sender, ThemeChangedEventArgs e)
2921         {
2922             if (string.IsNullOrEmpty(styleName)) ApplyStyle(ThemeManager.GetUpdateStyleWithoutClone(GetType()));
2923             else ApplyStyle(ThemeManager.GetUpdateStyleWithoutClone(styleName));
2924         }
2925
2926         /// <summary>
2927         /// Apply style instance to the view.
2928         /// Basically it sets the bindable property to the value of the bindable property with same name in the style.
2929         /// </summary>
2930         /// <since_tizen> 9 </since_tizen>
2931         public virtual void ApplyStyle(ViewStyle viewStyle)
2932         {
2933             if (viewStyle == null || themeData?.viewStyle == viewStyle) return;
2934
2935             if (themeData == null) themeData = new ThemeData();
2936
2937             themeData.viewStyle = viewStyle;
2938
2939             if (viewStyle.DirtyProperties == null || viewStyle.DirtyProperties.Count == 0)
2940             {
2941                 // Nothing to apply
2942                 return;
2943             }
2944
2945             BindableProperty.GetBindablePropertysOfType(GetType(), out var bindablePropertyOfView);
2946
2947             if (bindablePropertyOfView == null)
2948             {
2949                 return;
2950             }
2951
2952             var dirtyStyleProperties = new BindableProperty[viewStyle.DirtyProperties.Count];
2953             viewStyle.DirtyProperties.CopyTo(dirtyStyleProperties);
2954
2955             foreach (var sourceProperty in dirtyStyleProperties)
2956             {
2957                 var sourceValue = viewStyle.GetValue(sourceProperty);
2958
2959                 if (sourceValue == null)
2960                 {
2961                     continue;
2962                 }
2963
2964                 bindablePropertyOfView.TryGetValue(sourceProperty.PropertyName, out var destinationProperty);
2965
2966                 if (destinationProperty != null)
2967                 {
2968                     SetValue(destinationProperty, sourceValue);
2969                 }
2970             }
2971         }
2972
2973         /// <summary>
2974         /// Get whether the View is culled or not.
2975         /// True means that the View is out of the view frustum.
2976         /// </summary>
2977         /// <remarks>
2978         /// Hidden-API (Inhouse-API).
2979         /// </remarks>
2980         [EditorBrowsable(EditorBrowsableState.Never)]
2981         public bool Culled
2982         {
2983             get
2984             {
2985                 bool temp = false;
2986                 var pValue = GetProperty(View.Property.Culled);
2987                 pValue.Get(out temp);
2988                 pValue.Dispose();
2989                 return temp;
2990             }
2991         }
2992
2993         /// <summary>
2994         /// Set or Get TransitionOptions for the page transition.
2995         /// This property is used to define how this view will be transitioned during Page switching.
2996         /// </summary>
2997         /// <since_tizen> 9 </since_tizen>
2998         public TransitionOptions TransitionOptions
2999         {
3000             get
3001             {
3002                 return GetValue(TransitionOptionsProperty) as TransitionOptions;
3003             }
3004             set
3005             {
3006                 SetValue(TransitionOptionsProperty, value);
3007                 NotifyPropertyChanged();
3008             }
3009         }
3010
3011         private TransitionOptions InternalTransitionOptions
3012         {
3013             set
3014             {
3015                 transitionOptions = value;
3016             }
3017             get
3018             {
3019                 return transitionOptions;
3020             }
3021         }
3022     }
3023 }