[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / View.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 using System;
18 using System.Collections.Generic;
19 using System.ComponentModel;
20 using System.IO;
21 using System.Runtime.InteropServices;
22 using Tizen.NUI.Binding;
23 using Tizen.NUI.Xaml;
24
25 namespace Tizen.NUI.BaseComponents
26 {
27     /// <summary>
28     /// The View layout Direction type.
29     /// </summary>
30     /// <since_tizen> 4 </since_tizen>
31     public enum ViewLayoutDirectionType
32     {
33         /// <summary>
34         /// Left to right.
35         /// </summary>
36         /// <since_tizen> 4 </since_tizen>
37         LTR,
38         /// <summary>
39         /// Right to left.
40         /// </summary>
41         /// <since_tizen> 4 </since_tizen>
42         RTL
43     }
44
45     /// <summary>
46     /// [Draft] Available policies for layout parameters
47     /// </summary>
48     /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
49     [EditorBrowsable(EditorBrowsableState.Never)]
50     public static class LayoutParamPolicies
51     {
52         /// <summary>
53         /// Constant which indicates child size should match parent size
54         /// </summary>
55        /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
56        [EditorBrowsable(EditorBrowsableState.Never)]
57         public const int MatchParent = -1;
58         /// <summary>
59         /// Constant which indicates parent should take the smallest size possible to wrap it's children with their desired size
60         /// </summary>
61         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
62         [EditorBrowsable(EditorBrowsableState.Never)]
63         public const int WrapContent = -2;
64     }
65
66     internal enum ResourceLoadingStatusType
67     {
68         Invalid = -1,
69         Preparing = 0,
70         Ready,
71         Failed,
72     }
73
74     /// <summary>
75     /// View is the base class for all views.
76     /// </summary>
77     /// <since_tizen> 3 </since_tizen>
78     public class View : Container, IResourcesProvider
79     {
80         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
81         [EditorBrowsable(EditorBrowsableState.Never)]
82         public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
83         {
84             var view = (View)bindable;
85             if (newValue != null)
86             {
87                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
88             }
89         },
90         defaultValueCreator: (bindable) =>
91         {
92             var view = (View)bindable;
93             string temp;
94             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
95             return temp;
96         });
97         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
98         [EditorBrowsable(EditorBrowsableState.Never)]
99         public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
100         {
101             var view = (View)bindable;
102             if (newValue != null)
103             {
104                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
105             }
106         },
107         defaultValueCreator: (bindable) =>
108         {
109             var view = (View)bindable;
110             Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
111
112             Tizen.NUI.PropertyMap background = view.Background;
113             int visualType = 0;
114             background.Find(Visual.Property.Type)?.Get(out visualType);
115             if (visualType == (int)Visual.Type.Color)
116             {
117                 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
118             }
119
120             return backgroundColor;
121         });
122         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
123         [EditorBrowsable(EditorBrowsableState.Never)]
124         public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
125         {
126             var view = (View)bindable;
127             if (newValue != null)
128             {
129                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
130                 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
131             }
132         },
133         defaultValueCreator: (bindable) =>
134         {
135             var view = (View)bindable;
136             string backgroundImage = "";
137
138             Tizen.NUI.PropertyMap background = view.Background;
139             int visualType = 0;
140             background.Find(Visual.Property.Type)?.Get(out visualType);
141             if (visualType == (int)Visual.Type.Image)
142             {
143                 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
144             }
145
146             return backgroundImage;
147         });
148         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
149         [EditorBrowsable(EditorBrowsableState.Never)]
150         public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
151         {
152             var view = (View)bindable;
153             if (newValue != null)
154             {
155                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
156             }
157         },
158         defaultValueCreator: (bindable) =>
159         {
160             var view = (View)bindable;
161             Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
162             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
163             return temp;
164         });
165         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
166         [EditorBrowsable(EditorBrowsableState.Never)]
167         public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
168         {
169             var view = (View)bindable;
170             if (newValue != null)
171             {
172                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
173             }
174         },
175         defaultValueCreator: (bindable) =>
176         {
177             var view = (View)bindable;
178             int temp = 0;
179             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
180             {
181                 NUILog.Error("State get error!");
182             }
183             switch (temp)
184             {
185                 case 0: return States.Normal;
186                 case 1: return States.Focused;
187                 case 2: return States.Disabled;
188                 default: return States.Normal;
189             }
190         });
191         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
192         [EditorBrowsable(EditorBrowsableState.Never)]
193         public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
194         {
195             var view = (View)bindable;
196             string valueToString = "";
197             if (newValue != null)
198             {
199                 switch ((States)newValue)
200                 {
201                     case States.Normal: { valueToString = "NORMAL"; break; }
202                     case States.Focused: { valueToString = "FOCUSED"; break; }
203                     case States.Disabled: { valueToString = "DISABLED"; break; }
204                     default: { valueToString = "NORMAL"; break; }
205                 }
206                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
207             }
208         },
209         defaultValueCreator: (bindable) =>
210         {
211             var view = (View)bindable;
212             string temp;
213             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
214             {
215                 NUILog.Error("subState get error!");
216             }
217             switch (temp)
218             {
219                 case "NORMAL": return States.Normal;
220                 case "FOCUSED": return States.Focused;
221                 case "DISABLED": return States.Disabled;
222                 default: return States.Normal;
223             }
224         });
225         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
226         [EditorBrowsable(EditorBrowsableState.Never)]
227         public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
228         {
229             var view = (View)bindable;
230             if (newValue != null)
231             {
232                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
233             }
234         },
235         defaultValueCreator: (bindable) =>
236         {
237             var view = (View)bindable;
238             Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
239             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
240             return temp;
241         });
242
243         /// Only for XAML property binding. No need to open as public. (keep as Hidden/InhouseAPI)
244         [EditorBrowsable(EditorBrowsableState.Never)]
245         public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
246         {
247             var view = (View)bindable;
248             if (newValue != null)
249             {
250                 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
251             }
252         },
253         defaultValueCreator: (bindable) =>
254         {
255             var view = (View)bindable;
256             float temp = 0.0f;
257             Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
258             return temp;
259         });
260
261         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
262         [EditorBrowsable(EditorBrowsableState.Never)]
263         public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
264         {
265             var view = (View)bindable;
266             if (newValue != null)
267             {
268                 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
269             }
270         },
271         defaultValueCreator: (bindable) =>
272         {
273             var view = (View)bindable;
274             int temp = 0;
275             Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
276             return temp;
277         });
278         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
279         [EditorBrowsable(EditorBrowsableState.Never)]
280         public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
281         {
282             var view = (View)bindable;
283             if (newValue != null)
284             {
285                 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
286             }
287         },
288         defaultValueCreator: (bindable) =>
289         {
290             var view = (View)bindable;
291             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
292             Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
293             return temp;
294         });
295         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
296         [EditorBrowsable(EditorBrowsableState.Never)]
297         public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
298         {
299             var view = (View)bindable;
300             if (newValue != null)
301             {
302                 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
303             }
304         },
305         defaultValueCreator: (bindable) =>
306         {
307             var view = (View)bindable;
308             Vector2 temp = new Vector2(0.0f, 0.0f);
309             Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
310             return temp;
311         });
312         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
313         [EditorBrowsable(EditorBrowsableState.Never)]
314         public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
315         {
316             var view = (View)bindable;
317             if (newValue != null)
318             {
319                 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
320             }
321         },
322         defaultValueCreator: (bindable) =>
323         {
324             var view = (View)bindable;
325             float temp = 0.0f;
326             Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
327             return temp;
328         });
329         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
330         [EditorBrowsable(EditorBrowsableState.Never)]
331         public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
332         {
333             var view = (View)bindable;
334             if (newValue != null)
335             {
336                 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
337             }
338         },
339         defaultValueCreator: (bindable) =>
340         {
341             var view = (View)bindable;
342             float temp = 0.0f;
343             Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
344             return temp;
345         });
346         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
347         [EditorBrowsable(EditorBrowsableState.Never)]
348         public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
349         {
350             var view = (View)bindable;
351             string valueToString = "";
352
353             if (newValue != null)
354             {
355                 switch ((HorizontalAlignmentType)newValue)
356                 {
357                     case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
358                     case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
359                     case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
360                     default: { valueToString = "left"; break; }
361                 }
362                 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
363             }
364         },
365         defaultValueCreator: (bindable) =>
366         {
367             var view = (View)bindable;
368             string temp;
369             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
370             {
371                 NUILog.Error("CellHorizontalAlignment get error!");
372             }
373
374             switch (temp)
375             {
376                 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
377                 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
378                 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
379                 default: return Tizen.NUI.HorizontalAlignmentType.Left;
380             }
381         });
382         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
383         [EditorBrowsable(EditorBrowsableState.Never)]
384         public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
385         {
386             var view = (View)bindable;
387             string valueToString = "";
388
389             if (newValue != null)
390             {
391                 switch ((VerticalAlignmentType)newValue)
392                 {
393                     case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
394                     case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
395                     case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
396                     default: { valueToString = "top"; break; }
397                 }
398                 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
399             }
400         },
401         defaultValueCreator: (bindable) =>
402         {
403             var view = (View)bindable;
404             string temp;
405             Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
406             {
407                 NUILog.Error("CellVerticalAlignment get error!");
408             }
409
410             switch (temp)
411             {
412                 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
413                 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
414                 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
415                 default: return Tizen.NUI.VerticalAlignmentType.Top;
416             }
417         });
418
419         /// <summary>
420         /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
421         /// This needs to be hidden as inhouse API until all applications using it have been updated.  Do not make public.
422         /// </summary>
423         [EditorBrowsable(EditorBrowsableState.Never)]
424         public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
425         {
426             var view = (View)bindable;
427             if (newValue != null)
428             {
429                 view.Weight = (float)newValue;
430             }
431         },
432
433         defaultValueCreator: (bindable) =>
434         {
435             var view = (View)bindable;
436             return view.Weight;
437         });
438
439         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
440         [EditorBrowsable(EditorBrowsableState.Never)]
441         public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
442         {
443             var view = (View)bindable;
444             if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
445             else { view.LeftFocusableViewId = -1; }
446         },
447         defaultValueCreator: (bindable) =>
448         {
449             var view = (View)bindable;
450             if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
451             return null;
452         });
453         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
454         [EditorBrowsable(EditorBrowsableState.Never)]
455         public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
456         {
457             var view = (View)bindable;
458             if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
459             else { view.RightFocusableViewId = -1; }
460         },
461         defaultValueCreator: (bindable) =>
462         {
463             var view = (View)bindable;
464             if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
465             return null;
466         });
467         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
468         [EditorBrowsable(EditorBrowsableState.Never)]
469         public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
470         {
471             var view = (View)bindable;
472             if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
473             else { view.UpFocusableViewId = -1; }
474         },
475         defaultValueCreator: (bindable) =>
476         {
477             var view = (View)bindable;
478             if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
479             return null;
480         });
481         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
482         [EditorBrowsable(EditorBrowsableState.Never)]
483         public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
484         {
485             var view = (View)bindable;
486             if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
487             else { view.DownFocusableViewId = -1; }
488         },
489         defaultValueCreator: (bindable) =>
490         {
491             var view = (View)bindable;
492             if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
493             return null;
494         });
495         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
496         [EditorBrowsable(EditorBrowsableState.Never)]
497         public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
498         {
499             var view = (View)bindable;
500             if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
501         },
502         defaultValueCreator: (bindable) =>
503         {
504             var view = (View)bindable;
505             return view.IsKeyboardFocusable();
506         });
507         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
508         [EditorBrowsable(EditorBrowsableState.Never)]
509         public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
510         {
511             var view = (View)bindable;
512             if (newValue != null)
513             {
514                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
515             }
516         },
517         defaultValueCreator: (bindable) =>
518         {
519             var view = (View)bindable;
520             Size temp = new Size(0.0f, 0.0f, 0.0f);
521             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
522             Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
523             return size;
524         });
525         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
526         [EditorBrowsable(EditorBrowsableState.Never)]
527         public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
528         {
529             var view = (View)bindable;
530             if (newValue != null)
531             {
532                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
533             }
534         },
535         defaultValueCreator: (bindable) =>
536         {
537             var view = (View)bindable;
538             float temp = 0.0f;
539             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
540             return temp;
541         });
542         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
543         [EditorBrowsable(EditorBrowsableState.Never)]
544         public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
545         {
546             var view = (View)bindable;
547             if (newValue != null)
548             {
549                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
550             }
551         },
552         defaultValueCreator: (bindable) =>
553         {
554             var view = (View)bindable;
555             Position temp = new Position(0.0f, 0.0f, 0.0f);
556             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
557             return new Position2D(temp);
558         });
559         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
560         [EditorBrowsable(EditorBrowsableState.Never)]
561         public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
562         {
563             var view = (View)bindable;
564             if (newValue != null)
565             {
566                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
567             }
568         },
569         defaultValueCreator: (bindable) =>
570         {
571             var view = (View)bindable;
572             bool temp = false;
573             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
574             return temp;
575         });
576         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
577         [EditorBrowsable(EditorBrowsableState.Never)]
578         public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
579         {
580             var view = (View)bindable;
581             int value;
582             if (newValue != null)
583             {
584                 value = (int)newValue;
585                 if (value < 0)
586                 {
587                     NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
588                     return;
589                 }
590                 var siblings = view.GetParent()?.Children;
591                 if (siblings != null)
592                 {
593                     int currentOrder = siblings.IndexOf(view);
594                     if (value != currentOrder)
595                     {
596                         if (value == 0) { view.LowerToBottom(); }
597                         else if (value < siblings.Count - 1)
598                         {
599                             if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
600                             else { view.LowerBelow(siblings[value]); }
601                         }
602                         else { view.RaiseToTop(); }
603                     }
604                 }
605             }
606         },
607         defaultValueCreator: (bindable) =>
608         {
609             var view = (View)bindable;
610             var parentChildren = view.GetParent()?.Children;
611             int currentOrder = 0;
612             if (parentChildren != null)
613             {
614                 currentOrder = parentChildren.IndexOf(view);
615
616                 if (currentOrder < 0) { return 0; }
617                 else if (currentOrder < parentChildren.Count) { return currentOrder; }
618             }
619
620             return 0;
621         });
622         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
623         [EditorBrowsable(EditorBrowsableState.Never)]
624         public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
625         {
626             var view = (View)bindable;
627             if (newValue != null)
628             {
629                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
630             }
631         },
632         defaultValueCreator: (bindable) =>
633         {
634             var view = (View)bindable;
635             Position temp = new Position(0.0f, 0.0f, 0.0f);
636             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
637             return temp;
638         }
639         );
640         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
641         [EditorBrowsable(EditorBrowsableState.Never)]
642         public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
643         {
644             var view = (View)bindable;
645             if (newValue != null)
646             {
647                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
648             }
649         },
650         defaultValueCreator: (bindable) =>
651         {
652             var view = (View)bindable;
653             Position temp = new Position(0.0f, 0.0f, 0.0f);
654             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
655             return temp;
656         });
657         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
658         [EditorBrowsable(EditorBrowsableState.Never)]
659         public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
660         {
661             var view = (View)bindable;
662             if (newValue != null)
663             {
664                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
665             }
666         },
667         defaultValueCreator: (bindable) =>
668         {
669             var view = (View)bindable;
670             float temp = 0.0f;
671             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
672             return temp;
673         });
674         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
675         [EditorBrowsable(EditorBrowsableState.Never)]
676         public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
677         {
678             var view = (View)bindable;
679             if (newValue != null)
680             {
681                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
682             }
683         },
684         defaultValueCreator: (bindable) =>
685         {
686             var view = (View)bindable;
687             float temp = 0.0f;
688             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
689             return temp;
690         });
691         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
692         [EditorBrowsable(EditorBrowsableState.Never)]
693         public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
694         {
695             var view = (View)bindable;
696             if (newValue != null)
697             {
698                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
699             }
700         },
701         defaultValueCreator: (bindable) =>
702         {
703             var view = (View)bindable;
704             Position temp = new Position(0.0f, 0.0f, 0.0f);
705             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
706             return temp;
707         });
708         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
709         [EditorBrowsable(EditorBrowsableState.Never)]
710         public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
711         {
712             var view = (View)bindable;
713             if (newValue != null)
714             {
715                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
716             }
717         },
718         defaultValueCreator: (bindable) =>
719         {
720             var view = (View)bindable;
721             float temp = 0.0f;
722             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
723             return temp;
724         });
725         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
726         [EditorBrowsable(EditorBrowsableState.Never)]
727         public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
728         {
729             var view = (View)bindable;
730             if (newValue != null)
731             {
732                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
733             }
734         },
735         defaultValueCreator: (bindable) =>
736         {
737             var view = (View)bindable;
738             float temp = 0.0f;
739             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
740             return temp;
741         });
742         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
743         [EditorBrowsable(EditorBrowsableState.Never)]
744         public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
745         {
746             var view = (View)bindable;
747             if (newValue != null)
748             {
749                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
750             }
751         },
752         defaultValueCreator: (bindable) =>
753         {
754             var view = (View)bindable;
755             float temp = 0.0f;
756             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
757             return temp;
758         });
759         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
760         [EditorBrowsable(EditorBrowsableState.Never)]
761         public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
762         {
763             var view = (View)bindable;
764             if (newValue != null)
765             {
766                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
767             }
768         },
769         defaultValueCreator: (bindable) =>
770         {
771             var view = (View)bindable;
772             Rotation temp = new Rotation();
773             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
774             return temp;
775         });
776         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
777         [EditorBrowsable(EditorBrowsableState.Never)]
778         public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
779         {
780             var view = (View)bindable;
781             if (newValue != null)
782             {
783                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
784             }
785         },
786         defaultValueCreator: (bindable) =>
787         {
788             var view = (View)bindable;
789             Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
790             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
791             return temp;
792         });
793         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
794         [EditorBrowsable(EditorBrowsableState.Never)]
795         public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
796         {
797             var view = (View)bindable;
798             if (newValue != null)
799             {
800                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
801             }
802         },
803         defaultValueCreator: (bindable) =>
804         {
805             var view = (View)bindable;
806             float temp = 0.0f;
807             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
808             return temp;
809         });
810         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
811         [EditorBrowsable(EditorBrowsableState.Never)]
812         public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
813         {
814             var view = (View)bindable;
815             if (newValue != null)
816             {
817                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
818             }
819         },
820         defaultValueCreator: (bindable) =>
821         {
822             var view = (View)bindable;
823             float temp = 0.0f;
824             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
825             return temp;
826         });
827         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
828         [EditorBrowsable(EditorBrowsableState.Never)]
829         public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
830         {
831             var view = (View)bindable;
832             if (newValue != null)
833             {
834                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
835             }
836         },
837         defaultValueCreator: (bindable) =>
838         {
839             var view = (View)bindable;
840             float temp = 0.0f;
841             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
842             return temp;
843         });
844         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
845         [EditorBrowsable(EditorBrowsableState.Never)]
846         public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
847         {
848             var view = (View)bindable;
849             if (newValue != null)
850             {
851                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
852             }
853         },
854         defaultValueCreator: (bindable) =>
855         {
856             var view = (View)bindable;
857             string temp;
858             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
859             return temp;
860         });
861         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
862         [EditorBrowsable(EditorBrowsableState.Never)]
863         public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
864         {
865             var view = (View)bindable;
866             if (newValue != null)
867             {
868                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
869             }
870         },
871         defaultValueCreator: (bindable) =>
872         {
873             var view = (View)bindable;
874             bool temp = false;
875             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
876             return temp;
877         });
878         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
879         [EditorBrowsable(EditorBrowsableState.Never)]
880         public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
881         {
882             var view = (View)bindable;
883             if (newValue != null)
884             {
885                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
886             }
887         },
888         defaultValueCreator: (bindable) =>
889         {
890             var view = (View)bindable;
891             bool temp = false;
892             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
893             return temp;
894         });
895         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
896         [EditorBrowsable(EditorBrowsableState.Never)]
897         public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
898         {
899             var view = (View)bindable;
900             if (newValue != null)
901             {
902                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
903             }
904         },
905         defaultValueCreator: (bindable) =>
906         {
907             var view = (View)bindable;
908             bool temp = false;
909             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
910             return temp;
911         });
912         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
913         [EditorBrowsable(EditorBrowsableState.Never)]
914         public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
915         {
916             var view = (View)bindable;
917             if (newValue != null)
918             {
919                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
920             }
921         },
922         defaultValueCreator: (bindable) =>
923         {
924             var view = (View)bindable;
925             bool temp = false;
926             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
927             return temp;
928         });
929         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
930         [EditorBrowsable(EditorBrowsableState.Never)]
931         public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
932         {
933             var view = (View)bindable;
934             if (newValue != null)
935             {
936                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
937             }
938         },
939         defaultValueCreator: (bindable) =>
940         {
941             var view = (View)bindable;
942             string temp;
943             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
944             {
945                 NUILog.Error("DrawMode get error!");
946             }
947             switch (temp)
948             {
949                 case "NORMAL": return DrawModeType.Normal;
950                 case "OVERLAY_2D": return DrawModeType.Overlay2D;
951 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
952                 case "STENCIL": return DrawModeType.Stencil;
953 #pragma warning restore CS0618
954                 default: return DrawModeType.Normal;
955             }
956         });
957         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
958         [EditorBrowsable(EditorBrowsableState.Never)]
959         public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
960         {
961             var view = (View)bindable;
962             if (newValue != null)
963             {
964                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
965             }
966         },
967         defaultValueCreator: (bindable) =>
968         {
969             var view = (View)bindable;
970             Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
971             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
972             return temp;
973         });
974         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
975         [EditorBrowsable(EditorBrowsableState.Never)]
976         public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
977         {
978             var view = (View)bindable;
979             if (newValue != null)
980             {
981                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
982             }
983         },
984         defaultValueCreator: (bindable) =>
985         {
986             var view = (View)bindable;
987             string temp;
988             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
989             {
990                 NUILog.Error("WidthResizePolicy get error!");
991             }
992             switch (temp)
993             {
994                 case "FIXED": return ResizePolicyType.Fixed;
995                 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
996                 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
997                 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
998                 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
999                 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1000                 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1001                 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1002                 default: return ResizePolicyType.Fixed;
1003             }
1004         });
1005         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1006         [EditorBrowsable(EditorBrowsableState.Never)]
1007         public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1008         {
1009             var view = (View)bindable;
1010             if (newValue != null)
1011             {
1012                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1013             }
1014         },
1015         defaultValueCreator: (bindable) =>
1016         {
1017             var view = (View)bindable;
1018             string temp;
1019             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1020             {
1021                 NUILog.Error("HeightResizePolicy get error!");
1022             }
1023             switch (temp)
1024             {
1025                 case "FIXED": return ResizePolicyType.Fixed;
1026                 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1027                 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1028                 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1029                 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1030                 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1031                 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1032                 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1033                 default: return ResizePolicyType.Fixed;
1034             }
1035         });
1036         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1037         [EditorBrowsable(EditorBrowsableState.Never)]
1038         public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1039         {
1040             var view = (View)bindable;
1041             string valueToString = "";
1042             if (newValue != null)
1043             {
1044                 switch ((SizeScalePolicyType)newValue)
1045                 {
1046                     case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1047                     case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1048                     case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1049                     default: { valueToString = "USE_SIZE_SET"; break; }
1050                 }
1051                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1052             }
1053         },
1054         defaultValueCreator: (bindable) =>
1055         {
1056             var view = (View)bindable;
1057             string temp;
1058             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1059             {
1060                 NUILog.Error("SizeScalePolicy get error!");
1061             }
1062             switch (temp)
1063             {
1064                 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1065                 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1066                 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1067                 default: return SizeScalePolicyType.UseSizeSet;
1068             }
1069         });
1070         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1071         [EditorBrowsable(EditorBrowsableState.Never)]
1072         public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1073         {
1074             var view = (View)bindable;
1075             if (newValue != null)
1076             {
1077                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1078             }
1079         },
1080         defaultValueCreator: (bindable) =>
1081         {
1082             var view = (View)bindable;
1083             bool temp = false;
1084             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1085             return temp;
1086         });
1087         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1088         [EditorBrowsable(EditorBrowsableState.Never)]
1089         public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1090         {
1091             var view = (View)bindable;
1092             if (newValue != null)
1093             {
1094                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1095             }
1096         },
1097         defaultValueCreator: (bindable) =>
1098         {
1099             var view = (View)bindable;
1100             bool temp = false;
1101             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1102             return temp;
1103         });
1104         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1105         [EditorBrowsable(EditorBrowsableState.Never)]
1106         public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1107         {
1108             var view = (View)bindable;
1109             if (newValue != null)
1110             {
1111                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1112             }
1113         },
1114         defaultValueCreator: (bindable) =>
1115         {
1116             var view = (View)bindable;
1117             Extents temp = new Extents(0, 0, 0, 0);
1118             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1119             return temp;
1120         });
1121         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1122         [EditorBrowsable(EditorBrowsableState.Never)]
1123         public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1124         {
1125             var view = (View)bindable;
1126             if (newValue != null)
1127             {
1128                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1129             }
1130         },
1131         defaultValueCreator: (bindable) =>
1132         {
1133             var view = (View)bindable;
1134             Size temp = new Size(0, 0, 0);
1135             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1136             return temp;
1137         });
1138         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1139         [EditorBrowsable(EditorBrowsableState.Never)]
1140         public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1141         {
1142             var view = (View)bindable;
1143             if (newValue != null)
1144             {
1145                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1146             }
1147         },
1148         defaultValueCreator: (bindable) =>
1149         {
1150             var view = (View)bindable;
1151             Size2D temp = new Size2D(0, 0);
1152             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1153             return temp;
1154         });
1155         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1156         [EditorBrowsable(EditorBrowsableState.Never)]
1157         public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1158         {
1159             var view = (View)bindable;
1160             if (newValue != null)
1161             {
1162                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1163             }
1164         },
1165         defaultValueCreator: (bindable) =>
1166         {
1167             var view = (View)bindable;
1168             Size2D temp = new Size2D(0, 0);
1169             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1170             return temp;
1171         });
1172         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1173         [EditorBrowsable(EditorBrowsableState.Never)]
1174         public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1175         {
1176             var view = (View)bindable;
1177             if (newValue != null)
1178             {
1179                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1180             }
1181         },
1182         defaultValueCreator: (bindable) =>
1183         {
1184             var view = (View)bindable;
1185             bool temp = false;
1186             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1187             return temp;
1188         });
1189         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1190         [EditorBrowsable(EditorBrowsableState.Never)]
1191         public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1192         {
1193             var view = (View)bindable;
1194             if (newValue != null)
1195             {
1196                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1197             }
1198         },
1199         defaultValueCreator: (bindable) =>
1200         {
1201             var view = (View)bindable;
1202             int temp = 0;
1203             if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1204             {
1205                 NUILog.Error("ClippingMode get error!");
1206             }
1207             return (ClippingModeType)temp;
1208         });
1209         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1210         [EditorBrowsable(EditorBrowsableState.Never)]
1211         public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1212         {
1213             var view = (View)bindable;
1214             if (newValue != null)
1215             {
1216                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1217             }
1218         },
1219         defaultValueCreator: (bindable) =>
1220         {
1221             var view = (View)bindable;
1222             bool temp = false;
1223             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1224             return temp;
1225         });
1226         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1227         [EditorBrowsable(EditorBrowsableState.Never)]
1228         public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1229         {
1230             var view = (View)bindable;
1231             if (newValue != null)
1232             {
1233                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1234             }
1235         },
1236         defaultValueCreator: (bindable) =>
1237         {
1238             var view = (View)bindable;
1239             int temp;
1240             if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1241             {
1242                 NUILog.Error("LAYOUT_DIRECTION get error!");
1243             }
1244             return (ViewLayoutDirectionType)temp;
1245         });
1246         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1247         [EditorBrowsable(EditorBrowsableState.Never)]
1248         public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1249         {
1250             var view = (View)bindable;
1251             if (newValue != null)
1252             {
1253                 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1254             }
1255         },
1256         defaultValueCreator: (bindable) =>
1257         {
1258             var view = (View)bindable;
1259             Extents temp = new Extents(0, 0, 0, 0);
1260             Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1261             return temp;
1262         });
1263
1264
1265         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1266         [EditorBrowsable(EditorBrowsableState.Never)]
1267         public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1268         {
1269             var view = (View)bindable;
1270             if (newValue != null)
1271             {
1272                 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1273             }
1274         },
1275         defaultValueCreator: (bindable) =>
1276         {
1277             var view = (View)bindable;
1278                         
1279             Vector2 temp = new Vector2(0.0f, 0.0f);
1280             Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1281             return temp;
1282         });
1283
1284
1285         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1286         [EditorBrowsable(EditorBrowsableState.Never)]
1287         public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);
1288
1289         /// <summary>
1290         /// Flag to indicate if layout set explicitly via API call or View was automatically given a Layout.
1291         /// </summary>
1292         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1293         [EditorBrowsable(EditorBrowsableState.Never)]
1294         public bool layoutSet = false;
1295
1296         /// <summary>
1297         /// Flag to allow Layouting to be disabled for Views.
1298         /// Once a View has a Layout set then any children added to Views from then on will receive
1299         /// automatic Layouts.
1300         /// </summary>
1301         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1302         [EditorBrowsable(EditorBrowsableState.Never)]
1303         public static bool layoutingDisabled{get; set;} = true;
1304
1305         private MergedStyle mergedStyle = null;
1306         internal MergedStyle _mergedStyle
1307         {
1308             get
1309             {
1310                 if (null == mergedStyle)
1311                 {
1312                     mergedStyle = new MergedStyle(GetType(), this);
1313                 }
1314
1315                 return mergedStyle;
1316             }
1317         }
1318
1319         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
1320         private LayoutItem _layout; // Exclusive layout assigned to this View.
1321
1322         // List of transitions paired with the condition that uses the transition.
1323         private Dictionary<TransitionCondition, TransitionList> _layoutTransitions;
1324         private int _widthPolicy = LayoutParamPolicies.WrapContent; // Layout width policy
1325         private int _heightPolicy = LayoutParamPolicies.WrapContent; // Layout height policy
1326         private float _weight = 0.0f; // Weighting of child View in a Layout
1327         private MeasureSpecification _measureSpecificationWidth; // Layout width and internal Mode
1328         private MeasureSpecification _measureSpecificationHeight; // Layout height and internal Mode
1329         private bool _backgroundImageSynchronosLoading = false;
1330         private EventHandler _offWindowEventHandler;
1331         private OffWindowEventCallbackType _offWindowEventCallback;
1332         private EventHandlerWithReturnType<object, WheelEventArgs, bool> _wheelEventHandler;
1333         private WheelEventCallbackType _wheelEventCallback;
1334         private EventHandlerWithReturnType<object, KeyEventArgs, bool> _keyEventHandler;
1335         private KeyCallbackType _keyCallback;
1336         private EventHandlerWithReturnType<object, TouchEventArgs, bool> _touchDataEventHandler;
1337         private TouchDataCallbackType _touchDataCallback;
1338         private EventHandlerWithReturnType<object, HoverEventArgs, bool> _hoverEventHandler;
1339         private HoverEventCallbackType _hoverEventCallback;
1340         private EventHandler<VisibilityChangedEventArgs> _visibilityChangedEventHandler;
1341         private VisibilityChangedEventCallbackType _visibilityChangedEventCallback;
1342         private EventHandler _keyInputFocusGainedEventHandler;
1343         private KeyInputFocusGainedCallbackType _keyInputFocusGainedCallback;
1344         private EventHandler _keyInputFocusLostEventHandler;
1345         private KeyInputFocusLostCallbackType _keyInputFocusLostCallback;
1346         private EventHandler _onRelayoutEventHandler;
1347         private OnRelayoutEventCallbackType _onRelayoutEventCallback;
1348         private EventHandler _onWindowEventHandler;
1349         private OnWindowEventCallbackType _onWindowEventCallback;
1350         private EventHandler<LayoutDirectionChangedEventArgs> _layoutDirectionChangedEventHandler;
1351         private LayoutDirectionChangedEventCallbackType _layoutDirectionChangedEventCallback;
1352         // Resource Ready Signal
1353         private EventHandler _resourcesLoadedEventHandler;
1354         private ResourcesLoadedCallbackType _ResourcesLoadedCallback;
1355         private EventHandler<BackgroundResourceLoadedEventArgs> _backgroundResourceLoadedEventHandler;
1356         private _backgroundResourceLoadedCallbackType _backgroundResourceLoadedCallback;
1357
1358         private OnWindowEventCallbackType _onWindowSendEventCallback;
1359
1360         private void SendViewAddedEventToWindow(IntPtr data)
1361         {
1362             Window.Instance?.SendViewAdded(this);
1363         }
1364
1365         /// <summary>
1366         /// Creates a new instance of a view.
1367         /// </summary>
1368         /// <since_tizen> 3 </since_tizen>
1369         public View() : this(Interop.View.View_New(), true)
1370         {
1371             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1372         }
1373
1374         /// <summary>
1375         /// Create a new instance of a View with setting the status of shown or hidden.
1376         /// </summary>
1377         /// <param name="shown">false : Not displayed (hidden), true : displayed (shown)</param>
1378         /// This will be public opened in next release of tizen after ACR done. Before ACR, it is used as HiddenAPI (InhouseAPI).
1379         [EditorBrowsable(EditorBrowsableState.Never)]
1380         public View(bool shown) : this(Interop.View.View_New(), true)
1381         {
1382             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1383             SetVisible(shown);
1384         }
1385
1386         internal View(View uiControl, bool shown = true) : this(Interop.View.new_View__SWIG_1(View.getCPtr(uiControl)), true)
1387         {
1388             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1389             if(!shown)
1390             {
1391                 SetVisible(false);
1392             }
1393         }
1394
1395         internal View(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.View.View_SWIGUpcast(cPtr), cMemoryOwn)
1396         {
1397             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
1398             if (HasBody())
1399             {
1400                 PositionUsesPivotPoint = false;
1401             }
1402
1403             _onWindowSendEventCallback = SendViewAddedEventToWindow;
1404             this.OnWindowSignal().Connect(_onWindowSendEventCallback);
1405
1406             if (!shown)
1407             {
1408                 SetVisible(false);
1409             }
1410         }
1411
1412         internal View(ViewImpl implementation, bool shown = true) : this(Interop.View.new_View__SWIG_2(ViewImpl.getCPtr(implementation)), true)
1413         {
1414             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1415
1416             if (!shown)
1417             {
1418                 SetVisible(false);
1419             }
1420         }
1421
1422         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1423         private delegate void OffWindowEventCallbackType(IntPtr control);
1424         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1425         private delegate bool WheelEventCallbackType(IntPtr view, IntPtr wheelEvent);
1426         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1427         private delegate bool KeyCallbackType(IntPtr control, IntPtr keyEvent);
1428         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1429         private delegate bool TouchDataCallbackType(IntPtr view, IntPtr touchData);
1430         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1431         private delegate bool HoverEventCallbackType(IntPtr view, IntPtr hoverEvent);
1432         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1433         private delegate void VisibilityChangedEventCallbackType(IntPtr data, bool visibility, VisibilityChangeType type);
1434         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1435         private delegate void ResourcesLoadedCallbackType(IntPtr control);
1436         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1437         private delegate void _backgroundResourceLoadedCallbackType(IntPtr view);
1438         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1439         private delegate void KeyInputFocusGainedCallbackType(IntPtr control);
1440         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1441         private delegate void KeyInputFocusLostCallbackType(IntPtr control);
1442         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1443         private delegate void OnRelayoutEventCallbackType(IntPtr control);
1444         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1445         private delegate void OnWindowEventCallbackType(IntPtr control);
1446         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1447         private delegate void LayoutDirectionChangedEventCallbackType(IntPtr data, ViewLayoutDirectionType type);
1448
1449         /// <summary>
1450         /// Event when a child is removed.
1451         /// </summary>
1452         /// <since_tizen> 5 </since_tizen>
1453         public new event EventHandler<ChildRemovedEventArgs> ChildRemoved;
1454         /// <summary>
1455         /// Event when a child is added.
1456         /// </summary>
1457         /// <since_tizen> 5 </since_tizen>
1458         public new event EventHandler<ChildAddedEventArgs> ChildAdded;
1459
1460         /// <summary>
1461         /// An event for the KeyInputFocusGained signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1462         /// The KeyInputFocusGained signal is emitted when the control gets the key input focus.<br />
1463         /// </summary>
1464         /// <since_tizen> 3 </since_tizen>
1465         public event EventHandler FocusGained
1466         {
1467             add
1468             {
1469                 if (_keyInputFocusGainedEventHandler == null)
1470                 {
1471                     _keyInputFocusGainedCallback = OnKeyInputFocusGained;
1472                     this.KeyInputFocusGainedSignal().Connect(_keyInputFocusGainedCallback);
1473                 }
1474
1475                 _keyInputFocusGainedEventHandler += value;
1476             }
1477
1478             remove
1479             {
1480                 _keyInputFocusGainedEventHandler -= value;
1481
1482                 if (_keyInputFocusGainedEventHandler == null && KeyInputFocusGainedSignal().Empty() == false)
1483                 {
1484                     this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
1485                 }
1486             }
1487         }
1488
1489         /// <summary>
1490         /// An event for the KeyInputFocusLost signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1491         /// The KeyInputFocusLost signal is emitted when the control loses the key input focus.<br />
1492         /// </summary>
1493         /// <since_tizen> 3 </since_tizen>
1494         public event EventHandler FocusLost
1495         {
1496             add
1497             {
1498                 if (_keyInputFocusLostEventHandler == null)
1499                 {
1500                     _keyInputFocusLostCallback = OnKeyInputFocusLost;
1501                     this.KeyInputFocusLostSignal().Connect(_keyInputFocusLostCallback);
1502                 }
1503
1504                 _keyInputFocusLostEventHandler += value;
1505             }
1506
1507             remove
1508             {
1509                 _keyInputFocusLostEventHandler -= value;
1510
1511                 if (_keyInputFocusLostEventHandler == null && KeyInputFocusLostSignal().Empty() == false)
1512                 {
1513                     this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
1514                 }
1515             }
1516         }
1517
1518         /// <summary>
1519         /// An event for the KeyPressed signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1520         /// The KeyPressed signal is emitted when the key event is received.<br />
1521         /// </summary>
1522         /// <since_tizen> 3 </since_tizen>
1523         public event EventHandlerWithReturnType<object, KeyEventArgs, bool> KeyEvent
1524         {
1525             add
1526             {
1527                 if (_keyEventHandler == null)
1528                 {
1529                     _keyCallback = OnKeyEvent;
1530                     this.KeyEventSignal().Connect(_keyCallback);
1531                 }
1532
1533                 _keyEventHandler += value;
1534             }
1535
1536             remove
1537             {
1538                 _keyEventHandler -= value;
1539
1540                 if (_keyEventHandler == null && KeyEventSignal().Empty() == false)
1541                 {
1542                     this.KeyEventSignal().Disconnect(_keyCallback);
1543                 }
1544             }
1545         }
1546
1547         /// <summary>
1548         /// An event for the OnRelayout signal which can be used to subscribe or unsubscribe the event handler.<br />
1549         /// The OnRelayout signal is emitted after the size has been set on the view during relayout.<br />
1550         /// </summary>
1551         /// <since_tizen> 3 </since_tizen>
1552         public event EventHandler Relayout
1553         {
1554             add
1555             {
1556                 if (_onRelayoutEventHandler == null)
1557                 {
1558                     _onRelayoutEventCallback = OnRelayout;
1559                     this.OnRelayoutSignal().Connect(_onRelayoutEventCallback);
1560                 }
1561
1562                 _onRelayoutEventHandler += value;
1563             }
1564
1565             remove
1566             {
1567                 _onRelayoutEventHandler -= value;
1568
1569                 if (_onRelayoutEventHandler == null && OnRelayoutSignal().Empty() == false)
1570                 {
1571                     this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
1572                 }
1573
1574             }
1575         }
1576
1577         /// <summary>
1578         /// An event for the touched signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1579         /// The touched signal is emitted when the touch input is received.<br />
1580         /// </summary>
1581         /// <since_tizen> 3 </since_tizen>
1582         public event EventHandlerWithReturnType<object, TouchEventArgs, bool> TouchEvent
1583         {
1584             add
1585             {
1586                 if (_touchDataEventHandler == null)
1587                 {
1588                     _touchDataCallback = OnTouch;
1589                     this.TouchSignal().Connect(_touchDataCallback);
1590                 }
1591
1592                 _touchDataEventHandler += value;
1593             }
1594
1595             remove
1596             {
1597                 _touchDataEventHandler -= value;
1598
1599                 if (_touchDataEventHandler == null && TouchSignal().Empty() == false)
1600                 {
1601                     this.TouchSignal().Disconnect(_touchDataCallback);
1602                 }
1603
1604             }
1605         }
1606
1607         /// <summary>
1608         /// An event for the hovered signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1609         /// The hovered signal is emitted when the hover input is received.<br />
1610         /// </summary>
1611         /// <since_tizen> 3 </since_tizen>
1612         public event EventHandlerWithReturnType<object, HoverEventArgs, bool> HoverEvent
1613         {
1614             add
1615             {
1616                 if (_hoverEventHandler == null)
1617                 {
1618                     _hoverEventCallback = OnHoverEvent;
1619                     this.HoveredSignal().Connect(_hoverEventCallback);
1620                 }
1621
1622                 _hoverEventHandler += value;
1623             }
1624
1625             remove
1626             {
1627                 _hoverEventHandler -= value;
1628
1629                 if (_hoverEventHandler == null && HoveredSignal().Empty() == false)
1630                 {
1631                     this.HoveredSignal().Disconnect(_hoverEventCallback);
1632                 }
1633
1634             }
1635         }
1636
1637         /// <summary>
1638         /// An event for the WheelMoved signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1639         /// The WheelMoved signal is emitted when the wheel event is received.<br />
1640         /// </summary>
1641         /// <since_tizen> 3 </since_tizen>
1642         public event EventHandlerWithReturnType<object, WheelEventArgs, bool> WheelEvent
1643         {
1644             add
1645             {
1646                 if (_wheelEventHandler == null)
1647                 {
1648                     _wheelEventCallback = OnWheelEvent;
1649                     this.WheelEventSignal().Connect(_wheelEventCallback);
1650                 }
1651
1652                 _wheelEventHandler += value;
1653             }
1654
1655             remove
1656             {
1657                 _wheelEventHandler -= value;
1658
1659                 if (_wheelEventHandler == null && WheelEventSignal().Empty() == false)
1660                 {
1661                     this.WheelEventSignal().Disconnect(_wheelEventCallback);
1662                 }
1663
1664             }
1665         }
1666
1667         /// <summary>
1668         /// An event for the OnWindow signal which can be used to subscribe or unsubscribe the event handler.<br />
1669         /// The OnWindow signal is emitted after the view has been connected to the window.<br />
1670         /// </summary>
1671         /// <since_tizen> 3 </since_tizen>
1672         public event EventHandler AddedToWindow
1673         {
1674             add
1675             {
1676                 if (_onWindowEventHandler == null)
1677                 {
1678                     _onWindowEventCallback = OnWindow;
1679                     this.OnWindowSignal().Connect(_onWindowEventCallback);
1680                 }
1681
1682                 _onWindowEventHandler += value;
1683             }
1684
1685             remove
1686             {
1687                 _onWindowEventHandler -= value;
1688
1689                 if (_onWindowEventHandler == null && OnWindowSignal().Empty() == false)
1690                 {
1691                     this.OnWindowSignal().Disconnect(_onWindowEventCallback);
1692                 }
1693             }
1694         }
1695
1696         /// <summary>
1697         /// An event for the OffWindow signal, which can be used to subscribe or unsubscribe the event handler.<br />
1698         /// OffWindow signal is emitted after the view has been disconnected from the window.<br />
1699         /// </summary>
1700         /// <since_tizen> 3 </since_tizen>
1701         public event EventHandler RemovedFromWindow
1702         {
1703             add
1704             {
1705                 if (_offWindowEventHandler == null)
1706                 {
1707                     _offWindowEventCallback = OffWindow;
1708                     this.OffWindowSignal().Connect(_offWindowEventCallback);
1709                 }
1710
1711                 _offWindowEventHandler += value;
1712             }
1713
1714             remove
1715             {
1716                 _offWindowEventHandler -= value;
1717
1718                 if (_offWindowEventHandler == null && OffWindowSignal().Empty() == false)
1719                 {
1720                     this.OffWindowSignal().Disconnect(_offWindowEventCallback);
1721                 }
1722             }
1723         }
1724
1725         /// <summary>
1726         /// An event for visibility change which can be used to subscribe or unsubscribe the event handler.<br />
1727         /// This signal is emitted when the visible property of this or a parent view is changed.<br />
1728         /// </summary>
1729         /// <since_tizen> 3 </since_tizen>
1730         public event EventHandler<VisibilityChangedEventArgs> VisibilityChanged
1731         {
1732             add
1733             {
1734                 if (_visibilityChangedEventHandler == null)
1735                 {
1736                     _visibilityChangedEventCallback = OnVisibilityChanged;
1737                     VisibilityChangedSignal(this).Connect(_visibilityChangedEventCallback);
1738                 }
1739
1740                 _visibilityChangedEventHandler += value;
1741             }
1742
1743             remove
1744             {
1745                 _visibilityChangedEventHandler -= value;
1746
1747                 if (_visibilityChangedEventHandler == null && VisibilityChangedSignal(this).Empty() == false)
1748                 {
1749                     VisibilityChangedSignal(this).Disconnect(_visibilityChangedEventCallback);
1750                 }
1751             }
1752         }
1753
1754         /// <summary>
1755         /// Event for layout direction change which can be used to subscribe/unsubscribe the event handler.<br />
1756         /// This signal is emitted when the layout direction property of this or a parent view is changed.<br />
1757         /// </summary>
1758         /// <since_tizen> 4 </since_tizen>
1759         public event EventHandler<LayoutDirectionChangedEventArgs> LayoutDirectionChanged
1760         {
1761             add
1762             {
1763                 if (_layoutDirectionChangedEventHandler == null)
1764                 {
1765                     _layoutDirectionChangedEventCallback = OnLayoutDirectionChanged;
1766                     LayoutDirectionChangedSignal(this).Connect(_layoutDirectionChangedEventCallback);
1767                 }
1768
1769                 _layoutDirectionChangedEventHandler += value;
1770             }
1771
1772             remove
1773             {
1774                 _layoutDirectionChangedEventHandler -= value;
1775
1776                 if (_layoutDirectionChangedEventHandler == null && LayoutDirectionChangedSignal(this).Empty() == false)
1777                 {
1778                     LayoutDirectionChangedSignal(this).Disconnect(_layoutDirectionChangedEventCallback);
1779                 }
1780             }
1781         }
1782
1783         /// <summary>
1784         /// An event for the ResourcesLoadedSignal signal which can be used to subscribe or unsubscribe the event handler provided by the user.<br />
1785         /// This signal is emitted after all resources required by a view are loaded and ready.<br />
1786         /// </summary>
1787         /// <since_tizen> 3 </since_tizen>
1788         public event EventHandler ResourcesLoaded
1789         {
1790             add
1791             {
1792                 if (_resourcesLoadedEventHandler == null)
1793                 {
1794                     _ResourcesLoadedCallback = OnResourcesLoaded;
1795                     this.ResourcesLoadedSignal().Connect(_ResourcesLoadedCallback);
1796                 }
1797
1798                 _resourcesLoadedEventHandler += value;
1799             }
1800
1801             remove
1802             {
1803                 _resourcesLoadedEventHandler -= value;
1804
1805                 if (_resourcesLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1806                 {
1807                     this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
1808                 }
1809             }
1810         }
1811
1812         internal event EventHandler<BackgroundResourceLoadedEventArgs> BackgroundResourceLoaded
1813         {
1814             add
1815             {
1816                 if (_backgroundResourceLoadedEventHandler == null)
1817                 {
1818                     _backgroundResourceLoadedCallback = OnBackgroundResourceLoaded;
1819                     this.ResourcesLoadedSignal().Connect(_backgroundResourceLoadedCallback);
1820                 }
1821
1822                 _backgroundResourceLoadedEventHandler += value;
1823             }
1824             remove
1825             {
1826                 _backgroundResourceLoadedEventHandler -= value;
1827
1828                 if (_backgroundResourceLoadedEventHandler == null && ResourcesLoadedSignal().Empty() == false)
1829                 {
1830                     this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
1831                 }
1832             }
1833         }
1834
1835         /// <summary>
1836         /// Enumeration for describing the states of the view.
1837         /// </summary>
1838         /// <since_tizen> 3 </since_tizen>
1839         public enum States
1840         {
1841             /// <summary>
1842             /// The normal state.
1843             /// </summary>
1844             Normal,
1845             /// <summary>
1846             /// The focused state.
1847             /// </summary>
1848             Focused,
1849             /// <summary>
1850             /// The disabled state.
1851             /// </summary>
1852             Disabled
1853         }
1854
1855         /// <summary>
1856         /// Describes the direction to move the focus towards.
1857         /// </summary>
1858         /// <since_tizen> 3 </since_tizen>
1859         public enum FocusDirection
1860         {
1861             /// <summary>
1862             /// Move keyboard focus towards the left direction.
1863             /// </summary>
1864             /// <since_tizen> 3 </since_tizen>
1865             Left,
1866             /// <summary>
1867             /// Move keyboard focus towards the right direction.
1868             /// </summary>
1869             /// <since_tizen> 3 </since_tizen>
1870             Right,
1871             /// <summary>
1872             /// Move keyboard focus towards the up direction.
1873             /// </summary>
1874             /// <since_tizen> 3 </since_tizen>
1875             Up,
1876             /// <summary>
1877             /// Move keyboard focus towards the down direction.
1878             /// </summary>
1879             /// <since_tizen> 3 </since_tizen>
1880             Down,
1881             /// <summary>
1882             /// Move keyboard focus towards the previous page direction.
1883             /// </summary>
1884             /// <since_tizen> 3 </since_tizen>
1885             PageUp,
1886             /// <summary>
1887             /// Move keyboard focus towards the next page direction.
1888             /// </summary>
1889             /// <since_tizen> 3 </since_tizen>
1890             PageDown
1891         }
1892
1893         internal enum PropertyRange
1894         {
1895             PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
1896             CONTROL_PROPERTY_START_INDEX = PROPERTY_START_INDEX,
1897             CONTROL_PROPERTY_END_INDEX = CONTROL_PROPERTY_START_INDEX + 1000
1898         }
1899
1900         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1901         [EditorBrowsable(EditorBrowsableState.Never)]
1902         public bool IsResourcesCreated
1903         {
1904             get
1905             {
1906                 return Application.Current.IsResourcesCreated;
1907             }
1908         }
1909
1910         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1911         [EditorBrowsable(EditorBrowsableState.Never)]
1912         public ResourceDictionary XamlResources
1913         {
1914             get
1915             {
1916                 return Application.Current.XamlResources;
1917             }
1918             set
1919             {
1920                 Application.Current.XamlResources = value;
1921             }
1922         }
1923
1924         /// <summary>
1925         /// The StyleName, type string.
1926         /// </summary>
1927         /// <since_tizen> 3 </since_tizen>
1928         public string StyleName
1929         {
1930             get
1931             {
1932                 return (string)GetValue(StyleNameProperty);
1933             }
1934             set
1935             {
1936                 SetValue(StyleNameProperty, value);
1937                 NotifyPropertyChanged();
1938             }
1939         }
1940
1941         /// <summary>
1942         /// The mutually exclusive with BACKGROUND_IMAGE and BACKGROUND type Vector4.
1943         /// </summary>
1944         /// <since_tizen> 3 </since_tizen>
1945         public Color BackgroundColor
1946         {
1947             get
1948             {
1949                 return (Color)GetValue(BackgroundColorProperty);
1950             }
1951             set
1952             {
1953                 SetValue(BackgroundColorProperty, value);
1954                 NotifyPropertyChanged();
1955             }
1956         }
1957
1958         /// <summary>
1959         /// The mutually exclusive with BACKGROUND_COLOR and BACKGROUND type Map.
1960         /// </summary>
1961         /// <since_tizen> 3 </since_tizen>
1962         public string BackgroundImage
1963         {
1964             get
1965             {
1966                 return (string)GetValue(BackgroundImageProperty);
1967             }
1968             set
1969             {
1970                 SetValue(BackgroundImageProperty, value);
1971                 NotifyPropertyChanged();
1972             }
1973         }
1974
1975         /// <summary>
1976         /// The background of view.
1977         /// </summary>
1978         /// <since_tizen> 3 </since_tizen>
1979         public Tizen.NUI.PropertyMap Background
1980         {
1981             get
1982             {
1983                 return (PropertyMap)GetValue(BackgroundProperty);
1984             }
1985             set
1986             {
1987                 SetValue(BackgroundProperty, value);
1988                 NotifyPropertyChanged();
1989             }
1990         }
1991
1992
1993         /// <summary>
1994         /// The current state of the view.
1995         /// </summary>
1996         /// <since_tizen> 3 </since_tizen>
1997         public States State
1998         {
1999             get
2000             {
2001                 return (States)GetValue(StateProperty);
2002             }
2003             set
2004             {
2005                 SetValue(StateProperty, value);
2006                 NotifyPropertyChanged();
2007             }
2008         }
2009
2010         /// <summary>
2011         /// The current sub state of the view.
2012         /// </summary>
2013         /// <since_tizen> 3 </since_tizen>
2014         public States SubState
2015         {
2016             get
2017             {
2018                 return (States)GetValue(SubStateProperty);
2019             }
2020             set
2021             {
2022                 SetValue(SubStateProperty, value);
2023                 NotifyPropertyChanged();
2024             }
2025         }
2026
2027         /// <summary>
2028         /// Displays a tooltip
2029         /// </summary>
2030         /// <since_tizen> 3 </since_tizen>
2031         public Tizen.NUI.PropertyMap Tooltip
2032         {
2033             get
2034             {
2035                 return (PropertyMap)GetValue(TooltipProperty);
2036             }
2037             set
2038             {
2039                 SetValue(TooltipProperty, value);
2040                 NotifyPropertyChanged();
2041             }
2042         }
2043
2044         /// <summary>
2045         /// Displays a tooltip as a text.
2046         /// </summary>
2047         /// <since_tizen> 3 </since_tizen>
2048         public string TooltipText
2049         {
2050             set
2051             {
2052                 SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
2053                 NotifyPropertyChanged();
2054             }
2055         }
2056
2057         /// <summary>
2058         /// The Child property of FlexContainer.<br />
2059         /// The proportion of the free space in the container, the flex item will receive.<br />
2060         /// If all items in the container set this property, their sizes will be proportional to the specified flex factor.<br />
2061         /// </summary>
2062         /// <since_tizen> 3 </since_tizen>
2063         public float Flex
2064         {
2065             get
2066             {
2067                 return (float)GetValue(FlexProperty);
2068             }
2069             set
2070             {
2071                 SetValue(FlexProperty, value);
2072                 NotifyPropertyChanged();
2073             }
2074         }
2075
2076         /// <summary>
2077         /// The Child property of FlexContainer.<br />
2078         /// The alignment of the flex item along the cross axis, which, if set, overides the default alignment for all items in the container.<br />
2079         /// </summary>
2080         /// <since_tizen> 3 </since_tizen>
2081         public int AlignSelf
2082         {
2083             get
2084             {
2085                 return (int)GetValue(AlignSelfProperty);
2086             }
2087             set
2088             {
2089                 SetValue(AlignSelfProperty, value);
2090                 NotifyPropertyChanged();
2091             }
2092         }
2093
2094         /// <summary>
2095         /// The Child property of FlexContainer.<br />
2096         /// The space around the flex item.<br />
2097         /// </summary>
2098         /// <since_tizen> 3 </since_tizen>
2099         public Vector4 FlexMargin
2100         {
2101             get
2102             {
2103                 return (Vector4)GetValue(FlexMarginProperty);
2104             }
2105             set
2106             {
2107                 SetValue(FlexMarginProperty, value);
2108                 NotifyPropertyChanged();
2109             }
2110         }
2111
2112         /// <summary>
2113         /// The top-left cell this child occupies, if not set, the first available cell is used.
2114         /// </summary>
2115         /// <since_tizen> 3 </since_tizen>
2116         public Vector2 CellIndex
2117         {
2118             get
2119             {
2120                 return (Vector2)GetValue(CellIndexProperty);
2121             }
2122             set
2123             {
2124                 SetValue(CellIndexProperty, value);
2125                 NotifyPropertyChanged();
2126             }
2127         }
2128
2129         /// <summary>
2130         /// The number of rows this child occupies, if not set, the default value is 1.
2131         /// </summary>
2132         /// <since_tizen> 3 </since_tizen>
2133         public float RowSpan
2134         {
2135             get
2136             {
2137                 return (float)GetValue(RowSpanProperty);
2138             }
2139             set
2140             {
2141                 SetValue(RowSpanProperty, value);
2142                 NotifyPropertyChanged();
2143             }
2144         }
2145
2146         /// <summary>
2147         /// The number of columns this child occupies, if not set, the default value is 1.
2148         /// </summary>
2149         /// <since_tizen> 3 </since_tizen>
2150         public float ColumnSpan
2151         {
2152             get
2153             {
2154                 return (float)GetValue(ColumnSpanProperty);
2155             }
2156             set
2157             {
2158                 SetValue(ColumnSpanProperty, value);
2159                 NotifyPropertyChanged();
2160             }
2161         }
2162
2163         /// <summary>
2164         /// The horizontal alignment of this child inside the cells, if not set, the default value is 'left'.
2165         /// </summary>
2166         /// <since_tizen> 3 </since_tizen>
2167         public Tizen.NUI.HorizontalAlignmentType CellHorizontalAlignment
2168         {
2169             get
2170             {
2171                 return (HorizontalAlignmentType)GetValue(CellHorizontalAlignmentProperty);
2172             }
2173             set
2174             {
2175                 SetValue(CellHorizontalAlignmentProperty, value);
2176                 NotifyPropertyChanged();
2177             }
2178         }
2179
2180         /// <summary>
2181         /// The vertical alignment of this child inside the cells, if not set, the default value is 'top'.
2182         /// </summary>
2183         /// <since_tizen> 3 </since_tizen>
2184         public Tizen.NUI.VerticalAlignmentType CellVerticalAlignment
2185         {
2186             get
2187             {
2188                 return (VerticalAlignmentType)GetValue(CellVerticalAlignmentProperty);
2189             }
2190             set
2191             {
2192                 SetValue(CellVerticalAlignmentProperty, value);
2193                 NotifyPropertyChanged();
2194             }
2195         }
2196
2197         /// <summary>
2198         /// The left focusable view.<br />
2199         /// This will return null if not set.<br />
2200         /// This will also return null if the specified left focusable view is not on a window.<br />
2201         /// </summary>
2202         /// <since_tizen> 3 </since_tizen>
2203         public View LeftFocusableView
2204         {
2205             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2206             get
2207             {
2208                 return (View)GetValue(LeftFocusableViewProperty);
2209             }
2210             set
2211             {
2212                 SetValue(LeftFocusableViewProperty, value);
2213                 NotifyPropertyChanged();
2214             }
2215         }
2216
2217         /// <summary>
2218         /// The right focusable view.<br />
2219         /// This will return null if not set.<br />
2220         /// This will also return null if the specified right focusable view is not on a window.<br />
2221         /// </summary>
2222         /// <since_tizen> 3 </since_tizen>
2223         public View RightFocusableView
2224         {
2225             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2226             get
2227             {
2228                 return (View)GetValue(RightFocusableViewProperty);
2229             }
2230             set
2231             {
2232                 SetValue(RightFocusableViewProperty, value);
2233                 NotifyPropertyChanged();
2234             }
2235         }
2236
2237         /// <summary>
2238         /// The up focusable view.<br />
2239         /// This will return null if not set.<br />
2240         /// This will also return null if the specified up focusable view is not on a window.<br />
2241         /// </summary>
2242         /// <since_tizen> 3 </since_tizen>
2243         public View UpFocusableView
2244         {
2245             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2246             get
2247             {
2248                 return (View)GetValue(UpFocusableViewProperty);
2249             }
2250             set
2251             {
2252                 SetValue(UpFocusableViewProperty, value);
2253                 NotifyPropertyChanged();
2254             }
2255         }
2256
2257         /// <summary>
2258         /// The down focusable view.<br />
2259         /// This will return null if not set.<br />
2260         /// This will also return null if the specified down focusable view is not on a window.<br />
2261         /// </summary>
2262         /// <since_tizen> 3 </since_tizen>
2263         public View DownFocusableView
2264         {
2265             // As native side will be only storing IDs so need a logic to convert View to ID and vice-versa.
2266             get
2267             {
2268                 return (View)GetValue(DownFocusableViewProperty);
2269             }
2270             set
2271             {
2272                 SetValue(DownFocusableViewProperty, value);
2273                 NotifyPropertyChanged();
2274             }
2275         }
2276
2277         /// <summary>
2278         /// Whether the view should be focusable by keyboard navigation.
2279         /// </summary>
2280         /// <since_tizen> 3 </since_tizen>
2281         public bool Focusable
2282         {
2283             set
2284             {
2285                 SetValue(FocusableProperty, value);
2286                 NotifyPropertyChanged();
2287             }
2288             get
2289             {
2290                 return (bool)GetValue(FocusableProperty);
2291             }
2292         }
2293
2294         /// <summary>
2295         ///  Retrieves the position of the view.<br />
2296         ///  The coordinates are relative to the view's parent.<br />
2297         /// </summary>
2298         /// <since_tizen> 3 </since_tizen>
2299         public Position CurrentPosition
2300         {
2301             get
2302             {
2303                 return GetCurrentPosition();
2304             }
2305         }
2306
2307         /// <summary>
2308         /// Sets the size of a view for the width and the height.<br />
2309         /// Geometry can be scaled to fit within this area.<br />
2310         /// This does not interfere with the view's scale factor.<br />
2311         /// The views default depth is the minimum of width and height.<br />
2312         /// </summary>
2313         /// <remarks>
2314         /// This NUI object (Size2D) typed property can be configured by multiple cascade setting. <br />
2315         /// For example, this code ( view.Size2D.Width = 100; view.Size2D.Height = 100; ) is equivalent to this ( view.Size2D = new Size2D(100, 100); ). <br />
2316         /// Please note that this multi-cascade setting is especially possible for this NUI object (Size2D). <br />
2317         /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2318         /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2319         /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2320         /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimum size is set. <br />
2321         /// </remarks>
2322         /// <since_tizen> 3 </since_tizen>
2323         public Size2D Size2D
2324         {
2325             get
2326             {
2327                 Size2D temp = (Size2D)GetValue(Size2DProperty);
2328                 return new Size2D(OnSize2DChanged, temp.Width, temp.Height);
2329             }
2330             set
2331             {
2332                 SetValue(Size2DProperty, value);
2333                 // Set Specification so when layouts measure this View it matches the value set here.
2334                 // All Views are currently Layouts.
2335                 MeasureSpecificationWidth = new MeasureSpecification(new LayoutLength(value.Width), MeasureSpecification.ModeType.Exactly);
2336                 MeasureSpecificationHeight = new MeasureSpecification(new LayoutLength(value.Height), MeasureSpecification.ModeType.Exactly);
2337                 _widthPolicy = value.Width;
2338                 _heightPolicy = value.Height;
2339                 _layout?.RequestLayout();
2340                 NotifyPropertyChanged();
2341             }
2342         }
2343
2344         /// <summary>
2345         ///  Retrieves the size of the view.<br />
2346         ///  The coordinates are relative to the view's parent.<br />
2347         /// </summary>
2348         /// <since_tizen> 3 </since_tizen>
2349         public Size2D CurrentSize
2350         {
2351             get
2352             {
2353                 return GetCurrentSize();
2354             }
2355         }
2356
2357         /// <summary>
2358         /// Retrieves and sets the view's opacity.<br />
2359         /// </summary>
2360         /// <since_tizen> 3 </since_tizen>
2361         public float Opacity
2362         {
2363             get
2364             {
2365                 return (float)GetValue(OpacityProperty);
2366             }
2367             set
2368             {
2369                 SetValue(OpacityProperty, value);
2370                 NotifyPropertyChanged();
2371             }
2372         }
2373
2374         /// <summary>
2375         /// Sets the position of the view for X and Y.<br />
2376         /// By default, sets the position vector between the parent origin and the pivot point (default).<br />
2377         /// If the position inheritance is disabled, sets the world position.<br />
2378         /// </summary>
2379         /// <remarks>
2380         /// This NUI object (Position2D) typed property can be configured by multiple cascade setting. <br />
2381         /// For example, this code ( view.Position2D.X = 100; view.Position2D.Y = 100; ) is equivalent to this ( view.Position2D = new Position2D(100, 100); ). <br />
2382         /// Please note that this multi-cascade setting is especially possible for this NUI object (Position2D). <br />
2383         /// This means by default others are impossible so it is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
2384         /// For example, this code is working fine : view.Scale = new Vector3( 2.0f, 1.5f, 0.0f); <br />
2385         /// but this will not work! : view.Scale.X = 2.0f; view.Scale.Y = 1.5f; <br />
2386         /// </remarks>
2387         /// <since_tizen> 3 </since_tizen>
2388         public Position2D Position2D
2389         {
2390             get
2391             {
2392                 Position2D temp = (Position2D)GetValue(Position2DProperty);
2393                 return new Position2D(OnPosition2DChanged, temp.X, temp.Y);
2394             }
2395             set
2396             {
2397                 SetValue(Position2DProperty, value);
2398                 NotifyPropertyChanged();
2399             }
2400         }
2401
2402         /// <summary>
2403         /// Retrieves the screen postion of the view.<br />
2404         /// </summary>
2405         /// <since_tizen> 3 </since_tizen>
2406         public Vector2 ScreenPosition
2407         {
2408             get
2409             {
2410                 Vector2 temp = new Vector2(0.0f, 0.0f);
2411                 GetProperty(View.Property.SCREEN_POSITION).Get(temp);
2412                 return temp;
2413             }
2414         }
2415
2416         /// <summary>
2417         /// Determines whether the pivot point should be used to determine the position of the view.
2418         /// This is true by default.
2419         /// </summary>
2420         /// <remarks>If false, then the top-left of the view is used for the position.
2421         /// Setting this to false will allow scaling or rotation around the pivot point without affecting the view's position.
2422         /// </remarks>
2423         /// <since_tizen> 3 </since_tizen>
2424         public bool PositionUsesPivotPoint
2425         {
2426             get
2427             {
2428                 return (bool)GetValue(PositionUsesPivotPointProperty);
2429             }
2430             set
2431             {
2432                 SetValue(PositionUsesPivotPointProperty, value);
2433                 NotifyPropertyChanged();
2434             }
2435         }
2436
2437         /// <summary>
2438         /// Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead!
2439         /// </summary>
2440         /// <since_tizen> 3 </since_tizen>
2441         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PositionUsesPivotPoint instead! " +
2442             "Like: " +
2443             "View view = new View(); " +
2444             "view.PivotPoint = PivotPoint.Center; " +
2445             "view.PositionUsesPivotPoint = true;" +
2446             " Deprecated in API5: Will be removed in API8")]
2447         [EditorBrowsable(EditorBrowsableState.Never)]
2448         public bool PositionUsesAnchorPoint
2449         {
2450             get
2451             {
2452                 bool temp = false;
2453                 GetProperty(View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
2454                 return temp;
2455             }
2456             set
2457             {
2458                 SetProperty(View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
2459                 NotifyPropertyChanged();
2460             }
2461         }
2462
2463         /// <summary>
2464         /// Queries whether the view is connected to the stage.<br />
2465         /// When a view is connected, it will be directly or indirectly parented to the root view.<br />
2466         /// </summary>
2467         /// <since_tizen> 3 </since_tizen>
2468         public bool IsOnWindow
2469         {
2470             get
2471             {
2472                 return OnWindow();
2473             }
2474         }
2475
2476         /// <summary>
2477         /// Gets the depth in the hierarchy for the view.
2478         /// </summary>
2479         /// <since_tizen> 3 </since_tizen>
2480         public int HierarchyDepth
2481         {
2482             get
2483             {
2484                 return GetHierarchyDepth();
2485             }
2486         }
2487
2488         /// <summary>
2489         /// Sets the sibling order of the view so the depth position can be defined within the same parent.
2490         /// </summary>
2491         /// <remarks>
2492         /// Note the initial value is 0. SiblingOrder should be bigger than 0 or equal to 0.
2493         /// Raise, Lower, RaiseToTop, LowerToBottom, RaiseAbove, and LowerBelow will override the sibling order.
2494         /// The values set by this property will likely change.
2495         /// </remarks>
2496         /// <since_tizen> 3 </since_tizen>
2497         public int SiblingOrder
2498         {
2499             get
2500             {
2501                 return (int)GetValue(SiblingOrderProperty);
2502             }
2503             set
2504             {
2505                 SetValue(SiblingOrderProperty, value);
2506                 NotifyPropertyChanged();
2507             }
2508         }
2509
2510         /// <summary>
2511         /// Returns the natural size of the view.
2512         /// </summary>
2513         /// <remarks>
2514         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2515         /// </remarks>
2516         /// <since_tizen> 5 </since_tizen>
2517         public Vector3 NaturalSize
2518         {
2519             get
2520             {
2521                 Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2522                 if (NDalicPINVOKE.SWIGPendingException.Pending)
2523                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2524                 return ret;
2525             }
2526         }
2527
2528         /// <summary>
2529         /// Returns the natural size (Size2D) of the view.
2530         /// </summary>
2531         /// <remarks>
2532         /// Deriving classes stipulate the natural size and by default a view has a zero natural size.
2533         /// </remarks>
2534         /// <since_tizen> 4 </since_tizen>
2535         public Size2D NaturalSize2D
2536         {
2537             get
2538             {
2539                 Vector3 temp = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
2540                 if (NDalicPINVOKE.SWIGPendingException.Pending)
2541                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2542
2543                 return new Size2D((int)temp.Width, (int)temp.Height);
2544             }
2545         }
2546
2547         /// <summary>
2548         /// Gets or sets the origin of a view within its parent's area.<br />
2549         /// 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 />
2550         /// The default parent-origin is ParentOrigin.TopLeft (0.0, 0.0, 0.5).<br />
2551         /// A view's position is the distance between this origin and the view's anchor-point.<br />
2552         /// </summary>
2553         /// <pre>The view has been initialized.</pre>
2554         /// <since_tizen> 3 </since_tizen>
2555         public Position ParentOrigin
2556         {
2557             get
2558             {
2559                 Position tmp = (Position)GetValue(ParentOriginProperty);
2560                 return new Position(OnParentOriginChanged, tmp.X, tmp.Y, tmp.Z);
2561             }
2562             set
2563             {
2564                 SetValue(ParentOriginProperty, value);
2565                 NotifyPropertyChanged();
2566             }
2567         }
2568
2569         /// <summary>
2570         /// Gets or sets the anchor-point of a view.<br />
2571         /// 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 />
2572         /// The default pivot point is PivotPoint.Center (0.5, 0.5, 0.5).<br />
2573         /// A view position is the distance between its parent-origin and this anchor-point.<br />
2574         /// A view's orientation is the rotation from its default orientation, the rotation is centered around its anchor-point.<br />
2575         /// <pre>The view has been initialized.</pre>
2576         /// </summary>
2577         /// <since_tizen> 3 </since_tizen>
2578         public Position PivotPoint
2579         {
2580             get
2581             {
2582                 Position tmp = (Position)GetValue(PivotPointProperty);
2583                 return new Position(OnPivotPointChanged, tmp.X, tmp.Y, tmp.Z);
2584             }
2585             set
2586             {
2587                 SetValue(PivotPointProperty, value);
2588                 NotifyPropertyChanged();
2589             }
2590         }
2591
2592         /// <summary>
2593         /// Gets or sets the size width of the view.
2594         /// </summary>
2595         /// <since_tizen> 3 </since_tizen>
2596         public float SizeWidth
2597         {
2598             get
2599             {
2600                 return (float)GetValue(SizeWidthProperty);
2601             }
2602             set
2603             {
2604                 SetValue(SizeWidthProperty, value);
2605                 WidthSpecification = (int)Math.Ceiling(value);
2606                 NotifyPropertyChanged();
2607             }
2608         }
2609
2610         /// <summary>
2611         /// Gets or sets the size height of the view.
2612         /// </summary>
2613         /// <since_tizen> 3 </since_tizen>
2614         public float SizeHeight
2615         {
2616             get
2617             {
2618                 return (float)GetValue(SizeHeightProperty);
2619             }
2620             set
2621             {
2622                 SetValue(SizeHeightProperty, value);
2623                 HeightSpecification = (int)Math.Ceiling(value);
2624                 NotifyPropertyChanged();
2625             }
2626         }
2627
2628         /// <summary>
2629         /// Gets or sets the position of the view.<br />
2630         /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2631         /// If the position inheritance is disabled, sets the world position.<br />
2632         /// </summary>
2633         /// <since_tizen> 3 </since_tizen>
2634         public Position Position
2635         {
2636             get
2637             {
2638                 Position tmp = (Position)GetValue(PositionProperty);
2639                 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
2640             }
2641             set
2642             {
2643                 SetValue(PositionProperty, value);
2644                 NotifyPropertyChanged();
2645             }
2646         }
2647
2648         /// <summary>
2649         /// Gets or sets the position X of the view.
2650         /// </summary>
2651         /// <since_tizen> 3 </since_tizen>
2652         public float PositionX
2653         {
2654             get
2655             {
2656                 return (float)GetValue(PositionXProperty);
2657             }
2658             set
2659             {
2660                 SetValue(PositionXProperty, value);
2661                 NotifyPropertyChanged();
2662             }
2663         }
2664
2665         /// <summary>
2666         /// Gets or sets the position Y of the view.
2667         /// </summary>
2668         /// <since_tizen> 3 </since_tizen>
2669         public float PositionY
2670         {
2671             get
2672             {
2673                 return (float)GetValue(PositionYProperty);
2674             }
2675             set
2676             {
2677                 SetValue(PositionYProperty, value);
2678                 NotifyPropertyChanged();
2679             }
2680         }
2681
2682         /// <summary>
2683         /// Gets or sets the position Z of the view.
2684         /// </summary>
2685         /// <since_tizen> 3 </since_tizen>
2686         public float PositionZ
2687         {
2688             get
2689             {
2690                 return (float)GetValue(PositionZProperty);
2691             }
2692             set
2693             {
2694                 SetValue(PositionZProperty, value);
2695                 NotifyPropertyChanged();
2696             }
2697         }
2698
2699         /// <summary>
2700         /// Gets or sets the world position of the view.
2701         /// </summary>
2702         /// <since_tizen> 3 </since_tizen>
2703         public Vector3 WorldPosition
2704         {
2705             get
2706             {
2707                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2708                 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2709                 return temp;
2710             }
2711         }
2712
2713         /// <summary>
2714         /// Gets or sets the orientation of the view.<br />
2715         /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2716         /// </summary>
2717         /// <remarks>This is an asynchronous method.</remarks>
2718         /// <since_tizen> 3 </since_tizen>
2719         public Rotation Orientation
2720         {
2721             get
2722             {
2723                 return (Rotation)GetValue(OrientationProperty);
2724             }
2725             set
2726             {
2727                 SetValue(OrientationProperty, value);
2728                 NotifyPropertyChanged();
2729             }
2730         }
2731
2732         /// <summary>
2733         /// Gets or sets the world orientation of the view.<br />
2734         /// </summary>
2735         /// <since_tizen> 3 </since_tizen>
2736         public Rotation WorldOrientation
2737         {
2738             get
2739             {
2740                 Rotation temp = new Rotation();
2741                 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2742                 return temp;
2743             }
2744         }
2745
2746         /// <summary>
2747         /// Gets or sets the scale factor applied to the view.<br />
2748         /// </summary>
2749         /// <since_tizen> 3 </since_tizen>
2750         public Vector3 Scale
2751         {
2752             get
2753             {
2754                 return (Vector3)GetValue(ScaleProperty);
2755             }
2756             set
2757             {
2758                 SetValue(ScaleProperty, value);
2759                 NotifyPropertyChanged();
2760             }
2761         }
2762
2763         /// <summary>
2764         /// Gets or sets the scale X factor applied to the view.
2765         /// </summary>
2766         /// <since_tizen> 3 </since_tizen>
2767         public float ScaleX
2768         {
2769             get
2770             {
2771                 return (float)GetValue(ScaleXProperty);
2772             }
2773             set
2774             {
2775                 SetValue(ScaleXProperty, value);
2776                 NotifyPropertyChanged();
2777             }
2778         }
2779
2780         /// <summary>
2781         /// Gets or sets the scale Y factor applied to the view.
2782         /// </summary>
2783         /// <since_tizen> 3 </since_tizen>
2784         public float ScaleY
2785         {
2786             get
2787             {
2788                 return (float)GetValue(ScaleYProperty);
2789             }
2790             set
2791             {
2792                 SetValue(ScaleYProperty, value);
2793                 NotifyPropertyChanged();
2794             }
2795         }
2796
2797         /// <summary>
2798         /// Gets or sets the scale Z factor applied to the view.
2799         /// </summary>
2800         /// <since_tizen> 3 </since_tizen>
2801         public float ScaleZ
2802         {
2803             get
2804             {
2805                 return (float)GetValue(ScaleZProperty);
2806             }
2807             set
2808             {
2809                 SetValue(ScaleZProperty, value);
2810                 NotifyPropertyChanged();
2811             }
2812         }
2813
2814         /// <summary>
2815         /// Gets the world scale of the view.
2816         /// </summary>
2817         /// <since_tizen> 3 </since_tizen>
2818         public Vector3 WorldScale
2819         {
2820             get
2821             {
2822                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2823                 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2824                 return temp;
2825             }
2826         }
2827
2828         /// <summary>
2829         /// Retrieves the visibility flag of the view.
2830         /// </summary>
2831         /// <remarks>
2832         /// If the view is not visible, then the view and its children will not be rendered.
2833         /// 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.
2834         /// </remarks>
2835         /// <since_tizen> 3 </since_tizen>
2836         public bool Visibility
2837         {
2838             get
2839             {
2840                 bool temp = false;
2841                 GetProperty(View.Property.VISIBLE).Get(out temp);
2842                 return temp;
2843             }
2844         }
2845
2846         /// <summary>
2847         /// Gets the view's world color.
2848         /// </summary>
2849         /// <since_tizen> 3 </since_tizen>
2850         public Vector4 WorldColor
2851         {
2852             get
2853             {
2854                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2855                 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2856                 return temp;
2857             }
2858         }
2859
2860         /// <summary>
2861         /// Gets or sets the view's name.
2862         /// </summary>
2863         /// <since_tizen> 3 </since_tizen>
2864         public string Name
2865         {
2866             get
2867             {
2868                 return (string)GetValue(NameProperty);
2869             }
2870             set
2871             {
2872                 SetValue(NameProperty, value);
2873                 NotifyPropertyChanged();
2874             }
2875         }
2876
2877         /// <summary>
2878         /// Get the number of children held by the view.
2879         /// </summary>
2880         /// <since_tizen> 3 </since_tizen>
2881         public new uint ChildCount
2882         {
2883             get
2884             {
2885                 return GetChildCount();
2886             }
2887         }
2888
2889         /// <summary>
2890         /// Gets the view's ID.
2891         /// Readonly
2892         /// </summary>
2893         /// <since_tizen> 3 </since_tizen>
2894         public uint ID
2895         {
2896             get
2897             {
2898                 return GetId();
2899             }
2900         }
2901
2902         /// <summary>
2903         /// Gets or sets the status of whether the view should emit touch or hover signals.
2904         /// </summary>
2905         /// <since_tizen> 3 </since_tizen>
2906         public bool Sensitive
2907         {
2908             get
2909             {
2910                 return (bool)GetValue(SensitiveProperty);
2911             }
2912             set
2913             {
2914                 SetValue(SensitiveProperty, value);
2915                 NotifyPropertyChanged();
2916             }
2917         }
2918
2919         /// <summary>
2920         /// 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.
2921         /// </summary>
2922         /// <since_tizen> 3 </since_tizen>
2923         public bool LeaveRequired
2924         {
2925             get
2926             {
2927                 return (bool)GetValue(LeaveRequiredProperty);
2928             }
2929             set
2930             {
2931                 SetValue(LeaveRequiredProperty, value);
2932                 NotifyPropertyChanged();
2933             }
2934         }
2935
2936         /// <summary>
2937         /// Gets or sets the status of whether a child view inherits it's parent's orientation.
2938         /// </summary>
2939         /// <since_tizen> 3 </since_tizen>
2940         public bool InheritOrientation
2941         {
2942             get
2943             {
2944                 return (bool)GetValue(InheritOrientationProperty);
2945             }
2946             set
2947             {
2948                 SetValue(InheritOrientationProperty, value);
2949                 NotifyPropertyChanged();
2950             }
2951         }
2952
2953         /// <summary>
2954         /// Gets or sets the status of whether a child view inherits it's parent's scale.
2955         /// </summary>
2956         /// <since_tizen> 3 </since_tizen>
2957         public bool InheritScale
2958         {
2959             get
2960             {
2961                 return (bool)GetValue(InheritScaleProperty);
2962             }
2963             set
2964             {
2965                 SetValue(InheritScaleProperty, value);
2966                 NotifyPropertyChanged();
2967             }
2968         }
2969
2970         /// <summary>
2971         /// Gets or sets the status of how the view and its children should be drawn.<br />
2972         /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
2973         /// 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 />
2974         /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
2975         /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
2976         /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
2977         /// </summary>
2978         /// <since_tizen> 3 </since_tizen>
2979         public DrawModeType DrawMode
2980         {
2981             get
2982             {
2983                 return (DrawModeType)GetValue(DrawModeProperty);
2984             }
2985             set
2986             {
2987                 SetValue(DrawModeProperty, value);
2988                 NotifyPropertyChanged();
2989             }
2990         }
2991
2992         /// <summary>
2993         /// Gets or sets the relative to parent size factor of the view.<br />
2994         /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
2995         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
2996         /// </summary>
2997         /// <since_tizen> 3 </since_tizen>
2998         public Vector3 SizeModeFactor
2999         {
3000             get
3001             {
3002                 return (Vector3)GetValue(SizeModeFactorProperty);
3003             }
3004             set
3005             {
3006                 SetValue(SizeModeFactorProperty, value);
3007                 NotifyPropertyChanged();
3008             }
3009         }
3010
3011         /// <summary>
3012         /// Gets or sets the width resize policy to be used.
3013         /// </summary>
3014         /// <since_tizen> 3 </since_tizen>
3015         public ResizePolicyType WidthResizePolicy
3016         {
3017             get
3018             {
3019                 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
3020             }
3021             set
3022             {
3023                 SetValue(WidthResizePolicyProperty, value);
3024                 // Match ResizePolicy to new Layouting.
3025                 // Parent relative policies can not be mapped at this point as parent size unknown.
3026                 switch (value)
3027                 {
3028                     case ResizePolicyType.UseNaturalSize:
3029                     {
3030                         WidthSpecification = LayoutParamPolicies.WrapContent;
3031                         break;
3032                     }
3033                     case ResizePolicyType.FillToParent:
3034                     {
3035                         WidthSpecification = LayoutParamPolicies.MatchParent;
3036                         break;
3037                     }
3038                     case ResizePolicyType.FitToChildren:
3039                     {
3040                         WidthSpecification = LayoutParamPolicies.WrapContent;
3041                         break;
3042                     }
3043                     default:
3044                         break;
3045                 }
3046                 NotifyPropertyChanged();
3047             }
3048         }
3049
3050         /// <summary>
3051         /// Gets or sets the height resize policy to be used.
3052         /// </summary>
3053         /// <since_tizen> 3 </since_tizen>
3054         public ResizePolicyType HeightResizePolicy
3055         {
3056             get
3057             {
3058                 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3059             }
3060             set
3061             {
3062                 SetValue(HeightResizePolicyProperty, value);
3063                 // Match ResizePolicy to new Layouting.
3064                 // Parent relative policies can not be mapped at this point as parent size unknown.
3065                 switch (value)
3066                 {
3067                     case ResizePolicyType.UseNaturalSize:
3068                     {
3069                         HeightSpecification = LayoutParamPolicies.WrapContent;
3070                         break;
3071                     }
3072                     case ResizePolicyType.FillToParent:
3073                     {
3074                         HeightSpecification = LayoutParamPolicies.MatchParent;
3075                         break;
3076                     }
3077                     case ResizePolicyType.FitToChildren:
3078                     {
3079                         HeightSpecification = LayoutParamPolicies.WrapContent;
3080                         break;
3081                     }
3082                     default:
3083                         break;
3084                 }
3085                 NotifyPropertyChanged();
3086             }
3087         }
3088
3089         /// <summary>
3090         /// Gets or sets the policy to use when setting size with size negotiation.<br />
3091         /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3092         /// </summary>
3093         /// <since_tizen> 3 </since_tizen>
3094         public SizeScalePolicyType SizeScalePolicy
3095         {
3096             get
3097             {
3098                 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3099             }
3100             set
3101             {
3102                 SetValue(SizeScalePolicyProperty, value);
3103                 NotifyPropertyChanged();
3104             }
3105         }
3106
3107         /// <summary>
3108         ///  Gets or sets the status of whether the width size is dependent on the height size.
3109         /// </summary>
3110         /// <since_tizen> 3 </since_tizen>
3111         public bool WidthForHeight
3112         {
3113             get
3114             {
3115                 return (bool)GetValue(WidthForHeightProperty);
3116             }
3117             set
3118             {
3119                 SetValue(WidthForHeightProperty, value);
3120                 NotifyPropertyChanged();
3121             }
3122         }
3123
3124         /// <summary>
3125         /// Gets or sets the status of whether the height size is dependent on the width size.
3126         /// </summary>
3127         /// <since_tizen> 3 </since_tizen>
3128         public bool HeightForWidth
3129         {
3130             get
3131             {
3132                 return (bool)GetValue(HeightForWidthProperty);
3133             }
3134             set
3135             {
3136                 SetValue(HeightForWidthProperty, value);
3137                 NotifyPropertyChanged();
3138             }
3139         }
3140
3141         /// <summary>
3142         /// Gets or sets the padding for use in layout.
3143         /// </summary>
3144         /// <since_tizen> 5 </since_tizen>
3145         public Extents Padding
3146         {
3147             get
3148             {
3149                 // If View has a Layout then padding in stored in the base Layout class
3150                 if (Layout !=null)
3151                 {
3152                     return Layout.Padding;
3153                 }
3154                 else
3155                 {
3156                     return (Extents)GetValue(PaddingProperty);
3157                 }
3158                 // Two return points to prevent creating a zeroed Extent native object before assignment
3159             }
3160             set
3161             {
3162                 Extents padding = value;
3163                 if (Layout !=null)
3164                 {
3165                     // Layout set so store Padding in LayoutItem instead of in View.
3166                     // If View stores the Padding value then Legacy Size Negotiation will overwrite
3167                     // the position and sizes measure in the Layouting.
3168                     Layout.Padding = value;
3169                     // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3170                     // Let the View keeps it's padding.  Still store Padding in Layout to reduce code paths.
3171                     if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3172                     {
3173                         padding =  new Extents(0,0,0,0); // Reset value stored in View.
3174                     }
3175                     _layout?.RequestLayout();
3176                 }
3177                 SetValue(PaddingProperty, padding);
3178                 NotifyPropertyChanged();
3179                 _layout?.RequestLayout();
3180             }
3181         }
3182
3183         /// <summary>
3184         /// Gets or sets the minimum size the view can be assigned in size negotiation.
3185         /// </summary>
3186         /// <since_tizen> 3 </since_tizen>
3187         public Size2D MinimumSize
3188         {
3189             get
3190             {
3191                 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
3192                 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
3193             }
3194             set
3195             {
3196                 if (_layout != null)
3197                 {
3198                     // Note: it only works if minimum size is >= than natural size.
3199                     // To force the size it should be done through the width&height spec or Size2D.
3200                     _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3201                     _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3202                     _layout.RequestLayout();
3203                 }
3204                 SetValue(MinimumSizeProperty, value);
3205                 NotifyPropertyChanged();
3206             }
3207         }
3208
3209         /// <summary>
3210         /// Gets or sets the maximum size the view can be assigned in size negotiation.
3211         /// </summary>
3212         /// <since_tizen> 3 </since_tizen>
3213         public Size2D MaximumSize
3214         {
3215             get
3216             {
3217                 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
3218                 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
3219             }
3220             set
3221             {
3222                 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3223                 // MATCH_PARENT spec + parent container size can be used to limit
3224                 if (_layout != null)
3225                 {
3226                     // Note: it only works if minimum size is >= than natural size.
3227                     // To force the size it should be done through the width&height spec or Size2D.
3228                     _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3229                     _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3230                     _layout.RequestLayout();
3231                 }
3232                 SetValue(MaximumSizeProperty, value);
3233                 NotifyPropertyChanged();
3234             }
3235         }
3236
3237         /// <summary>
3238         /// Gets or sets whether a child view inherits it's parent's position.<br />
3239         /// Default is to inherit.<br />
3240         /// 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 />
3241         /// </summary>
3242         /// <since_tizen> 3 </since_tizen>
3243         public bool InheritPosition
3244         {
3245             get
3246             {
3247                 return (bool)GetValue(InheritPositionProperty);
3248             }
3249             set
3250             {
3251                 SetValue(InheritPositionProperty, value);
3252                 NotifyPropertyChanged();
3253             }
3254         }
3255
3256         /// <summary>
3257         /// Gets or sets the clipping behavior (mode) of it's children.
3258         /// </summary>
3259         /// <since_tizen> 3 </since_tizen>
3260         public ClippingModeType ClippingMode
3261         {
3262             get
3263             {
3264                 return (ClippingModeType)GetValue(ClippingModeProperty);
3265             }
3266             set
3267             {
3268                 SetValue(ClippingModeProperty, value);
3269                 NotifyPropertyChanged();
3270             }
3271         }
3272
3273         /// <summary>
3274         /// Gets the number of renderers held by the view.
3275         /// </summary>
3276         /// <since_tizen> 3 </since_tizen>
3277         public uint RendererCount
3278         {
3279             get
3280             {
3281                 return GetRendererCount();
3282             }
3283         }
3284
3285         /// <summary>
3286         /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
3287         /// </summary>
3288         /// <since_tizen> 3 </since_tizen>
3289         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
3290             "Like: " +
3291             "View view = new View(); " +
3292             "view.PivotPoint = PivotPoint.Center; " +
3293             "view.PositionUsesPivotPoint = true;")]
3294         [EditorBrowsable(EditorBrowsableState.Never)]
3295         public Position AnchorPoint
3296         {
3297             get
3298             {
3299                 Position temp = new Position(0.0f, 0.0f, 0.0f);
3300                 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3301                 return temp;
3302             }
3303             set
3304             {
3305                 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3306                 NotifyPropertyChanged();
3307             }
3308         }
3309
3310         /// <summary>
3311         /// Sets the size of a view for the width, the height and the depth.<br />
3312         /// Geometry can be scaled to fit within this area.<br />
3313         /// This does not interfere with the view's scale factor.<br />
3314         /// The views default depth is the minimum of width and height.<br />
3315         /// </summary>
3316         /// <remarks>
3317         /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3318         /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3319         /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3320         /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3321         /// It may not match the current value in some cases, i.e. when the animation is progressing or the maximum or minimu size is set. <br />
3322         /// </remarks>
3323         /// <since_tizen> 5 </since_tizen>
3324         public Size Size
3325         {
3326             get
3327             {
3328                 Size tmp = (Size)GetValue(SizeProperty);
3329                 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
3330             }
3331             set
3332             {
3333                 SetValue(SizeProperty, value);
3334                 // Set Specification so when layouts measure this View it matches the value set here.
3335                 // All Views are currently Layouts.
3336                 WidthSpecification = (int)Math.Ceiling(value.Width);
3337                 HeightSpecification = (int)Math.Ceiling(value.Height);
3338                 NotifyPropertyChanged();
3339             }
3340         }
3341
3342         /// <summary>
3343         /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
3344         /// </summary>
3345         /// <since_tizen> 3 </since_tizen>
3346         [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
3347             "Like: " +
3348             "Container parent =  view.GetParent(); " +
3349             "View view = parent as View;")]
3350         [EditorBrowsable(EditorBrowsableState.Never)]
3351         public new View Parent
3352         {
3353             get
3354             {
3355                 View ret;
3356                 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3357                 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3358                 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3359
3360                 if (basehandle is Layer layer)
3361                 {
3362                     ret = new View(Layer.getCPtr(layer).Handle, false);
3363                     NUILog.Error("This Parent property is deprecated, shoud do not be used");
3364                 }
3365                 else
3366                 {
3367                     ret = basehandle as View;
3368                 }
3369
3370                 Interop.BaseHandle.delete_BaseHandle(CPtr);
3371                 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3372
3373                 if (NDalicPINVOKE.SWIGPendingException.Pending)
3374                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3375                 return ret;
3376             }
3377         }
3378
3379         /// <summary>
3380         /// Gets/Sets whether inherit parent's the layout Direction.
3381         /// </summary>
3382         /// <since_tizen> 4 </since_tizen>
3383         public bool InheritLayoutDirection
3384         {
3385             get
3386             {
3387                 return (bool)GetValue(InheritLayoutDirectionProperty);
3388             }
3389             set
3390             {
3391                 SetValue(InheritLayoutDirectionProperty, value);
3392                 NotifyPropertyChanged();
3393             }
3394         }
3395
3396         /// <summary>
3397         /// Gets/Sets the layout Direction.
3398         /// </summary>
3399         /// <since_tizen> 4 </since_tizen>
3400         public ViewLayoutDirectionType LayoutDirection
3401         {
3402             get
3403             {
3404                 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3405             }
3406             set
3407             {
3408                 SetValue(LayoutDirectionProperty, value);
3409                 NotifyPropertyChanged();
3410                 _layout?.RequestLayout();
3411             }
3412         }
3413
3414         /// <summary>
3415         /// Gets or sets the Margin for use in layout.
3416         /// </summary>
3417         /// <remarks>
3418         /// Margin property is supported by Layout algorithms and containers.
3419         /// Please Set Layout if you want to use Margin property.
3420         /// </remarks>
3421         /// <since_tizen> 4 </since_tizen>
3422         public Extents Margin
3423         {
3424             get
3425             {
3426                 // If View has a Layout then margin is stored in Layout.
3427                 if (Layout != null)
3428                 {
3429                     return Layout.Margin;
3430                 }
3431                 else
3432                 {
3433                     // If Layout not set then return margin stored in View.
3434                     return (Extents)GetValue(MarginProperty);
3435                 }
3436                 // Two return points to prevent creating a zeroed Extent native object before assignment
3437             }
3438             set
3439             {
3440                 if (Layout != null)
3441                 {
3442                     // Layout set so store Margin in LayoutItem instead of View.
3443                     // If View stores the Margin too then the Legacy Size Negotiation will
3444                     // overwrite the position and size values measured in the Layouting.
3445                     Layout.Margin = value;
3446                     SetValue(MarginProperty, new Extents(0,0,0,0));
3447                     _layout?.RequestLayout();
3448                 }
3449                 else
3450                 {
3451                     SetValue(MarginProperty, value);
3452                 }
3453                 NotifyPropertyChanged();
3454                 _layout?.RequestLayout();
3455             }
3456         }
3457
3458         ///<summary>
3459         /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3460         ///</summary>
3461         /// <since_tizen> 6 </since_tizen>
3462         public int WidthSpecification
3463         {
3464             get
3465             {
3466                 return _widthPolicy;
3467             }
3468             set
3469             {
3470                 _widthPolicy = value;
3471                 if (_widthPolicy >= 0)
3472                 {
3473                     _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3474                     //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3475                     Size2D.Width = _widthPolicy;
3476                 }
3477                 _layout?.RequestLayout();
3478             }
3479         }
3480
3481         ///<summary>
3482         /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3483         ///</summary>
3484         /// <since_tizen> 6 </since_tizen>
3485         [EditorBrowsable(EditorBrowsableState.Never)]
3486         public int HeightSpecification
3487         {
3488             get
3489             {
3490                 return _heightPolicy;
3491             }
3492             set
3493             {
3494                 _heightPolicy = value;
3495                 if (_heightPolicy >= 0)
3496                 {
3497                     _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3498                     //Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3499                     Size2D.Height = _heightPolicy;
3500                 }
3501                _layout?.RequestLayout();
3502             }
3503         }
3504
3505         ///<summary>
3506         /// Gets the List of transitions for this View.
3507         ///</summary>
3508         /// <since_tizen> 6 </since_tizen>
3509         public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3510         {
3511             get
3512             {
3513                 if (_layoutTransitions == null)
3514                 {
3515                     _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3516                 }
3517                 return _layoutTransitions;
3518             }
3519         }
3520
3521         ///<summary>
3522         /// Set a layout transitions for this View.
3523         ///</summary>
3524         /// <remarks>
3525         /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
3526         /// </remarks>
3527         /// <since_tizen> 6 </since_tizen>
3528         public LayoutTransition LayoutTransition
3529         {
3530             set
3531             {
3532                 if (_layoutTransitions == null)
3533                 {
3534                     _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3535                 }
3536                 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
3537
3538                 AttachTransitionsToChildren(value);
3539             }
3540         }
3541
3542         /// <summary>
3543         /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
3544         /// </summary>
3545         /// <since_tizen> 4 </since_tizen>
3546         [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
3547         [EditorBrowsable(EditorBrowsableState.Never)]
3548         public Extents PaddingEX
3549         {
3550             get
3551             {
3552                 Extents temp = new Extents(0, 0, 0, 0);
3553                 GetProperty(View.Property.PADDING).Get(temp);
3554                 return temp;
3555             }
3556             set
3557             {
3558                 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3559                 NotifyPropertyChanged();
3560                 _layout?.RequestLayout();
3561             }
3562         }
3563
3564         /// <since_tizen> 6 </since_tizen>
3565         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3566         [EditorBrowsable(EditorBrowsableState.Never)]
3567         public Style XamlStyle
3568         {
3569             get
3570             {
3571                 return (Style)GetValue(XamlStyleProperty);
3572             }
3573             set
3574             {
3575                 SetValue(XamlStyleProperty, value);
3576             }
3577         }
3578
3579         /// <summary>
3580         /// The Color of View. This is an RGBA value.
3581         /// </summary>
3582         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3583         [EditorBrowsable(EditorBrowsableState.Never)]
3584         public Color Color
3585         {
3586             set
3587             {
3588                 SetColor(value);
3589             }
3590             get
3591             {
3592                 return GetCurrentColor();
3593             }
3594         }
3595
3596
3597         /// <summary>
3598         /// Set the layout on this View. Replaces any existing Layout.
3599         /// </summary>
3600         /// <since_tizen> 6 </since_tizen>
3601         public LayoutItem Layout
3602         {
3603             get
3604             {
3605                 return _layout;
3606             }
3607             set
3608             {
3609                 // Do nothing if layout provided is already set on this View.
3610                 if (value == _layout)
3611                 {
3612                     return;
3613                 }
3614
3615                 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3616                 layoutingDisabled = false;
3617                 layoutSet = true;
3618
3619                 // If new layout being set already has a owner then that owner receives a replacement default layout.
3620                 // First check if the layout to be set already has a owner.
3621                 if (value?.Owner != null)
3622                 {
3623                     // Previous owner of the layout gets a default layout as a replacement.
3624                     value.Owner.Layout = new LayoutGroup();
3625
3626                     // Copy Margin and Padding to replacement LayoutGroup.
3627                     value.Owner.Layout.Margin = value.Margin;
3628                     value.Owner.Layout.Padding = value.Padding;
3629                 }
3630
3631                 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3632                 // View if no replacement. Previously margin and padding values would have been moved from
3633                 // the View to the layout.
3634                 if (_layout != null ) // Existing layout
3635                 {
3636                     if (value != null)
3637                     {
3638                         // Existing layout being replaced so copy over margin and padding values.
3639                         value.Margin = _layout.Margin;
3640                         value.Padding = _layout.Padding;
3641                     }
3642                     else
3643                     {
3644                       // Layout not being replaced so restore margin and padding to View.
3645                       SetValue(MarginProperty, _layout.Margin);
3646                       SetValue(PaddingProperty, _layout.Padding);
3647                       NotifyPropertyChanged();
3648                     }
3649                 }
3650                 else
3651                 {
3652                     // First Layout to be added to the View hence copy
3653
3654                     // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3655                     if (value !=null)
3656                     {
3657                         if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3658                         {
3659                             // If View already has a margin set then store it in Layout instead.
3660                             value.Margin = Margin;
3661                             SetValue(MarginProperty, new Extents(0,0,0,0));
3662                             NotifyPropertyChanged();
3663                         }
3664
3665                         if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3666                         {
3667                             // If View already has a padding set then store it in Layout instead.
3668                             value.Padding = Padding;
3669                             SetValue(PaddingProperty, new Extents(0,0,0,0));
3670                             NotifyPropertyChanged();
3671                         }
3672                     }
3673                 }
3674
3675                 // Remove existing layout from it's parent layout group.
3676                 _layout?.Unparent();
3677
3678                 // Set layout to this view
3679                 SetLayout(value);
3680             }
3681         }
3682
3683         /// <summary>
3684         /// The weight of the View, used to share available space in a layout with siblings.
3685         /// </summary>
3686         /// <since_tizen> 6 </since_tizen>
3687         public float Weight
3688         {
3689             get
3690             {
3691                 return _weight;
3692             }
3693             set
3694             {
3695                 _weight = value;
3696                 _layout?.RequestLayout();
3697             }
3698         }
3699
3700
3701         /// <summary>
3702         /// The color mode of View.
3703         /// This specifies whether the View uses its own color, or inherits its parent color.
3704         /// The default is ColorMode.UseOwnMultiplyParentColor.
3705         /// </summary>
3706         internal ColorMode ColorMode
3707         {
3708             set
3709             {
3710                 SetColorMode(value);
3711             }
3712             get
3713             {
3714                 return GetColorMode();
3715             }
3716         }
3717
3718         /// <summary>
3719         ///  Whether to load the BackgroundImage synchronously.
3720         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3721         ///  Note: For Normal Quad images only.
3722         /// </summary>
3723         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3724         [EditorBrowsable(EditorBrowsableState.Never)]
3725         public bool BackgroundImageSynchronosLoading
3726         {
3727             get
3728             {
3729                 return _backgroundImageSynchronosLoading;
3730             }
3731             set
3732             {
3733                 _backgroundImageSynchronosLoading = value;
3734                 string bgUrl = "";
3735                 int visualType = 0;
3736                 Background.Find(Visual.Property.Type)?.Get(out visualType);
3737                 if (visualType == (int)Visual.Type.Image)
3738                 {
3739                     Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3740                 }
3741
3742                 if (bgUrl.Length != 0)
3743                 {
3744                     PropertyMap bgMap = this.Background;
3745                     bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3746                     Background = bgMap;
3747                 }
3748
3749             }
3750         }
3751
3752         internal float WorldPositionX
3753         {
3754             get
3755             {
3756                 float temp = 0.0f;
3757                 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3758                 return temp;
3759             }
3760         }
3761
3762         internal float WorldPositionY
3763         {
3764             get
3765             {
3766                 float temp = 0.0f;
3767                 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3768                 return temp;
3769             }
3770         }
3771
3772         internal float WorldPositionZ
3773         {
3774             get
3775             {
3776                 float temp = 0.0f;
3777                 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3778                 return temp;
3779             }
3780         }
3781
3782         internal bool FocusState
3783         {
3784             get
3785             {
3786                 return IsKeyboardFocusable();
3787             }
3788             set
3789             {
3790                 SetKeyboardFocusable(value);
3791             }
3792         }
3793
3794         internal void SetLayout(LayoutItem layout)
3795         {
3796             _layout = layout;
3797             _layout?.AttachToOwner(this);
3798             _layout?.RequestLayout();
3799         }
3800
3801         /// <summary>
3802         /// Stores the calculated width value and its ModeType. Width component.
3803         /// </summary>
3804         internal MeasureSpecification MeasureSpecificationWidth
3805         {
3806             set
3807             {
3808                 _measureSpecificationWidth = value;
3809                 _layout?.RequestLayout();
3810             }
3811             get
3812             {
3813                 return _measureSpecificationWidth;
3814             }
3815         }
3816
3817         /// <summary>
3818         /// Stores the calculated width value and its ModeType. Height component.
3819         /// </summary>
3820         internal MeasureSpecification MeasureSpecificationHeight
3821         {
3822             set
3823             {
3824                 _measureSpecificationHeight = value;
3825                 _layout?.RequestLayout();
3826             }
3827             get
3828             {
3829                 return _measureSpecificationHeight;
3830             }
3831         }
3832
3833         internal void AttachTransitionsToChildren(LayoutTransition transition)
3834         {
3835             // Iterate children, adding the transition unless a transition
3836             // for the same condition and property has already been
3837             // explicitly added.
3838             foreach (View view in Children)
3839             {
3840                 LayoutTransitionsHelper.AddTransitionForCondition(view.LayoutTransitions,transition.Condition, transition, false);
3841             }
3842         }
3843
3844         internal float ParentOriginX
3845         {
3846             get
3847             {
3848                 float temp = 0.0f;
3849                 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3850                 return temp;
3851             }
3852             set
3853             {
3854                 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3855                 NotifyPropertyChanged();
3856             }
3857         }
3858
3859         internal float ParentOriginY
3860         {
3861             get
3862             {
3863                 float temp = 0.0f;
3864                 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3865                 return temp;
3866             }
3867             set
3868             {
3869                 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3870                 NotifyPropertyChanged();
3871             }
3872         }
3873
3874         internal float ParentOriginZ
3875         {
3876             get
3877             {
3878                 float temp = 0.0f;
3879                 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3880                 return temp;
3881             }
3882             set
3883             {
3884                 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3885                 NotifyPropertyChanged();
3886             }
3887         }
3888
3889         internal float PivotPointX
3890         {
3891             get
3892             {
3893                 float temp = 0.0f;
3894                 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3895                 return temp;
3896             }
3897             set
3898             {
3899                 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3900             }
3901         }
3902
3903         internal float PivotPointY
3904         {
3905             get
3906             {
3907                 float temp = 0.0f;
3908                 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3909                 return temp;
3910             }
3911             set
3912             {
3913                 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3914             }
3915         }
3916
3917         internal float PivotPointZ
3918         {
3919             get
3920             {
3921                 float temp = 0.0f;
3922                 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3923                 return temp;
3924             }
3925             set
3926             {
3927                 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3928             }
3929         }
3930
3931         internal Matrix WorldMatrix
3932         {
3933             get
3934             {
3935                 Matrix temp = new Matrix();
3936                 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
3937                 return temp;
3938             }
3939         }
3940
3941         private int LeftFocusableViewId
3942         {
3943             get
3944             {
3945                 int temp = 0;
3946                 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
3947                 return temp;
3948             }
3949             set
3950             {
3951                 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3952             }
3953         }
3954
3955         private int RightFocusableViewId
3956         {
3957             get
3958             {
3959                 int temp = 0;
3960                 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
3961                 return temp;
3962             }
3963             set
3964             {
3965                 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3966             }
3967         }
3968
3969         private int UpFocusableViewId
3970         {
3971             get
3972             {
3973                 int temp = 0;
3974                 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
3975                 return temp;
3976             }
3977             set
3978             {
3979                 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3980             }
3981         }
3982
3983         private int DownFocusableViewId
3984         {
3985             get
3986             {
3987                 int temp = 0;
3988                 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
3989                 return temp;
3990             }
3991             set
3992             {
3993                 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
3994             }
3995         }
3996
3997         /// <summary>
3998         /// Perform an action on a visual registered to this view. <br />
3999         /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
4000         /// </summary>
4001         /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
4002         /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
4003         /// <param name="attributes">Optional attributes for the action.</param>
4004         /// <since_tizen> 5 </since_tizen>
4005         public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
4006         {
4007             Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
4008             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4009         }
4010
4011         /// <summary>
4012         /// Creates an animation to animate the background color visual. If there is no
4013         /// background visual, creates one with transparent black as it's mixColor.
4014         /// </summary>
4015         /// <since_tizen> 3 </since_tizen>
4016         public Animation AnimateBackgroundColor(object destinationValue,
4017                                                  int startTime,
4018                                                  int endTime,
4019                                                  AlphaFunction.BuiltinFunctions? alphaFunction = null,
4020                                                  object initialValue = null)
4021         {
4022             Tizen.NUI.PropertyMap background = Background;
4023
4024             if (background.Empty())
4025             {
4026                 // If there is no background yet, ensure there is a transparent
4027                 // color visual
4028                 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
4029                 background = Background;
4030             }
4031             return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
4032         }
4033
4034         /// <summary>
4035         /// Creates an animation to animate the mixColor of the named visual.
4036         /// </summary>
4037         /// <since_tizen> 3 </since_tizen>
4038         public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
4039         {
4040             Animation animation = null;
4041             {
4042                 PropertyMap _animator = new PropertyMap();
4043                 if (alphaFunction != null)
4044                 {
4045                     _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
4046                 }
4047
4048                 PropertyMap _timePeriod = new PropertyMap();
4049                 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
4050                 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
4051                 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
4052
4053                 PropertyMap _transition = new PropertyMap();
4054                 _transition.Add("animator", new PropertyValue(_animator));
4055                 _transition.Add("target", new PropertyValue(targetVisual));
4056                 _transition.Add("property", new PropertyValue("mixColor"));
4057
4058                 if (initialColor != null)
4059                 {
4060                     PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4061                     _transition.Add("initialValue", initValue);
4062                 }
4063
4064                 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4065                 _transition.Add("targetValue", destValue);
4066                 TransitionData _transitionData = new TransitionData(_transition);
4067
4068                 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4069                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4070                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4071             }
4072             return animation;
4073         }
4074
4075         // From Container Base class
4076         /// <summary>
4077         /// Adds a child view to this view.
4078         /// </summary>
4079         /// <seealso cref="Container.Add" />
4080         /// <since_tizen> 4 </since_tizen>
4081         public override void Add(View child)
4082         {
4083             bool hasLayout = (_layout != null);
4084
4085             if (null == child)
4086             {
4087                 Tizen.Log.Fatal("NUI", "Child is null");
4088                 return;
4089             }
4090
4091             Container oldParent = child.GetParent();
4092             if (oldParent != this)
4093             {
4094                 // If child already has a parent then re-parent child
4095                 if (oldParent != null)
4096                 {
4097                     oldParent.Remove(child);
4098                 }
4099                 child.InternalParent = this;
4100
4101                 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4102
4103                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4104                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4105                 Children.Add(child);
4106
4107                 if (ChildAdded != null)
4108                 {
4109                     ChildAddedEventArgs e = new ChildAddedEventArgs
4110                     {
4111                         Added = child
4112                     };
4113                     ChildAdded(this, e);
4114                 }
4115                 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4116             }
4117         }
4118
4119         /// <summary>
4120         /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4121         /// </summary>
4122         /// <seealso cref="Container.Remove" />
4123         /// <since_tizen> 4 </since_tizen>
4124         public override void Remove(View child)
4125         {
4126             if (!child || child.GetParent()==null) // Early out if child null.
4127                 return;
4128
4129             bool hasLayout = (_layout != null);
4130
4131             // If View has a layout then do a deferred child removal
4132             // Actual child removal is performed by the layouting system so
4133             // transitions can be completed.
4134             if (hasLayout)
4135             {
4136                 (_layout as LayoutGroup)?.RemoveChildFromLayoutGroup( child );
4137             }
4138             else
4139             {
4140                 RemoveChild(child);
4141             }
4142         }
4143
4144         /// <summary>
4145         /// Retrieves a child view by index.
4146         /// </summary>
4147         /// <seealso cref="Container.GetChildAt" />
4148         /// <since_tizen> 4 </since_tizen>
4149         public override View GetChildAt(uint index)
4150         {
4151             if (index < Children.Count)
4152             {
4153                 return Children[Convert.ToInt32(index)];
4154             }
4155             else
4156             {
4157                 return null;
4158             }
4159         }
4160
4161         /// <summary>
4162         /// Retrieves the number of children held by the view.
4163         /// </summary>
4164         /// <seealso cref="Container.GetChildCount" />
4165         /// <since_tizen> 4 </since_tizen>
4166         public override uint GetChildCount()
4167         {
4168             return Convert.ToUInt32(Children.Count);
4169         }
4170
4171         /// <summary>
4172         /// Gets the views parent.
4173         /// </summary>
4174         /// <seealso cref="Container.GetParent()" />
4175         /// <since_tizen> 4 </since_tizen>
4176         public override Container GetParent()
4177         {
4178             return this.InternalParent as Container;
4179         }
4180
4181         /// <summary>
4182         /// Queries whether the view has a focus.
4183         /// </summary>
4184         /// <returns>True if this view has a focus.</returns>
4185         /// <since_tizen> 3 </since_tizen>
4186         public bool HasFocus()
4187         {
4188             bool ret = false;
4189             if (swigCPtr.Handle != global::System.IntPtr.Zero)
4190             {
4191                 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4192                                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4193             }
4194             else
4195             {
4196                 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4197             }
4198             return ret;
4199         }
4200
4201         /// <summary>
4202         /// Sets the name of the style to be applied to the view.
4203         /// </summary>
4204         /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4205         /// <since_tizen> 3 </since_tizen>
4206         public void SetStyleName(string styleName)
4207         {
4208             Interop.View.View_SetStyleName(swigCPtr, styleName);
4209             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4210         }
4211
4212         /// <summary>
4213         /// Retrieves the name of the style to be applied to the view (if any).
4214         /// </summary>
4215         /// <returns>A string matching a style, or an empty string.</returns>
4216         /// <since_tizen> 3 </since_tizen>
4217         public string GetStyleName()
4218         {
4219             string ret = Interop.View.View_GetStyleName(swigCPtr);
4220             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4221             return ret;
4222         }
4223
4224         /// <summary>
4225         /// Clears the background.
4226         /// </summary>
4227         /// <since_tizen> 3 </since_tizen>
4228         public void ClearBackground()
4229         {
4230             Interop.View.View_ClearBackground(swigCPtr);
4231             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4232         }
4233
4234         /// <summary>
4235         /// Shows the view.
4236         /// </summary>
4237         /// <remarks>
4238         /// This is an asynchronous method.
4239         /// </remarks>
4240         /// <since_tizen> 3 </since_tizen>
4241         public void Show()
4242         {
4243             SetVisible(true);
4244         }
4245
4246         /// <summary>
4247         /// Hides the view.
4248         /// </summary>
4249         /// <remarks>
4250         /// This is an asynchronous method.
4251         /// If the view is hidden, then the view and its children will not be rendered.
4252         /// This is regardless of the individual visibility of the children, i.e., the view will only be rendered if all of its parents are shown.
4253         /// </remarks>
4254         /// <since_tizen> 3 </since_tizen>
4255         public void Hide()
4256         {
4257             SetVisible(false);
4258         }
4259
4260         /// <summary>
4261         /// Raises the view above all other views.
4262         /// </summary>
4263         /// <remarks>
4264         /// Sibling order of views within the parent will be updated automatically.
4265         /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4266         /// </remarks>
4267         /// <since_tizen> 3 </since_tizen>
4268         public void RaiseToTop()
4269         {
4270             var parentChildren = GetParent()?.Children;
4271
4272             if (parentChildren != null)
4273             {
4274                 parentChildren.Remove(this);
4275                 parentChildren.Add(this);
4276
4277                 Interop.NDalic.RaiseToTop(swigCPtr);
4278                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4279                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4280             }
4281
4282         }
4283
4284         /// <summary>
4285         /// Lowers the view to the bottom of all views.
4286         /// </summary>
4287         /// <remarks>
4288         /// The sibling order of views within the parent will be updated automatically.
4289         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4290         /// </remarks>
4291         /// <since_tizen> 3 </since_tizen>
4292         public void LowerToBottom()
4293         {
4294             var parentChildren = GetParent()?.Children;
4295
4296             if (parentChildren != null)
4297             {
4298                 parentChildren.Remove(this);
4299                 parentChildren.Insert(0, this);
4300
4301                 Interop.NDalic.LowerToBottom(swigCPtr);
4302                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4303                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4304             }
4305         }
4306
4307         /// <summary>
4308         /// Queries if all resources required by a view are loaded and ready.
4309         /// </summary>
4310         /// <remarks>Most resources are only loaded when the control is placed on the stage.
4311         /// </remarks>
4312         /// <since_tizen> 3 </since_tizen>
4313         public bool IsResourceReady()
4314         {
4315             bool ret = Interop.View.IsResourceReady(swigCPtr);
4316             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4317             return ret;
4318         }
4319
4320         /// <summary>
4321         /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4322         /// </summary>
4323         /// <pre>The view has been initialized. </pre>
4324         /// <returns>The parent layer of view </returns>
4325         /// <since_tizen> 5 </since_tizen>
4326         public Layer GetLayer()
4327         {
4328             //to fix memory leak issue, match the handle count with native side.
4329             IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4330             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4331             Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4332             Interop.BaseHandle.delete_BaseHandle(CPtr);
4333             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4334
4335             if (NDalicPINVOKE.SWIGPendingException.Pending)
4336                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4337             return ret;
4338         }
4339
4340         /// <summary>
4341         /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4342         /// </summary>
4343         /// <pre>The (child) view has been initialized. </pre>
4344         /// <since_tizen> 4 </since_tizen>
4345         public void Unparent()
4346         {
4347             GetParent()?.Remove(this);
4348         }
4349
4350         /// <summary>
4351         /// Search through this view's hierarchy for a view with the given name.
4352         /// The view itself is also considered in the search.
4353         /// </summary>
4354         /// <pre>The view has been initialized.</pre>
4355         /// <param name="viewName">The name of the view to find.</param>
4356         /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4357         /// <since_tizen> 3 </since_tizen>
4358         public View FindChildByName(string viewName)
4359         {
4360             //to fix memory leak issue, match the handle count with native side.
4361             IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4362             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4363             View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4364             Interop.BaseHandle.delete_BaseHandle(CPtr);
4365             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4366
4367             if (NDalicPINVOKE.SWIGPendingException.Pending)
4368                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4369             return ret;
4370         }
4371
4372         /// <summary>
4373         /// Converts screen coordinates into the view's coordinate system using the default camera.
4374         /// </summary>
4375         /// <pre>The view has been initialized.</pre>
4376         /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4377         /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4378         /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4379         /// <param name="screenX">The screen X-coordinate.</param>
4380         /// <param name="screenY">The screen Y-coordinate.</param>
4381         /// <returns>True if the conversion succeeded.</returns>
4382         /// <since_tizen> 3 </since_tizen>
4383         public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4384         {
4385             bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4386             if (NDalicPINVOKE.SWIGPendingException.Pending)
4387                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4388             return ret;
4389         }
4390
4391         /// <summary>
4392         /// Sets the relative to parent size factor of the view.<br />
4393         /// This factor is only used when ResizePolicy is set to either:
4394         /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4395         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4396         /// </summary>
4397         /// <pre>The view has been initialized.</pre>
4398         /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4399         /// <since_tizen> 3 </since_tizen>
4400         public void SetSizeModeFactor(Vector3 factor)
4401         {
4402             Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4403             if (NDalicPINVOKE.SWIGPendingException.Pending)
4404                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4405         }
4406         /// <summary>
4407         /// Calculates the height of the view given a width.<br />
4408         /// The natural size is used for default calculation.<br />
4409         /// Size 0 is treated as aspect ratio 1:1.<br />
4410         /// </summary>
4411         /// <param name="width">The width to use.</param>
4412         /// <returns>The height based on the width.</returns>
4413         /// <since_tizen> 3 </since_tizen>
4414         public float GetHeightForWidth(float width)
4415         {
4416             float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4417             if (NDalicPINVOKE.SWIGPendingException.Pending)
4418                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4419             return ret;
4420         }
4421
4422         /// <summary>
4423         /// Calculates the width of the view given a height.<br />
4424         /// The natural size is used for default calculation.<br />
4425         /// Size 0 is treated as aspect ratio 1:1.<br />
4426         /// </summary>
4427         /// <param name="height">The height to use.</param>
4428         /// <returns>The width based on the height.</returns>
4429         /// <since_tizen> 3 </since_tizen>
4430         public float GetWidthForHeight(float height)
4431         {
4432             float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4433             if (NDalicPINVOKE.SWIGPendingException.Pending)
4434                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4435             return ret;
4436         }
4437
4438         /// <summary>
4439         /// Return the amount of size allocated for relayout.
4440         /// </summary>
4441         /// <param name="dimension">The dimension to retrieve.</param>
4442         /// <returns>Return the size.</returns>
4443         /// <since_tizen> 3 </since_tizen>
4444         public float GetRelayoutSize(DimensionType dimension)
4445         {
4446             float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4447             if (NDalicPINVOKE.SWIGPendingException.Pending)
4448                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4449             return ret;
4450         }
4451
4452         /// <summary>
4453         /// Set the padding for the view.
4454         /// </summary>
4455         /// <param name="padding">Padding for the view.</param>
4456         /// <since_tizen> 3 </since_tizen>
4457         public void SetPadding(PaddingType padding)
4458         {
4459             Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4460             if (NDalicPINVOKE.SWIGPendingException.Pending)
4461                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4462         }
4463
4464         /// <summary>
4465         /// Return the value of padding for the view.
4466         /// </summary>
4467         /// <param name="paddingOut">the value of padding for the view</param>
4468         /// <since_tizen> 3 </since_tizen>
4469         public void GetPadding(PaddingType paddingOut)
4470         {
4471             Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4472             if (NDalicPINVOKE.SWIGPendingException.Pending)
4473                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4474         }
4475
4476         /// <since_tizen> 3 </since_tizen>
4477         public uint AddRenderer(Renderer renderer)
4478         {
4479             uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4480             if (NDalicPINVOKE.SWIGPendingException.Pending)
4481                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4482             return ret;
4483         }
4484
4485         /// <since_tizen> 3 </since_tizen>
4486         public Renderer GetRendererAt(uint index)
4487         {
4488             //to fix memory leak issue, match the handle count with native side.
4489             IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4490             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4491             Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4492             if (cPtr != null && ret == null)
4493             {
4494                 ret = new Renderer(cPtr, false);
4495                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4496                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4497                 return ret;
4498             }
4499             Interop.BaseHandle.delete_BaseHandle(CPtr);
4500             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4501
4502             if (NDalicPINVOKE.SWIGPendingException.Pending)
4503                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4504             return ret;
4505         }
4506
4507         /// <since_tizen> 3 </since_tizen>
4508         public void RemoveRenderer(Renderer renderer)
4509         {
4510             Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4511             if (NDalicPINVOKE.SWIGPendingException.Pending)
4512                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4513         }
4514
4515         /// <since_tizen> 3 </since_tizen>
4516         public void RemoveRenderer(uint index)
4517         {
4518             Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4519             if (NDalicPINVOKE.SWIGPendingException.Pending)
4520                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4521         }
4522
4523         internal void Raise()
4524         {
4525             var parentChildren = GetParent()?.Children;
4526
4527             if (parentChildren != null)
4528             {
4529                 int currentIndex = parentChildren.IndexOf(this);
4530
4531                 // If the view is not already the last item in the list.
4532                 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4533                 {
4534                     View temp = parentChildren[currentIndex + 1];
4535                     parentChildren[currentIndex + 1] = this;
4536                     parentChildren[currentIndex] = temp;
4537
4538                     Interop.NDalic.Raise(swigCPtr);
4539                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4540                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4541                 }
4542             }
4543         }
4544
4545         internal void Lower()
4546         {
4547             var parentChildren = GetParent()?.Children;
4548
4549             if (parentChildren != null)
4550             {
4551                 int currentIndex = parentChildren.IndexOf(this);
4552
4553                 // If the view is not already the first item in the list.
4554                 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4555                 {
4556                     View temp = parentChildren[currentIndex - 1];
4557                     parentChildren[currentIndex - 1] = this;
4558                     parentChildren[currentIndex] = temp;
4559
4560                     Interop.NDalic.Lower(swigCPtr);
4561                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4562                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4563                 }
4564             }
4565         }
4566
4567         /// <summary>
4568         /// Raises the view to above the target view.
4569         /// </summary>
4570         /// <remarks>The sibling order of views within the parent will be updated automatically.
4571         /// Views on the level above the target view will still be shown above this view.
4572         /// Raising this view above views with the same sibling order as each other will raise this view above them.
4573         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4574         /// </remarks>
4575         /// <param name="target">Will be raised above this view.</param>
4576         internal void RaiseAbove(View target)
4577         {
4578             var parentChildren = GetParent()?.Children;
4579
4580             if (parentChildren != null)
4581             {
4582                 int currentIndex = parentChildren.IndexOf(this);
4583                 int targetIndex = parentChildren.IndexOf(target);
4584
4585                 if (currentIndex < 0 || targetIndex < 0 ||
4586                     currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4587                 {
4588                     NUILog.Error("index should be bigger than 0 and less than children of layer count");
4589                     return;
4590                 }
4591                 // If the currentIndex is less than the target index and the target has the same parent.
4592                 if (currentIndex < targetIndex)
4593                 {
4594                     parentChildren.Remove(this);
4595                     parentChildren.Insert(targetIndex, this);
4596
4597                     Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4598                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4599                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4600                 }
4601             }
4602
4603         }
4604
4605         /// <summary>
4606         /// Lowers the view to below the target view.
4607         /// </summary>
4608         /// <remarks>The sibling order of views within the parent will be updated automatically.
4609         /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4610         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4611         /// </remarks>
4612         /// <param name="target">Will be lowered below this view.</param>
4613         internal void LowerBelow(View target)
4614         {
4615             var parentChildren = GetParent()?.Children;
4616
4617             if (parentChildren != null)
4618             {
4619                 int currentIndex = parentChildren.IndexOf(this);
4620                 int targetIndex = parentChildren.IndexOf(target);
4621                 if (currentIndex < 0 || targetIndex < 0 ||
4622                    currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4623                 {
4624                     NUILog.Error("index should be bigger than 0 and less than children of layer count");
4625                     return;
4626                 }
4627
4628                 // If the currentIndex is not already the 0th index and the target has the same parent.
4629                 if ((currentIndex != 0) && (targetIndex != -1) &&
4630                     (currentIndex > targetIndex))
4631                 {
4632                     parentChildren.Remove(this);
4633                     parentChildren.Insert(targetIndex, this);
4634
4635                     Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4636                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4637                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4638                 }
4639             }
4640
4641         }
4642
4643         internal string GetName()
4644         {
4645             string ret = Interop.Actor.Actor_GetName(swigCPtr);
4646             if (NDalicPINVOKE.SWIGPendingException.Pending)
4647                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4648             return ret;
4649         }
4650
4651         internal void SetName(string name)
4652         {
4653             Interop.Actor.Actor_SetName(swigCPtr, name);
4654             if (NDalicPINVOKE.SWIGPendingException.Pending)
4655                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4656         }
4657
4658         internal uint GetId()
4659         {
4660             uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4661             if (NDalicPINVOKE.SWIGPendingException.Pending)
4662                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4663             return ret;
4664         }
4665
4666         internal bool IsRoot()
4667         {
4668             bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4669             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4670             return ret;
4671         }
4672
4673         internal bool OnWindow()
4674         {
4675             bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4676             if (NDalicPINVOKE.SWIGPendingException.Pending)
4677                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4678             return ret;
4679         }
4680
4681         internal View FindChildById(uint id)
4682         {
4683             //to fix memory leak issue, match the handle count with native side.
4684             IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4685             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4686             View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4687             Interop.BaseHandle.delete_BaseHandle(CPtr);
4688             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4689
4690             if (NDalicPINVOKE.SWIGPendingException.Pending)
4691                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4692             return ret;
4693         }
4694
4695         internal override View FindCurrentChildById(uint id)
4696         {
4697             return FindChildById(id);
4698         }
4699
4700         internal void SetParentOrigin(Vector3 origin)
4701         {
4702             Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4703             if (NDalicPINVOKE.SWIGPendingException.Pending)
4704                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4705         }
4706
4707         internal Vector3 GetCurrentParentOrigin()
4708         {
4709             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4710             if (NDalicPINVOKE.SWIGPendingException.Pending)
4711                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4712             return ret;
4713         }
4714
4715         internal void SetAnchorPoint(Vector3 anchorPoint)
4716         {
4717             Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4718             if (NDalicPINVOKE.SWIGPendingException.Pending)
4719                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4720         }
4721
4722         internal Vector3 GetCurrentAnchorPoint()
4723         {
4724             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4725             if (NDalicPINVOKE.SWIGPendingException.Pending)
4726                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4727             return ret;
4728         }
4729
4730         internal void SetSize(float width, float height)
4731         {
4732             Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4733             if (NDalicPINVOKE.SWIGPendingException.Pending)
4734                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4735         }
4736
4737         internal void SetSize(float width, float height, float depth)
4738         {
4739             Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4740             if (NDalicPINVOKE.SWIGPendingException.Pending)
4741                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4742         }
4743
4744         internal void SetSize(Vector2 size)
4745         {
4746             Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4747             if (NDalicPINVOKE.SWIGPendingException.Pending)
4748                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4749         }
4750
4751         internal void SetSize(Vector3 size)
4752         {
4753             Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4754             if (NDalicPINVOKE.SWIGPendingException.Pending)
4755                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4756         }
4757
4758         internal Vector3 GetTargetSize()
4759         {
4760             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4761             if (NDalicPINVOKE.SWIGPendingException.Pending)
4762                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4763             return ret;
4764         }
4765
4766         internal Size2D GetCurrentSize()
4767         {
4768             Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4769             if (NDalicPINVOKE.SWIGPendingException.Pending)
4770                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4771             Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4772             return size;
4773         }
4774
4775         internal Vector3 GetNaturalSize()
4776         {
4777             Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4778             if (NDalicPINVOKE.SWIGPendingException.Pending)
4779                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4780             return ret;
4781         }
4782
4783         internal void SetPosition(float x, float y)
4784         {
4785             Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4786             if (NDalicPINVOKE.SWIGPendingException.Pending)
4787                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4788         }
4789
4790         internal void SetPosition(float x, float y, float z)
4791         {
4792             Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4793             if (NDalicPINVOKE.SWIGPendingException.Pending)
4794                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4795         }
4796
4797         internal void SetPosition(Vector3 position)
4798         {
4799             Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4800             if (NDalicPINVOKE.SWIGPendingException.Pending)
4801                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4802         }
4803
4804         internal void SetX(float x)
4805         {
4806             Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4807             if (NDalicPINVOKE.SWIGPendingException.Pending)
4808                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4809         }
4810
4811         internal void SetY(float y)
4812         {
4813             Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4814             if (NDalicPINVOKE.SWIGPendingException.Pending)
4815                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4816         }
4817
4818         internal void SetZ(float z)
4819         {
4820             Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4821             if (NDalicPINVOKE.SWIGPendingException.Pending)
4822                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4823         }
4824
4825         internal void TranslateBy(Vector3 distance)
4826         {
4827             Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4828             if (NDalicPINVOKE.SWIGPendingException.Pending)
4829                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4830         }
4831
4832         internal Position GetCurrentPosition()
4833         {
4834             Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4835             if (NDalicPINVOKE.SWIGPendingException.Pending)
4836                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4837             return ret;
4838         }
4839
4840         internal Vector3 GetCurrentWorldPosition()
4841         {
4842             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4843             if (NDalicPINVOKE.SWIGPendingException.Pending)
4844                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4845             return ret;
4846         }
4847
4848         internal void SetInheritPosition(bool inherit)
4849         {
4850             Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4851             if (NDalicPINVOKE.SWIGPendingException.Pending)
4852                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4853         }
4854
4855         internal bool IsPositionInherited()
4856         {
4857             bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4858             if (NDalicPINVOKE.SWIGPendingException.Pending)
4859                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4860             return ret;
4861         }
4862
4863         internal void SetOrientation(Degree angle, Vector3 axis)
4864         {
4865             Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4866             if (NDalicPINVOKE.SWIGPendingException.Pending)
4867                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4868         }
4869
4870         internal void SetOrientation(Radian angle, Vector3 axis)
4871         {
4872             Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4873             if (NDalicPINVOKE.SWIGPendingException.Pending)
4874                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4875         }
4876
4877         internal void SetOrientation(Rotation orientation)
4878         {
4879             Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4880             if (NDalicPINVOKE.SWIGPendingException.Pending)
4881                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4882         }
4883
4884         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4885         [EditorBrowsable(EditorBrowsableState.Never)]
4886         public void RotateBy(Degree angle, Vector3 axis)
4887         {
4888             Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4889             if (NDalicPINVOKE.SWIGPendingException.Pending)
4890                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4891         }
4892
4893         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4894         [EditorBrowsable(EditorBrowsableState.Never)]
4895         public void RotateBy(Radian angle, Vector3 axis)
4896         {
4897             Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4898             if (NDalicPINVOKE.SWIGPendingException.Pending)
4899                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4900         }
4901
4902         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4903         [EditorBrowsable(EditorBrowsableState.Never)]
4904         public void RotateBy(Rotation relativeRotation)
4905         {
4906             Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4907             if (NDalicPINVOKE.SWIGPendingException.Pending)
4908                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4909         }
4910
4911         internal Rotation GetCurrentOrientation()
4912         {
4913             Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4914             if (NDalicPINVOKE.SWIGPendingException.Pending)
4915                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4916             return ret;
4917         }
4918
4919         internal void SetInheritOrientation(bool inherit)
4920         {
4921             Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4922             if (NDalicPINVOKE.SWIGPendingException.Pending)
4923                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4924         }
4925
4926         internal bool IsOrientationInherited()
4927         {
4928             bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4929             if (NDalicPINVOKE.SWIGPendingException.Pending)
4930                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4931             return ret;
4932         }
4933
4934         internal Rotation GetCurrentWorldOrientation()
4935         {
4936             Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
4937             if (NDalicPINVOKE.SWIGPendingException.Pending)
4938                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4939             return ret;
4940         }
4941
4942         internal void SetScale(float scale)
4943         {
4944             Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
4945             if (NDalicPINVOKE.SWIGPendingException.Pending)
4946                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4947         }
4948
4949         internal void SetScale(float scaleX, float scaleY, float scaleZ)
4950         {
4951             Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
4952             if (NDalicPINVOKE.SWIGPendingException.Pending)
4953                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4954         }
4955
4956         internal void SetScale(Vector3 scale)
4957         {
4958             Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
4959             if (NDalicPINVOKE.SWIGPendingException.Pending)
4960                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4961         }
4962
4963         internal void ScaleBy(Vector3 relativeScale)
4964         {
4965             Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
4966             if (NDalicPINVOKE.SWIGPendingException.Pending)
4967                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4968         }
4969
4970         internal Vector3 GetCurrentScale()
4971         {
4972             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
4973             if (NDalicPINVOKE.SWIGPendingException.Pending)
4974                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4975             return ret;
4976         }
4977
4978         internal Vector3 GetCurrentWorldScale()
4979         {
4980             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
4981             if (NDalicPINVOKE.SWIGPendingException.Pending)
4982                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4983             return ret;
4984         }
4985
4986         internal void SetInheritScale(bool inherit)
4987         {
4988             Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
4989             if (NDalicPINVOKE.SWIGPendingException.Pending)
4990                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4991         }
4992
4993         internal bool IsScaleInherited()
4994         {
4995             bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
4996             if (NDalicPINVOKE.SWIGPendingException.Pending)
4997                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4998             return ret;
4999         }
5000
5001         internal Matrix GetCurrentWorldMatrix()
5002         {
5003             Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
5004             if (NDalicPINVOKE.SWIGPendingException.Pending)
5005                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5006             return ret;
5007         }
5008
5009         internal void SetVisible(bool visible)
5010         {
5011             Interop.Actor.Actor_SetVisible(swigCPtr, visible);
5012             if (NDalicPINVOKE.SWIGPendingException.Pending)
5013                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5014         }
5015
5016         internal bool IsVisible()
5017         {
5018             bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
5019             if (NDalicPINVOKE.SWIGPendingException.Pending)
5020                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5021             return ret;
5022         }
5023
5024         internal void SetOpacity(float opacity)
5025         {
5026             Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
5027             if (NDalicPINVOKE.SWIGPendingException.Pending)
5028                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5029         }
5030
5031         internal float GetCurrentOpacity()
5032         {
5033             float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
5034             if (NDalicPINVOKE.SWIGPendingException.Pending)
5035                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5036             return ret;
5037         }
5038
5039         internal void SetColor(Vector4 color)
5040         {
5041             Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
5042             if (NDalicPINVOKE.SWIGPendingException.Pending)
5043                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5044         }
5045
5046         internal Vector4 GetCurrentColor()
5047         {
5048             Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
5049             if (NDalicPINVOKE.SWIGPendingException.Pending)
5050                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5051             return ret;
5052         }
5053
5054         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
5055         [EditorBrowsable(EditorBrowsableState.Never)]
5056         public void SetColorMode(ColorMode colorMode)
5057         {
5058             Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
5059             if (NDalicPINVOKE.SWIGPendingException.Pending)
5060                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5061         }
5062
5063         internal ColorMode GetColorMode()
5064         {
5065             ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5066             if (NDalicPINVOKE.SWIGPendingException.Pending)
5067                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5068             return ret;
5069         }
5070
5071         internal Vector4 GetCurrentWorldColor()
5072         {
5073             Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5074             if (NDalicPINVOKE.SWIGPendingException.Pending)
5075                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5076             return ret;
5077         }
5078
5079         internal void SetDrawMode(DrawModeType drawMode)
5080         {
5081             Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5082             if (NDalicPINVOKE.SWIGPendingException.Pending)
5083                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5084         }
5085
5086         internal DrawModeType GetDrawMode()
5087         {
5088             DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5089             if (NDalicPINVOKE.SWIGPendingException.Pending)
5090                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5091             return ret;
5092         }
5093
5094         internal void SetKeyboardFocusable(bool focusable)
5095         {
5096             Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5097             if (NDalicPINVOKE.SWIGPendingException.Pending)
5098                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5099         }
5100
5101         internal bool IsKeyboardFocusable()
5102         {
5103             bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5104             if (NDalicPINVOKE.SWIGPendingException.Pending)
5105                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5106             return ret;
5107         }
5108
5109         internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5110         {
5111             Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5112             if (NDalicPINVOKE.SWIGPendingException.Pending)
5113                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5114         }
5115
5116         internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5117         {
5118             ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5119             if (NDalicPINVOKE.SWIGPendingException.Pending)
5120                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5121             return ret;
5122         }
5123
5124         internal Vector3 GetSizeModeFactor()
5125         {
5126             Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5127             if (NDalicPINVOKE.SWIGPendingException.Pending)
5128                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5129             return ret;
5130         }
5131
5132         internal void SetMinimumSize(Vector2 size)
5133         {
5134             Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5135             if (NDalicPINVOKE.SWIGPendingException.Pending)
5136                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5137         }
5138
5139         internal Vector2 GetMinimumSize()
5140         {
5141             Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5142             if (NDalicPINVOKE.SWIGPendingException.Pending)
5143                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5144             return ret;
5145         }
5146
5147         internal void SetMaximumSize(Vector2 size)
5148         {
5149             Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5150             if (NDalicPINVOKE.SWIGPendingException.Pending)
5151                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5152         }
5153
5154         internal Vector2 GetMaximumSize()
5155         {
5156             Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5157             if (NDalicPINVOKE.SWIGPendingException.Pending)
5158                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5159             return ret;
5160         }
5161
5162         internal int GetHierarchyDepth()
5163         {
5164             int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5165             if (NDalicPINVOKE.SWIGPendingException.Pending)
5166                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5167             return ret;
5168         }
5169
5170         internal uint GetRendererCount()
5171         {
5172             uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5173             if (NDalicPINVOKE.SWIGPendingException.Pending)
5174                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5175             return ret;
5176         }
5177
5178         internal TouchDataSignal TouchSignal()
5179         {
5180             TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5181             if (NDalicPINVOKE.SWIGPendingException.Pending)
5182                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5183             return ret;
5184         }
5185
5186         internal HoverSignal HoveredSignal()
5187         {
5188             HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5189             if (NDalicPINVOKE.SWIGPendingException.Pending)
5190                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5191             return ret;
5192         }
5193
5194         internal WheelSignal WheelEventSignal()
5195         {
5196             WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5197             if (NDalicPINVOKE.SWIGPendingException.Pending)
5198                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5199             return ret;
5200         }
5201
5202         internal ViewSignal OnWindowSignal()
5203         {
5204             ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5205             if (NDalicPINVOKE.SWIGPendingException.Pending)
5206                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5207             return ret;
5208         }
5209
5210         internal ViewSignal OffWindowSignal()
5211         {
5212             ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5213             if (NDalicPINVOKE.SWIGPendingException.Pending)
5214                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5215             return ret;
5216         }
5217
5218         internal ViewSignal OnRelayoutSignal()
5219         {
5220             ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5221             if (NDalicPINVOKE.SWIGPendingException.Pending)
5222                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5223             return ret;
5224         }
5225
5226         internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5227         {
5228             ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5229             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5230             return ret;
5231         }
5232
5233         internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5234         {
5235             ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5236             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5237             return ret;
5238         }
5239
5240         internal ViewSignal ResourcesLoadedSignal()
5241         {
5242             ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5243             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5244             return ret;
5245         }
5246
5247         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5248         {
5249             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5250         }
5251
5252         internal bool IsTopLevelView()
5253         {
5254             if (GetParent() is Layer)
5255             {
5256                 return true;
5257             }
5258             return false;
5259         }
5260
5261         internal void SetKeyInputFocus()
5262         {
5263             Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5264             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5265         }
5266
5267         internal void ClearKeyInputFocus()
5268         {
5269             Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5270             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5271         }
5272
5273         internal PinchGestureDetector GetPinchGestureDetector()
5274         {
5275             PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5276             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5277             return ret;
5278         }
5279
5280         internal PanGestureDetector GetPanGestureDetector()
5281         {
5282             PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5283             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5284             return ret;
5285         }
5286
5287         internal TapGestureDetector GetTapGestureDetector()
5288         {
5289             TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5290             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5291             return ret;
5292         }
5293
5294         internal LongPressGestureDetector GetLongPressGestureDetector()
5295         {
5296             LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5297             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5298             return ret;
5299         }
5300
5301         internal ControlKeySignal KeyEventSignal()
5302         {
5303             ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5304             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5305             return ret;
5306         }
5307
5308         internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5309         {
5310             KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5311             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5312             return ret;
5313         }
5314
5315         internal KeyInputFocusSignal KeyInputFocusLostSignal()
5316         {
5317             KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5318             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5319             return ret;
5320         }
5321
5322         internal IntPtr GetPtrfromView()
5323         {
5324             return (IntPtr)swigCPtr;
5325         }
5326
5327         internal void RemoveChild(View child)
5328         {
5329             // Do actual child removal
5330             Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
5331             if (NDalicPINVOKE.SWIGPendingException.Pending)
5332                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5333
5334             Children.Remove(child);
5335             child.InternalParent = null;
5336
5337             if (ChildRemoved != null)
5338             {
5339                 ChildRemovedEventArgs e = new ChildRemovedEventArgs
5340                 {
5341                     Removed = child
5342                 };
5343                 ChildRemoved(this, e);
5344             }
5345         }
5346
5347         /// <summary>
5348         /// Removes the layout from this View.
5349         /// </summary>
5350         internal void ResetLayout()
5351         {
5352             _layout = null;
5353         }
5354
5355         internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5356         {
5357             return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5358         }
5359
5360         /// <summary>
5361         /// you can override it to clean-up your own resources.
5362         /// </summary>
5363         /// <param name="type">DisposeTypes</param>
5364         /// <since_tizen> 3 </since_tizen>
5365         protected override void Dispose(DisposeTypes type)
5366         {
5367             if (disposed)
5368             {
5369                 return;
5370             }
5371
5372             //_mergedStyle = null;
5373
5374             //Release your own unmanaged resources here.
5375             //You should not access any managed member here except static instance.
5376             //because the execution order of Finalizes is non-deterministic.
5377             if (this != null)
5378             {
5379                 DisConnectFromSignals();
5380             }
5381
5382             if (swigCPtr.Handle != global::System.IntPtr.Zero)
5383             {
5384                 if (swigCMemOwn)
5385                 {
5386                     swigCMemOwn = false;
5387                     Interop.View.delete_View(swigCPtr);
5388                 }
5389                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5390             }
5391
5392             foreach (View view in Children)
5393             {
5394                 view.InternalParent = null;
5395             }
5396
5397             base.Dispose(type);
5398
5399         }
5400
5401         private void OnSize2DChanged(int width, int height)
5402         {
5403             Size2D = new Size2D(width, height);
5404         }
5405
5406         private void OnMinimumSizeChanged(int width, int height)
5407         {
5408             MinimumSize = new Size2D(width, height);
5409         }
5410
5411         private void OnMaximumSizeChanged(int width, int height)
5412         {
5413             MaximumSize = new Size2D(width, height);
5414         }
5415
5416         private void OnPosition2DChanged(int x, int y)
5417         {
5418             Position2D = new Position2D(x, y);
5419         }
5420
5421         private void OnSizeChanged(float width, float height, float depth)
5422         {
5423             Size = new Size(width, height, depth);
5424         }
5425
5426         private void OnPositionChanged(float x, float y, float z)
5427         {
5428             Position = new Position(x, y, z);
5429         }
5430
5431         private void OnParentOriginChanged(float x, float y, float z)
5432         {
5433             ParentOrigin = new Position(x, y, z);
5434         }
5435
5436         private void OnPivotPointChanged(float x, float y, float z)
5437         {
5438             PivotPoint = new Position(x, y, z);
5439         }
5440
5441         private void DisConnectFromSignals()
5442         {
5443             // Save current CPtr.
5444             global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5445
5446             // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5447             swigCPtr = GetBaseHandleCPtrHandleRef;
5448
5449             if (_onRelayoutEventCallback != null)
5450             {
5451                 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5452             }
5453
5454             if (_offWindowEventCallback != null)
5455             {
5456                 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5457             }
5458
5459             if (_onWindowEventCallback != null)
5460             {
5461                 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5462             }
5463
5464             if (_wheelEventCallback != null)
5465             {
5466                 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5467             }
5468
5469             if (_hoverEventCallback != null)
5470             {
5471                 this.HoveredSignal().Disconnect(_hoverEventCallback);
5472             }
5473
5474             if (_touchDataCallback != null)
5475             {
5476                 this.TouchSignal().Disconnect(_touchDataCallback);
5477             }
5478
5479             if (_ResourcesLoadedCallback != null)
5480             {
5481                 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5482             }
5483
5484             if (_offWindowEventCallback != null)
5485             {
5486                 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5487             }
5488
5489             if (_onWindowEventCallback != null)
5490             {
5491                 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5492             }
5493
5494             if (_wheelEventCallback != null)
5495             {
5496                 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5497             }
5498
5499             if (_hoverEventCallback != null)
5500             {
5501                 this.HoveredSignal().Disconnect(_hoverEventCallback);
5502             }
5503
5504             if (_touchDataCallback != null)
5505             {
5506                 this.TouchSignal().Disconnect(_touchDataCallback);
5507             }
5508
5509             if (_onRelayoutEventCallback != null)
5510             {
5511                 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5512             }
5513
5514             if (_keyCallback != null)
5515             {
5516                 this.KeyEventSignal().Disconnect(_keyCallback);
5517             }
5518
5519             if (_keyInputFocusLostCallback != null)
5520             {
5521                 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5522             }
5523
5524             if (_keyInputFocusGainedCallback != null)
5525             {
5526                 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5527             }
5528
5529             if (_backgroundResourceLoadedCallback != null)
5530             {
5531                 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5532             }
5533
5534             if (_onWindowSendEventCallback != null)
5535             {
5536                 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5537             }
5538
5539             // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5540             // Restore current CPtr.
5541             swigCPtr = currentCPtr;
5542         }
5543
5544         private void OnKeyInputFocusGained(IntPtr view)
5545         {
5546             if (_keyInputFocusGainedEventHandler != null)
5547             {
5548                 _keyInputFocusGainedEventHandler(this, null);
5549             }
5550         }
5551
5552         private void OnKeyInputFocusLost(IntPtr view)
5553         {
5554             if (_keyInputFocusLostEventHandler != null)
5555             {
5556                 _keyInputFocusLostEventHandler(this, null);
5557             }
5558         }
5559
5560         private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5561         {
5562             if (keyEvent == global::System.IntPtr.Zero)
5563             {
5564                 NUILog.Error("keyEvent should not be null!");
5565                 return true;
5566             }
5567
5568             KeyEventArgs e = new KeyEventArgs();
5569
5570             bool result = false;
5571
5572             e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5573
5574             if (_keyEventHandler != null)
5575             {
5576                 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5577
5578                 // Oring the result of each callback.
5579                 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5580                 {
5581                     result |= del(this, e);
5582                 }
5583             }
5584
5585             return result;
5586         }
5587
5588         // Callback for View OnRelayout signal
5589         private void OnRelayout(IntPtr data)
5590         {
5591             if (_onRelayoutEventHandler != null)
5592             {
5593                 _onRelayoutEventHandler(this, null);
5594             }
5595         }
5596
5597         // Callback for View TouchSignal
5598         private bool OnTouch(IntPtr view, IntPtr touchData)
5599         {
5600             if (touchData == global::System.IntPtr.Zero)
5601             {
5602                 NUILog.Error("touchData should not be null!");
5603                 return true;
5604             }
5605
5606             TouchEventArgs e = new TouchEventArgs();
5607
5608             e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5609
5610             if (_touchDataEventHandler != null)
5611             {
5612                 return _touchDataEventHandler(this, e);
5613             }
5614             return false;
5615         }
5616
5617         // Callback for View Hover signal
5618         private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5619         {
5620             if (hoverEvent == global::System.IntPtr.Zero)
5621             {
5622                 NUILog.Error("hoverEvent should not be null!");
5623                 return true;
5624             }
5625
5626             HoverEventArgs e = new HoverEventArgs();
5627
5628             e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5629
5630             if (_hoverEventHandler != null)
5631             {
5632                 return _hoverEventHandler(this, e);
5633             }
5634             return false;
5635         }
5636
5637         // Callback for View Wheel signal
5638         private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5639         {
5640             if (wheelEvent == global::System.IntPtr.Zero)
5641             {
5642                 NUILog.Error("wheelEvent should not be null!");
5643                 return true;
5644             }
5645
5646             WheelEventArgs e = new WheelEventArgs();
5647
5648             e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5649
5650             if (_wheelEventHandler != null)
5651             {
5652                 return _wheelEventHandler(this, e);
5653             }
5654             return false;
5655         }
5656
5657         // Callback for View OnWindow signal
5658         private void OnWindow(IntPtr data)
5659         {
5660             if (_onWindowEventHandler != null)
5661             {
5662                 _onWindowEventHandler(this, null);
5663             }
5664         }
5665
5666         // Callback for View OffWindow signal
5667         private void OffWindow(IntPtr data)
5668         {
5669             if (_offWindowEventHandler != null)
5670             {
5671                 _offWindowEventHandler(this, null);
5672             }
5673         }
5674
5675         // Callback for View visibility change signal
5676         private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5677         {
5678             VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5679             if (data != null)
5680             {
5681                 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5682             }
5683             e.Visibility = visibility;
5684             e.Type = type;
5685
5686             if (_visibilityChangedEventHandler != null)
5687             {
5688                 _visibilityChangedEventHandler(this, e);
5689             }
5690         }
5691
5692         // Callback for View layout direction change signal
5693         private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5694         {
5695             LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5696             if (data != null)
5697             {
5698                 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5699             }
5700             e.Type = type;
5701
5702             if (_layoutDirectionChangedEventHandler != null)
5703             {
5704                 _layoutDirectionChangedEventHandler(this, e);
5705             }
5706         }
5707
5708         private void OnResourcesLoaded(IntPtr view)
5709         {
5710             if (_resourcesLoadedEventHandler != null)
5711             {
5712                 _resourcesLoadedEventHandler(this, null);
5713             }
5714         }
5715
5716         private View ConvertIdToView(uint id)
5717         {
5718             View view = GetParent()?.FindCurrentChildById(id);
5719
5720             //If we can't find the parent's children, find in the top layer.
5721             if (!view)
5722             {
5723                 Container parent = GetParent();
5724                 while ((parent is View) && (parent != null))
5725                 {
5726                     parent = parent.GetParent();
5727                     if (parent is Layer)
5728                     {
5729                         view = parent.FindCurrentChildById(id);
5730                         break;
5731                     }
5732                 }
5733             }
5734
5735             return view;
5736         }
5737
5738         private void OnBackgroundResourceLoaded(IntPtr view)
5739         {
5740             BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5741             e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5742
5743             if (_backgroundResourceLoadedEventHandler != null)
5744             {
5745                 _backgroundResourceLoadedEventHandler(this, e);
5746             }
5747         }
5748
5749         /// <summary>
5750         /// Event argument passed through the ChildAdded event.
5751         /// </summary>
5752         /// <since_tizen> 5 </since_tizen>
5753         public class ChildAddedEventArgs : EventArgs
5754         {
5755             /// <summary>
5756             /// Added child view at moment.
5757             /// </summary>
5758             /// <since_tizen> 5 </since_tizen>
5759             public View Added { get; set; }
5760         }
5761
5762         /// <summary>
5763         /// Event argument passed through the ChildRemoved event.
5764         /// </summary>
5765         /// <since_tizen> 5 </since_tizen>
5766         public class ChildRemovedEventArgs : EventArgs
5767         {
5768             /// <summary>
5769             /// Removed child view at moment.
5770             /// </summary>
5771             /// <since_tizen> 5 </since_tizen>
5772             public View Removed { get; set; }
5773         }
5774
5775         /// <summary>
5776         /// Event arguments that passed via the KeyEvent signal.
5777         /// </summary>
5778         /// <since_tizen> 3 </since_tizen>
5779         public class KeyEventArgs : EventArgs
5780         {
5781             private Key _key;
5782
5783             /// <summary>
5784             /// Key - is the key sent to the view.
5785             /// </summary>
5786             /// <since_tizen> 3 </since_tizen>
5787             public Key Key
5788             {
5789                 get
5790                 {
5791                     return _key;
5792                 }
5793                 set
5794                 {
5795                     _key = value;
5796                 }
5797             }
5798         }
5799
5800         /// <summary>
5801         /// Event arguments that passed via the touch signal.
5802         /// </summary>
5803         /// <since_tizen> 3 </since_tizen>
5804         public class TouchEventArgs : EventArgs
5805         {
5806             private Touch _touch;
5807
5808             /// <summary>
5809             /// Touch - contains the information of touch points.
5810             /// </summary>
5811             /// <since_tizen> 3 </since_tizen>
5812             public Touch Touch
5813             {
5814                 get
5815                 {
5816                     return _touch;
5817                 }
5818                 set
5819                 {
5820                     _touch = value;
5821                 }
5822             }
5823         }
5824
5825         /// <summary>
5826         /// Event arguments that passed via the hover signal.
5827         /// </summary>
5828         /// <since_tizen> 3 </since_tizen>
5829         public class HoverEventArgs : EventArgs
5830         {
5831             private Hover _hover;
5832
5833             /// <summary>
5834             /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5835             /// </summary>
5836             /// <since_tizen> 3 </since_tizen>
5837             public Hover Hover
5838             {
5839                 get
5840                 {
5841                     return _hover;
5842                 }
5843                 set
5844                 {
5845                     _hover = value;
5846                 }
5847             }
5848         }
5849
5850         /// <summary>
5851         /// Event arguments that passed via the wheel signal.
5852         /// </summary>
5853         /// <since_tizen> 3 </since_tizen>
5854         public class WheelEventArgs : EventArgs
5855         {
5856             private Wheel _wheel;
5857
5858             /// <summary>
5859             /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5860             /// </summary>
5861             /// <since_tizen> 3 </since_tizen>
5862             public Wheel Wheel
5863             {
5864                 get
5865                 {
5866                     return _wheel;
5867                 }
5868                 set
5869                 {
5870                     _wheel = value;
5871                 }
5872             }
5873         }
5874
5875         /// <summary>
5876         /// Event arguments of visibility changed.
5877         /// </summary>
5878         /// <since_tizen> 3 </since_tizen>
5879         public class VisibilityChangedEventArgs : EventArgs
5880         {
5881             private View _view;
5882             private bool _visibility;
5883             private VisibilityChangeType _type;
5884
5885             /// <summary>
5886             /// The view, or child of view, whose visibility has changed.
5887             /// </summary>
5888             /// <since_tizen> 3 </since_tizen>
5889             public View View
5890             {
5891                 get
5892                 {
5893                     return _view;
5894                 }
5895                 set
5896                 {
5897                     _view = value;
5898                 }
5899             }
5900
5901             /// <summary>
5902             /// Whether the view is now visible or not.
5903             /// </summary>
5904             /// <since_tizen> 3 </since_tizen>
5905             public bool Visibility
5906             {
5907                 get
5908                 {
5909                     return _visibility;
5910                 }
5911                 set
5912                 {
5913                     _visibility = value;
5914                 }
5915             }
5916
5917             /// <summary>
5918             /// Whether the view's visible property has changed or a parent's.
5919             /// </summary>
5920             /// <since_tizen> 3 </since_tizen>
5921             public VisibilityChangeType Type
5922             {
5923                 get
5924                 {
5925                     return _type;
5926                 }
5927                 set
5928                 {
5929                     _type = value;
5930                 }
5931             }
5932         }
5933
5934         /// <summary>
5935         /// Event arguments of layout direction changed.
5936         /// </summary>
5937         /// <since_tizen> 4 </since_tizen>
5938         public class LayoutDirectionChangedEventArgs : EventArgs
5939         {
5940             private View _view;
5941             private ViewLayoutDirectionType _type;
5942
5943             /// <summary>
5944             /// The view, or child of view, whose layout direction has changed.
5945             /// </summary>
5946             /// <since_tizen> 4 </since_tizen>
5947             public View View
5948             {
5949                 get
5950                 {
5951                     return _view;
5952                 }
5953                 set
5954                 {
5955                     _view = value;
5956                 }
5957             }
5958
5959             /// <summary>
5960             /// Whether the view's layout direction property has changed or a parent's.
5961             /// </summary>
5962             /// <since_tizen> 4 </since_tizen>
5963             public ViewLayoutDirectionType Type
5964             {
5965                 get
5966                 {
5967                     return _type;
5968                 }
5969                 set
5970                 {
5971                     _type = value;
5972                 }
5973             }
5974         }
5975
5976         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
5977         [EditorBrowsable(EditorBrowsableState.Never)]
5978         public Vector2 UpdateSizeHint
5979         {
5980             get
5981             {
5982                 return (Vector2)GetValue(UpdateSizeHintProperty);
5983             }
5984             set
5985             {
5986                 SetValue(UpdateSizeHintProperty, value);
5987                 NotifyPropertyChanged();
5988             }
5989         }
5990
5991         private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
5992
5993         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5994         [EditorBrowsable(EditorBrowsableState.Never)]
5995         public Transition GetTransition(string transitionName)
5996         {
5997             Transition trans = null;
5998             transDictionary.TryGetValue(transitionName, out trans);
5999             return trans;
6000         }
6001
6002         private void LoadTransitions()
6003         {
6004             foreach (string str in transitionNames)
6005             {
6006                 string resourceName = str + ".xaml";
6007                 Transition trans = null;
6008
6009                 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
6010
6011                 string likelyResourcePath = resource + "animation/" + resourceName;
6012
6013                 if (File.Exists(likelyResourcePath))
6014                 {
6015                     trans = Extensions.LoadObject<Transition>(likelyResourcePath);
6016                 }
6017                 if (trans)
6018                 {
6019                     transDictionary.Add(trans.Name, trans);
6020                 }
6021             }
6022         }
6023
6024         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6025         [EditorBrowsable(EditorBrowsableState.Never)]
6026         public string[] TransitionNames
6027         {
6028             get
6029             {
6030                 return transitionNames;
6031             }
6032             set
6033             {
6034                 transitionNames = value;
6035                 LoadTransitions();
6036             }
6037         }
6038         private string[] transitionNames;
6039
6040         internal class BackgroundResourceLoadedEventArgs : EventArgs
6041         {
6042             private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
6043             public ResourceLoadingStatusType Status
6044             {
6045                 get
6046                 {
6047                     return status;
6048                 }
6049                 set
6050                 {
6051                     status = value;
6052                 }
6053             }
6054         }
6055
6056         internal class Property
6057         {
6058             internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
6059             internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
6060             internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
6061             internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
6062             internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
6063             internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
6064             internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
6065             internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
6066             internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
6067             internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
6068             internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
6069             internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
6070             internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
6071             internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
6072             internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
6073             internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
6074             internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
6075             internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
6076             internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
6077             internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
6078             internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
6079             internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
6080             internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
6081             internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
6082             internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
6083             internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
6084             internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
6085             internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
6086             internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
6087             internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
6088             internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
6089             internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
6090             internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
6091             internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
6092             internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
6093             internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
6094             internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
6095             internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
6096             internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6097             internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6098             internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6099             internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6100             internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6101             internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6102             internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6103             internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6104             internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6105             internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6106             internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6107             internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6108             internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6109             internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6110             internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6111             internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6112             internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6113             internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6114             internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6115             internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6116             internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6117             internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6118             internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6119             internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6120             internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();
6121         }
6122     }
6123 }