[NUI] Integration from dalihub (#1073)
[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 "backgroundImage" 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 "backgroundColor" 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         /// <remarks>
2596         /// <para>
2597         /// Animatable - This property can be animated using <c>Animation</c> class.
2598         /// </para>
2599         /// </remarks>
2600         /// <since_tizen> 3 </since_tizen>
2601         public float SizeWidth
2602         {
2603             get
2604             {
2605                 return (float)GetValue(SizeWidthProperty);
2606             }
2607             set
2608             {
2609                 SetValue(SizeWidthProperty, value);
2610                 WidthSpecification = (int)Math.Ceiling(value);
2611                 NotifyPropertyChanged();
2612             }
2613         }
2614
2615         /// <summary>
2616         /// Gets or sets the size height of the view.
2617         /// </summary>
2618         /// <remarks>
2619         /// <para>
2620         /// Animatable - This property can be animated using <c>Animation</c> class.
2621         /// </para>
2622         /// </remarks>
2623         /// <since_tizen> 3 </since_tizen>
2624         public float SizeHeight
2625         {
2626             get
2627             {
2628                 return (float)GetValue(SizeHeightProperty);
2629             }
2630             set
2631             {
2632                 SetValue(SizeHeightProperty, value);
2633                 HeightSpecification = (int)Math.Ceiling(value);
2634                 NotifyPropertyChanged();
2635             }
2636         }
2637
2638         /// <summary>
2639         /// Gets or sets the position of the view.<br />
2640         /// By default, sets the position vector between the parent origin and pivot point (default).<br />
2641         /// If the position inheritance is disabled, sets the world position.<br />
2642         /// </summary>
2643         /// <remarks>
2644         /// <para>
2645         /// Animatable - This property can be animated using <c>Animation</c> class.
2646         /// </para>
2647         /// </remarks>
2648         /// <since_tizen> 3 </since_tizen>
2649         public Position Position
2650         {
2651             get
2652             {
2653                 Position tmp = (Position)GetValue(PositionProperty);
2654                 return new Position(OnPositionChanged, tmp.X, tmp.Y, tmp.Z);
2655             }
2656             set
2657             {
2658                 SetValue(PositionProperty, value);
2659                 NotifyPropertyChanged();
2660             }
2661         }
2662
2663         /// <summary>
2664         /// Gets or sets the position X of the view.
2665         /// </summary>
2666         /// <remarks>
2667         /// <para>
2668         /// Animatable - This property can be animated using <c>Animation</c> class.
2669         /// </para>
2670         /// </remarks>
2671         /// <since_tizen> 3 </since_tizen>
2672         public float PositionX
2673         {
2674             get
2675             {
2676                 return (float)GetValue(PositionXProperty);
2677             }
2678             set
2679             {
2680                 SetValue(PositionXProperty, value);
2681                 NotifyPropertyChanged();
2682             }
2683         }
2684
2685         /// <summary>
2686         /// Gets or sets the position Y of the view.
2687         /// </summary>
2688         /// <remarks>
2689         /// <para>
2690         /// Animatable - This property can be animated using <c>Animation</c> class.
2691         /// </para>
2692         /// </remarks>
2693         /// <since_tizen> 3 </since_tizen>
2694         public float PositionY
2695         {
2696             get
2697             {
2698                 return (float)GetValue(PositionYProperty);
2699             }
2700             set
2701             {
2702                 SetValue(PositionYProperty, value);
2703                 NotifyPropertyChanged();
2704             }
2705         }
2706
2707         /// <summary>
2708         /// Gets or sets the position Z of the view.
2709         /// </summary>
2710         /// <remarks>
2711         /// <para>
2712         /// Animatable - This property can be animated using <c>Animation</c> class.
2713         /// </para>
2714         /// </remarks>
2715         /// <since_tizen> 3 </since_tizen>
2716         public float PositionZ
2717         {
2718             get
2719             {
2720                 return (float)GetValue(PositionZProperty);
2721             }
2722             set
2723             {
2724                 SetValue(PositionZProperty, value);
2725                 NotifyPropertyChanged();
2726             }
2727         }
2728
2729         /// <summary>
2730         /// Gets or sets the world position of the view.
2731         /// </summary>
2732         /// <since_tizen> 3 </since_tizen>
2733         public Vector3 WorldPosition
2734         {
2735             get
2736             {
2737                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2738                 GetProperty(View.Property.WORLD_POSITION).Get(temp);
2739                 return temp;
2740             }
2741         }
2742
2743         /// <summary>
2744         /// Gets or sets the orientation of the view.<br />
2745         /// The view's orientation is the rotation from its default orientation, and the rotation is centered around its anchor-point.<br />
2746         /// </summary>
2747         /// <remarks>
2748         /// <para>
2749         /// This is an asynchronous method.
2750         /// </para>
2751         /// <para>
2752         /// Animatable - This property can be animated using <c>Animation</c> class.
2753         /// </para>
2754         /// </remarks>
2755         /// <since_tizen> 3 </since_tizen>
2756         public Rotation Orientation
2757         {
2758             get
2759             {
2760                 return (Rotation)GetValue(OrientationProperty);
2761             }
2762             set
2763             {
2764                 SetValue(OrientationProperty, value);
2765                 NotifyPropertyChanged();
2766             }
2767         }
2768
2769         /// <summary>
2770         /// Gets or sets the world orientation of the view.<br />
2771         /// </summary>
2772         /// <since_tizen> 3 </since_tizen>
2773         public Rotation WorldOrientation
2774         {
2775             get
2776             {
2777                 Rotation temp = new Rotation();
2778                 GetProperty(View.Property.WORLD_ORIENTATION).Get(temp);
2779                 return temp;
2780             }
2781         }
2782
2783         /// <summary>
2784         /// Gets or sets the scale factor applied to the view.<br />
2785         /// </summary>
2786         /// <remarks>
2787         /// <para>
2788         /// Animatable - This property can be animated using <c>Animation</c> class.
2789         /// </para>
2790         /// </remarks>
2791         /// <since_tizen> 3 </since_tizen>
2792         public Vector3 Scale
2793         {
2794             get
2795             {
2796                 return (Vector3)GetValue(ScaleProperty);
2797             }
2798             set
2799             {
2800                 SetValue(ScaleProperty, value);
2801                 NotifyPropertyChanged();
2802             }
2803         }
2804
2805         /// <summary>
2806         /// Gets or sets the scale X factor applied to the view.
2807         /// </summary>
2808         /// <remarks>
2809         /// <para>
2810         /// Animatable - This property can be animated using <c>Animation</c> class.
2811         /// </para>
2812         /// </remarks>
2813         /// <since_tizen> 3 </since_tizen>
2814         public float ScaleX
2815         {
2816             get
2817             {
2818                 return (float)GetValue(ScaleXProperty);
2819             }
2820             set
2821             {
2822                 SetValue(ScaleXProperty, value);
2823                 NotifyPropertyChanged();
2824             }
2825         }
2826
2827         /// <summary>
2828         /// Gets or sets the scale Y factor applied to the view.
2829         /// </summary>
2830         /// <remarks>
2831         /// <para>
2832         /// Animatable - This property can be animated using <c>Animation</c> class.
2833         /// </para>
2834         /// </remarks>
2835         /// <since_tizen> 3 </since_tizen>
2836         public float ScaleY
2837         {
2838             get
2839             {
2840                 return (float)GetValue(ScaleYProperty);
2841             }
2842             set
2843             {
2844                 SetValue(ScaleYProperty, value);
2845                 NotifyPropertyChanged();
2846             }
2847         }
2848
2849         /// <summary>
2850         /// Gets or sets the scale Z factor applied to the view.
2851         /// </summary>
2852         /// <remarks>
2853         /// <para>
2854         /// Animatable - This property can be animated using <c>Animation</c> class.
2855         /// </para>
2856         /// </remarks>
2857         /// <since_tizen> 3 </since_tizen>
2858         public float ScaleZ
2859         {
2860             get
2861             {
2862                 return (float)GetValue(ScaleZProperty);
2863             }
2864             set
2865             {
2866                 SetValue(ScaleZProperty, value);
2867                 NotifyPropertyChanged();
2868             }
2869         }
2870
2871         /// <summary>
2872         /// Gets the world scale of the view.
2873         /// </summary>
2874         /// <since_tizen> 3 </since_tizen>
2875         public Vector3 WorldScale
2876         {
2877             get
2878             {
2879                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
2880                 GetProperty(View.Property.WORLD_SCALE).Get(temp);
2881                 return temp;
2882             }
2883         }
2884
2885         /// <summary>
2886         /// Retrieves the visibility flag of the view.
2887         /// </summary>
2888         /// <remarks>
2889         /// <para>
2890         /// If the view is not visible, then the view and its children will not be rendered.
2891         /// 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.
2892         /// </para>
2893         /// <para>
2894         /// Animatable - This property can be animated using <c>Animation</c> class.
2895         /// </para>
2896         /// </remarks>
2897         /// <since_tizen> 3 </since_tizen>
2898         public bool Visibility
2899         {
2900             get
2901             {
2902                 bool temp = false;
2903                 GetProperty(View.Property.VISIBLE).Get(out temp);
2904                 return temp;
2905             }
2906         }
2907
2908         /// <summary>
2909         /// Gets the view's world color.
2910         /// </summary>
2911         /// <since_tizen> 3 </since_tizen>
2912         public Vector4 WorldColor
2913         {
2914             get
2915             {
2916                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2917                 GetProperty(View.Property.WORLD_COLOR).Get(temp);
2918                 return temp;
2919             }
2920         }
2921
2922         /// <summary>
2923         /// Gets or sets the view's name.
2924         /// </summary>
2925         /// <since_tizen> 3 </since_tizen>
2926         public string Name
2927         {
2928             get
2929             {
2930                 return (string)GetValue(NameProperty);
2931             }
2932             set
2933             {
2934                 SetValue(NameProperty, value);
2935                 NotifyPropertyChanged();
2936             }
2937         }
2938
2939         /// <summary>
2940         /// Get the number of children held by the view.
2941         /// </summary>
2942         /// <since_tizen> 3 </since_tizen>
2943         public new uint ChildCount
2944         {
2945             get
2946             {
2947                 return GetChildCount();
2948             }
2949         }
2950
2951         /// <summary>
2952         /// Gets the view's ID.
2953         /// Readonly
2954         /// </summary>
2955         /// <since_tizen> 3 </since_tizen>
2956         public uint ID
2957         {
2958             get
2959             {
2960                 return GetId();
2961             }
2962         }
2963
2964         /// <summary>
2965         /// Gets or sets the status of whether the view should emit touch or hover signals.
2966         /// </summary>
2967         /// <since_tizen> 3 </since_tizen>
2968         public bool Sensitive
2969         {
2970             get
2971             {
2972                 return (bool)GetValue(SensitiveProperty);
2973             }
2974             set
2975             {
2976                 SetValue(SensitiveProperty, value);
2977                 NotifyPropertyChanged();
2978             }
2979         }
2980
2981         /// <summary>
2982         /// 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.
2983         /// </summary>
2984         /// <since_tizen> 3 </since_tizen>
2985         public bool LeaveRequired
2986         {
2987             get
2988             {
2989                 return (bool)GetValue(LeaveRequiredProperty);
2990             }
2991             set
2992             {
2993                 SetValue(LeaveRequiredProperty, value);
2994                 NotifyPropertyChanged();
2995             }
2996         }
2997
2998         /// <summary>
2999         /// Gets or sets the status of whether a child view inherits it's parent's orientation.
3000         /// </summary>
3001         /// <since_tizen> 3 </since_tizen>
3002         public bool InheritOrientation
3003         {
3004             get
3005             {
3006                 return (bool)GetValue(InheritOrientationProperty);
3007             }
3008             set
3009             {
3010                 SetValue(InheritOrientationProperty, value);
3011                 NotifyPropertyChanged();
3012             }
3013         }
3014
3015         /// <summary>
3016         /// Gets or sets the status of whether a child view inherits it's parent's scale.
3017         /// </summary>
3018         /// <since_tizen> 3 </since_tizen>
3019         public bool InheritScale
3020         {
3021             get
3022             {
3023                 return (bool)GetValue(InheritScaleProperty);
3024             }
3025             set
3026             {
3027                 SetValue(InheritScaleProperty, value);
3028                 NotifyPropertyChanged();
3029             }
3030         }
3031
3032         /// <summary>
3033         /// Gets or sets the status of how the view and its children should be drawn.<br />
3034         /// Not all views are renderable, but DrawMode can be inherited from any view.<br />
3035         /// 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 />
3036         /// If DrawMode.Overlay2D is used, the view and its children will be drawn as a 2D overlay.<br />
3037         /// Overlay views are drawn in a separate pass, after all non-overlay views within the layer.<br />
3038         /// For overlay views, the drawing order is with respect to tree levels of views, and depth-testing will not be used.<br />
3039         /// </summary>
3040         /// <since_tizen> 3 </since_tizen>
3041         public DrawModeType DrawMode
3042         {
3043             get
3044             {
3045                 return (DrawModeType)GetValue(DrawModeProperty);
3046             }
3047             set
3048             {
3049                 SetValue(DrawModeProperty, value);
3050                 NotifyPropertyChanged();
3051             }
3052         }
3053
3054         /// <summary>
3055         /// Gets or sets the relative to parent size factor of the view.<br />
3056         /// This factor is only used when ResizePolicyType is set to either: ResizePolicyType.SizeRelativeToParent or ResizePolicyType.SizeFixedOffsetFromParent.<br />
3057         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicyType.<br />
3058         /// </summary>
3059         /// <since_tizen> 3 </since_tizen>
3060         public Vector3 SizeModeFactor
3061         {
3062             get
3063             {
3064                 return (Vector3)GetValue(SizeModeFactorProperty);
3065             }
3066             set
3067             {
3068                 SetValue(SizeModeFactorProperty, value);
3069                 NotifyPropertyChanged();
3070             }
3071         }
3072
3073         /// <summary>
3074         /// Gets or sets the width resize policy to be used.
3075         /// </summary>
3076         /// <since_tizen> 3 </since_tizen>
3077         public ResizePolicyType WidthResizePolicy
3078         {
3079             get
3080             {
3081                 return (ResizePolicyType)GetValue(WidthResizePolicyProperty);
3082             }
3083             set
3084             {
3085                 SetValue(WidthResizePolicyProperty, value);
3086                 // Match ResizePolicy to new Layouting.
3087                 // Parent relative policies can not be mapped at this point as parent size unknown.
3088                 switch (value)
3089                 {
3090                     case ResizePolicyType.UseNaturalSize:
3091                     {
3092                         WidthSpecification = LayoutParamPolicies.WrapContent;
3093                         break;
3094                     }
3095                     case ResizePolicyType.FillToParent:
3096                     {
3097                         WidthSpecification = LayoutParamPolicies.MatchParent;
3098                         break;
3099                     }
3100                     case ResizePolicyType.FitToChildren:
3101                     {
3102                         WidthSpecification = LayoutParamPolicies.WrapContent;
3103                         break;
3104                     }
3105                     default:
3106                         break;
3107                 }
3108                 NotifyPropertyChanged();
3109             }
3110         }
3111
3112         /// <summary>
3113         /// Gets or sets the height resize policy to be used.
3114         /// </summary>
3115         /// <since_tizen> 3 </since_tizen>
3116         public ResizePolicyType HeightResizePolicy
3117         {
3118             get
3119             {
3120                 return (ResizePolicyType)GetValue(HeightResizePolicyProperty);
3121             }
3122             set
3123             {
3124                 SetValue(HeightResizePolicyProperty, value);
3125                 // Match ResizePolicy to new Layouting.
3126                 // Parent relative policies can not be mapped at this point as parent size unknown.
3127                 switch (value)
3128                 {
3129                     case ResizePolicyType.UseNaturalSize:
3130                     {
3131                         HeightSpecification = LayoutParamPolicies.WrapContent;
3132                         break;
3133                     }
3134                     case ResizePolicyType.FillToParent:
3135                     {
3136                         HeightSpecification = LayoutParamPolicies.MatchParent;
3137                         break;
3138                     }
3139                     case ResizePolicyType.FitToChildren:
3140                     {
3141                         HeightSpecification = LayoutParamPolicies.WrapContent;
3142                         break;
3143                     }
3144                     default:
3145                         break;
3146                 }
3147                 NotifyPropertyChanged();
3148             }
3149         }
3150
3151         /// <summary>
3152         /// Gets or sets the policy to use when setting size with size negotiation.<br />
3153         /// Defaults to SizeScalePolicyType.UseSizeSet.<br />
3154         /// </summary>
3155         /// <since_tizen> 3 </since_tizen>
3156         public SizeScalePolicyType SizeScalePolicy
3157         {
3158             get
3159             {
3160                 return (SizeScalePolicyType)GetValue(SizeScalePolicyProperty);
3161             }
3162             set
3163             {
3164                 SetValue(SizeScalePolicyProperty, value);
3165                 NotifyPropertyChanged();
3166             }
3167         }
3168
3169         /// <summary>
3170         ///  Gets or sets the status of whether the width size is dependent on the height size.
3171         /// </summary>
3172         /// <since_tizen> 3 </since_tizen>
3173         public bool WidthForHeight
3174         {
3175             get
3176             {
3177                 return (bool)GetValue(WidthForHeightProperty);
3178             }
3179             set
3180             {
3181                 SetValue(WidthForHeightProperty, value);
3182                 NotifyPropertyChanged();
3183             }
3184         }
3185
3186         /// <summary>
3187         /// Gets or sets the status of whether the height size is dependent on the width size.
3188         /// </summary>
3189         /// <since_tizen> 3 </since_tizen>
3190         public bool HeightForWidth
3191         {
3192             get
3193             {
3194                 return (bool)GetValue(HeightForWidthProperty);
3195             }
3196             set
3197             {
3198                 SetValue(HeightForWidthProperty, value);
3199                 NotifyPropertyChanged();
3200             }
3201         }
3202
3203         /// <summary>
3204         /// Gets or sets the padding for use in layout.
3205         /// </summary>
3206         /// <since_tizen> 5 </since_tizen>
3207         public Extents Padding
3208         {
3209             get
3210             {
3211                 // If View has a Layout then padding in stored in the base Layout class
3212                 if (Layout !=null)
3213                 {
3214                     return Layout.Padding;
3215                 }
3216                 else
3217                 {
3218                     return (Extents)GetValue(PaddingProperty);
3219                 }
3220                 // Two return points to prevent creating a zeroed Extent native object before assignment
3221             }
3222             set
3223             {
3224                 Extents padding = value;
3225                 if (Layout !=null)
3226                 {
3227                     // Layout set so store Padding in LayoutItem instead of in View.
3228                     // If View stores the Padding value then Legacy Size Negotiation will overwrite
3229                     // the position and sizes measure in the Layouting.
3230                     Layout.Padding = value;
3231                     // If Layout is a LayoutItem then it could be a View that handles it's own padding.
3232                     // Let the View keeps it's padding.  Still store Padding in Layout to reduce code paths.
3233                     if( Layout.GetType() != typeof(LayoutItem)) // If a Layout container of some kind.
3234                     {
3235                         padding =  new Extents(0,0,0,0); // Reset value stored in View.
3236                     }
3237                     _layout?.RequestLayout();
3238                 }
3239                 SetValue(PaddingProperty, padding);
3240                 NotifyPropertyChanged();
3241                 _layout?.RequestLayout();
3242             }
3243         }
3244
3245         /// <summary>
3246         /// Gets or sets the minimum size the view can be assigned in size negotiation.
3247         /// </summary>
3248         /// <since_tizen> 3 </since_tizen>
3249         public Size2D MinimumSize
3250         {
3251             get
3252             {
3253                 Size2D tmp = (Size2D)GetValue(MinimumSizeProperty);
3254                 return new Size2D(OnMinimumSizeChanged, tmp.Width, tmp.Height);
3255             }
3256             set
3257             {
3258                 if (_layout != null)
3259                 {
3260                     // Note: it only works if minimum size is >= than natural size.
3261                     // To force the size it should be done through the width&height spec or Size2D.
3262                     _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Width);
3263                     _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Height);
3264                     _layout.RequestLayout();
3265                 }
3266                 SetValue(MinimumSizeProperty, value);
3267                 NotifyPropertyChanged();
3268             }
3269         }
3270
3271         /// <summary>
3272         /// Gets or sets the maximum size the view can be assigned in size negotiation.
3273         /// </summary>
3274         /// <since_tizen> 3 </since_tizen>
3275         public Size2D MaximumSize
3276         {
3277             get
3278             {
3279                 Size2D tmp = (Size2D)GetValue(MaximumSizeProperty);
3280                 return new Size2D(OnMaximumSizeChanged, tmp.Width, tmp.Height);
3281             }
3282             set
3283             {
3284                 // We don't have Layout.Maximum(Width|Height) so we cannot apply it to layout.
3285                 // MATCH_PARENT spec + parent container size can be used to limit
3286                 if (_layout != null)
3287                 {
3288                     // Note: it only works if minimum size is >= than natural size.
3289                     // To force the size it should be done through the width&height spec or Size2D.
3290                     _layout.MinimumHeight = new Tizen.NUI.LayoutLength(value.Width);
3291                     _layout.MinimumWidth = new Tizen.NUI.LayoutLength(value.Height);
3292                     _layout.RequestLayout();
3293                 }
3294                 SetValue(MaximumSizeProperty, value);
3295                 NotifyPropertyChanged();
3296             }
3297         }
3298
3299         /// <summary>
3300         /// Gets or sets whether a child view inherits it's parent's position.<br />
3301         /// Default is to inherit.<br />
3302         /// 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 />
3303         /// </summary>
3304         /// <since_tizen> 3 </since_tizen>
3305         public bool InheritPosition
3306         {
3307             get
3308             {
3309                 return (bool)GetValue(InheritPositionProperty);
3310             }
3311             set
3312             {
3313                 SetValue(InheritPositionProperty, value);
3314                 NotifyPropertyChanged();
3315             }
3316         }
3317
3318         /// <summary>
3319         /// Gets or sets the clipping behavior (mode) of it's children.
3320         /// </summary>
3321         /// <since_tizen> 3 </since_tizen>
3322         public ClippingModeType ClippingMode
3323         {
3324             get
3325             {
3326                 return (ClippingModeType)GetValue(ClippingModeProperty);
3327             }
3328             set
3329             {
3330                 SetValue(ClippingModeProperty, value);
3331                 NotifyPropertyChanged();
3332             }
3333         }
3334
3335         /// <summary>
3336         /// Gets the number of renderers held by the view.
3337         /// </summary>
3338         /// <since_tizen> 3 </since_tizen>
3339         public uint RendererCount
3340         {
3341             get
3342             {
3343                 return GetRendererCount();
3344             }
3345         }
3346
3347         /// <summary>
3348         /// Deprecated in API5; Will be removed in API8. Please use PivotPoint instead!
3349         /// </summary>
3350         /// <since_tizen> 3 </since_tizen>
3351         [Obsolete("Deprecated in API5; Will be removed in API8. Please use PivotPoint instead! " +
3352             "Like: " +
3353             "View view = new View(); " +
3354             "view.PivotPoint = PivotPoint.Center; " +
3355             "view.PositionUsesPivotPoint = true;")]
3356         [EditorBrowsable(EditorBrowsableState.Never)]
3357         public Position AnchorPoint
3358         {
3359             get
3360             {
3361                 Position temp = new Position(0.0f, 0.0f, 0.0f);
3362                 GetProperty(View.Property.ANCHOR_POINT).Get(temp);
3363                 return temp;
3364             }
3365             set
3366             {
3367                 SetProperty(View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue(value));
3368                 NotifyPropertyChanged();
3369             }
3370         }
3371
3372         /// <summary>
3373         /// Sets the size of a view for the width, the height and the depth.<br />
3374         /// Geometry can be scaled to fit within this area.<br />
3375         /// This does not interfere with the view's scale factor.<br />
3376         /// The views default depth is the minimum of width and height.<br />
3377         /// </summary>
3378         /// <remarks>
3379         /// <para>
3380         /// Please note that multi-cascade setting is not possible for this NUI object. <br />
3381         /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
3382         /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
3383         /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
3384         /// 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 />
3385         /// </para>
3386         /// <para>
3387         /// Animatable - This property can be animated using <c>Animation</c> class.
3388         /// </para>
3389         /// </remarks>
3390         /// <since_tizen> 5 </since_tizen>
3391         public Size Size
3392         {
3393             get
3394             {
3395                 Size tmp = (Size)GetValue(SizeProperty);
3396                 return new Size(OnSizeChanged, tmp.Width, tmp.Height, tmp.Depth);
3397             }
3398             set
3399             {
3400                 SetValue(SizeProperty, value);
3401                 // Set Specification so when layouts measure this View it matches the value set here.
3402                 // All Views are currently Layouts.
3403                 WidthSpecification = (int)Math.Ceiling(value.Width);
3404                 HeightSpecification = (int)Math.Ceiling(value.Height);
3405                 NotifyPropertyChanged();
3406             }
3407         }
3408
3409         /// <summary>
3410         /// Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead!
3411         /// </summary>
3412         /// <since_tizen> 3 </since_tizen>
3413         [Obsolete("Deprecated in API5; Will be removed in API8. Please use 'Container GetParent() for derived class' instead! " +
3414             "Like: " +
3415             "Container parent =  view.GetParent(); " +
3416             "View view = parent as View;")]
3417         [EditorBrowsable(EditorBrowsableState.Never)]
3418         public new View Parent
3419         {
3420             get
3421             {
3422                 View ret;
3423                 IntPtr cPtr = Interop.Actor.Actor_GetParent(swigCPtr);
3424                 HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
3425                 BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle);
3426
3427                 if (basehandle is Layer layer)
3428                 {
3429                     ret = new View(Layer.getCPtr(layer).Handle, false);
3430                     NUILog.Error("This Parent property is deprecated, shoud do not be used");
3431                 }
3432                 else
3433                 {
3434                     ret = basehandle as View;
3435                 }
3436
3437                 Interop.BaseHandle.delete_BaseHandle(CPtr);
3438                 CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
3439
3440                 if (NDalicPINVOKE.SWIGPendingException.Pending)
3441                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3442                 return ret;
3443             }
3444         }
3445
3446         /// <summary>
3447         /// Gets/Sets whether inherit parent's the layout Direction.
3448         /// </summary>
3449         /// <since_tizen> 4 </since_tizen>
3450         public bool InheritLayoutDirection
3451         {
3452             get
3453             {
3454                 return (bool)GetValue(InheritLayoutDirectionProperty);
3455             }
3456             set
3457             {
3458                 SetValue(InheritLayoutDirectionProperty, value);
3459                 NotifyPropertyChanged();
3460             }
3461         }
3462
3463         /// <summary>
3464         /// Gets/Sets the layout Direction.
3465         /// </summary>
3466         /// <since_tizen> 4 </since_tizen>
3467         public ViewLayoutDirectionType LayoutDirection
3468         {
3469             get
3470             {
3471                 return (ViewLayoutDirectionType)GetValue(LayoutDirectionProperty);
3472             }
3473             set
3474             {
3475                 SetValue(LayoutDirectionProperty, value);
3476                 NotifyPropertyChanged();
3477                 _layout?.RequestLayout();
3478             }
3479         }
3480
3481         /// <summary>
3482         /// Gets or sets the Margin for use in layout.
3483         /// </summary>
3484         /// <remarks>
3485         /// Margin property is supported by Layout algorithms and containers.
3486         /// Please Set Layout if you want to use Margin property.
3487         /// </remarks>
3488         /// <since_tizen> 4 </since_tizen>
3489         public Extents Margin
3490         {
3491             get
3492             {
3493                 // If View has a Layout then margin is stored in Layout.
3494                 if (Layout != null)
3495                 {
3496                     return Layout.Margin;
3497                 }
3498                 else
3499                 {
3500                     // If Layout not set then return margin stored in View.
3501                     return (Extents)GetValue(MarginProperty);
3502                 }
3503                 // Two return points to prevent creating a zeroed Extent native object before assignment
3504             }
3505             set
3506             {
3507                 if (Layout != null)
3508                 {
3509                     // Layout set so store Margin in LayoutItem instead of View.
3510                     // If View stores the Margin too then the Legacy Size Negotiation will
3511                     // overwrite the position and size values measured in the Layouting.
3512                     Layout.Margin = value;
3513                     SetValue(MarginProperty, new Extents(0,0,0,0));
3514                     _layout?.RequestLayout();
3515                 }
3516                 else
3517                 {
3518                     SetValue(MarginProperty, value);
3519                 }
3520                 NotifyPropertyChanged();
3521                 _layout?.RequestLayout();
3522             }
3523         }
3524
3525         ///<summary>
3526         /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3527         ///</summary>
3528         /// <since_tizen> 6 </since_tizen>
3529         public int WidthSpecification
3530         {
3531             get
3532             {
3533                 return _widthPolicy;
3534             }
3535             set
3536             {
3537                 _widthPolicy = value;
3538                 if (_widthPolicy >= 0)
3539                 {
3540                     _measureSpecificationWidth = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3541                     Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue(value));
3542                 }
3543                 _layout?.RequestLayout();
3544             }
3545         }
3546
3547         ///<summary>
3548         /// The required policy for this dimension, LayoutParamPolicies enum or exact value.
3549         ///</summary>
3550         /// <since_tizen> 6 </since_tizen>
3551         [EditorBrowsable(EditorBrowsableState.Never)]
3552         public int HeightSpecification
3553         {
3554             get
3555             {
3556                 return _heightPolicy;
3557             }
3558             set
3559             {
3560                 _heightPolicy = value;
3561                 if (_heightPolicy >= 0)
3562                 {
3563                     _measureSpecificationHeight = new MeasureSpecification( new LayoutLength(value), MeasureSpecification.ModeType.Exactly );
3564                     Tizen.NUI.Object.SetProperty(swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue(value));
3565                 }
3566                _layout?.RequestLayout();
3567             }
3568         }
3569
3570         ///<summary>
3571         /// Gets the List of transitions for this View.
3572         ///</summary>
3573         /// <since_tizen> 6 </since_tizen>
3574         public Dictionary<TransitionCondition, TransitionList> LayoutTransitions
3575         {
3576             get
3577             {
3578                 if (_layoutTransitions == null)
3579                 {
3580                     _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3581                 }
3582                 return _layoutTransitions;
3583             }
3584         }
3585
3586         ///<summary>
3587         /// Set a layout transitions for this View.
3588         ///</summary>
3589         /// <remarks>
3590         /// Use LayoutTransitions to receive a collection of LayoutTransitions set on the View.
3591         /// </remarks>
3592         /// <since_tizen> 6 </since_tizen>
3593         public LayoutTransition LayoutTransition
3594         {
3595             set
3596             {
3597                 if (_layoutTransitions == null)
3598                 {
3599                     _layoutTransitions = new Dictionary<TransitionCondition, TransitionList>();
3600                 }
3601                 LayoutTransitionsHelper.AddTransitionForCondition(_layoutTransitions,value.Condition,value, true);
3602
3603                 AttachTransitionsToChildren(value);
3604             }
3605         }
3606
3607         /// <summary>
3608         /// Deprecated in API5; Will be removed in API8. Please use Padding instead.
3609         /// </summary>
3610         /// <since_tizen> 4 </since_tizen>
3611         [Obsolete("Deprecated in API5; Will be removed in API8. Please use Padding instead.")]
3612         [EditorBrowsable(EditorBrowsableState.Never)]
3613         public Extents PaddingEX
3614         {
3615             get
3616             {
3617                 Extents temp = new Extents(0, 0, 0, 0);
3618                 GetProperty(View.Property.PADDING).Get(temp);
3619                 return temp;
3620             }
3621             set
3622             {
3623                 SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
3624                 NotifyPropertyChanged();
3625                 _layout?.RequestLayout();
3626             }
3627         }
3628
3629         /// <since_tizen> 6 </since_tizen>
3630         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
3631         [EditorBrowsable(EditorBrowsableState.Never)]
3632         public Style XamlStyle
3633         {
3634             get
3635             {
3636                 return (Style)GetValue(XamlStyleProperty);
3637             }
3638             set
3639             {
3640                 SetValue(XamlStyleProperty, value);
3641             }
3642         }
3643
3644         /// <summary>
3645         /// The Color of View. This is an RGBA value.
3646         /// </summary>
3647         /// <remarks>
3648         /// <para>
3649         /// Animatable - This property can be animated using <c>Animation</c> class.
3650         /// </para>
3651         /// </remarks>
3652         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3653         [EditorBrowsable(EditorBrowsableState.Never)]
3654         public Color Color
3655         {
3656             set
3657             {
3658                 SetColor(value);
3659             }
3660             get
3661             {
3662                 return GetCurrentColor();
3663             }
3664         }
3665
3666
3667         /// <summary>
3668         /// Set the layout on this View. Replaces any existing Layout.
3669         /// </summary>
3670         /// <since_tizen> 6 </since_tizen>
3671         public LayoutItem Layout
3672         {
3673             get
3674             {
3675                 return _layout;
3676             }
3677             set
3678             {
3679                 // Do nothing if layout provided is already set on this View.
3680                 if (value == _layout)
3681                 {
3682                     return;
3683                 }
3684
3685                 Log.Info("NUI", "Setting Layout on:" + Name + "\n");
3686                 layoutingDisabled = false;
3687                 layoutSet = true;
3688
3689                 // If new layout being set already has a owner then that owner receives a replacement default layout.
3690                 // First check if the layout to be set already has a owner.
3691                 if (value?.Owner != null)
3692                 {
3693                     // Previous owner of the layout gets a default layout as a replacement.
3694                     value.Owner.Layout = new LayoutGroup();
3695
3696                     // Copy Margin and Padding to replacement LayoutGroup.
3697                     value.Owner.Layout.Margin = value.Margin;
3698                     value.Owner.Layout.Padding = value.Padding;
3699                 }
3700
3701                 // Copy Margin and Padding to new layout being set or restore padding and margin back to
3702                 // View if no replacement. Previously margin and padding values would have been moved from
3703                 // the View to the layout.
3704                 if (_layout != null ) // Existing layout
3705                 {
3706                     if (value != null)
3707                     {
3708                         // Existing layout being replaced so copy over margin and padding values.
3709                         value.Margin = _layout.Margin;
3710                         value.Padding = _layout.Padding;
3711                     }
3712                     else
3713                     {
3714                       // Layout not being replaced so restore margin and padding to View.
3715                       SetValue(MarginProperty, _layout.Margin);
3716                       SetValue(PaddingProperty, _layout.Padding);
3717                       NotifyPropertyChanged();
3718                     }
3719                 }
3720                 else
3721                 {
3722                     // First Layout to be added to the View hence copy
3723
3724                     // Do not try to set Margins or Padding on a null Layout (when a layout is being removed from a View)
3725                     if (value !=null)
3726                     {
3727                         if (Margin.Top != 0 || Margin.Bottom !=0 || Margin.Start !=0 || Margin.End != 0)
3728                         {
3729                             // If View already has a margin set then store it in Layout instead.
3730                             value.Margin = Margin;
3731                             SetValue(MarginProperty, new Extents(0,0,0,0));
3732                             NotifyPropertyChanged();
3733                         }
3734
3735                         if (Padding.Top != 0 || Padding.Bottom !=0 || Padding.Start !=0 || Padding.End != 0)
3736                         {
3737                             // If View already has a padding set then store it in Layout instead.
3738                             value.Padding = Padding;
3739                             SetValue(PaddingProperty, new Extents(0,0,0,0));
3740                             NotifyPropertyChanged();
3741                         }
3742                     }
3743                 }
3744
3745                 // Remove existing layout from it's parent layout group.
3746                 _layout?.Unparent();
3747
3748                 // Set layout to this view
3749                 SetLayout(value);
3750             }
3751         }
3752
3753         /// <summary>
3754         /// The weight of the View, used to share available space in a layout with siblings.
3755         /// </summary>
3756         /// <since_tizen> 6 </since_tizen>
3757         public float Weight
3758         {
3759             get
3760             {
3761                 return _weight;
3762             }
3763             set
3764             {
3765                 _weight = value;
3766                 _layout?.RequestLayout();
3767             }
3768         }
3769
3770
3771         /// <summary>
3772         /// The color mode of View.
3773         /// This specifies whether the View uses its own color, or inherits its parent color.
3774         /// The default is ColorMode.UseOwnMultiplyParentColor.
3775         /// </summary>
3776         internal ColorMode ColorMode
3777         {
3778             set
3779             {
3780                 SetColorMode(value);
3781             }
3782             get
3783             {
3784                 return GetColorMode();
3785             }
3786         }
3787
3788         /// <summary>
3789         ///  Whether to load the BackgroundImage synchronously.
3790         ///  If not specified, the default is false, i.e. the BackgroundImage is loaded asynchronously.
3791         ///  Note: For Normal Quad images only.
3792         /// </summary>
3793         /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
3794         [EditorBrowsable(EditorBrowsableState.Never)]
3795         public bool BackgroundImageSynchronosLoading
3796         {
3797             get
3798             {
3799                 return _backgroundImageSynchronosLoading;
3800             }
3801             set
3802             {
3803                 _backgroundImageSynchronosLoading = value;
3804                 string bgUrl = "";
3805                 int visualType = 0;
3806                 Background.Find(Visual.Property.Type)?.Get(out visualType);
3807                 if (visualType == (int)Visual.Type.Image)
3808                 {
3809                     Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
3810                 }
3811
3812                 if (bgUrl.Length != 0)
3813                 {
3814                     PropertyMap bgMap = this.Background;
3815                     bgMap.Add("synchronousLoading", new PropertyValue(_backgroundImageSynchronosLoading));
3816                     Background = bgMap;
3817                 }
3818
3819             }
3820         }
3821
3822         internal float WorldPositionX
3823         {
3824             get
3825             {
3826                 float temp = 0.0f;
3827                 GetProperty(View.Property.WORLD_POSITION_X).Get(out temp);
3828                 return temp;
3829             }
3830         }
3831
3832         internal float WorldPositionY
3833         {
3834             get
3835             {
3836                 float temp = 0.0f;
3837                 GetProperty(View.Property.WORLD_POSITION_Y).Get(out temp);
3838                 return temp;
3839             }
3840         }
3841
3842         internal float WorldPositionZ
3843         {
3844             get
3845             {
3846                 float temp = 0.0f;
3847                 GetProperty(View.Property.WORLD_POSITION_Z).Get(out temp);
3848                 return temp;
3849             }
3850         }
3851
3852         internal bool FocusState
3853         {
3854             get
3855             {
3856                 return IsKeyboardFocusable();
3857             }
3858             set
3859             {
3860                 SetKeyboardFocusable(value);
3861             }
3862         }
3863
3864         internal void SetLayout(LayoutItem layout)
3865         {
3866             _layout = layout;
3867             _layout?.AttachToOwner(this);
3868             _layout?.RequestLayout();
3869         }
3870
3871         /// <summary>
3872         /// Stores the calculated width value and its ModeType. Width component.
3873         /// </summary>
3874         internal MeasureSpecification MeasureSpecificationWidth
3875         {
3876             set
3877             {
3878                 _measureSpecificationWidth = value;
3879                 _layout?.RequestLayout();
3880             }
3881             get
3882             {
3883                 return _measureSpecificationWidth;
3884             }
3885         }
3886
3887         /// <summary>
3888         /// Stores the calculated width value and its ModeType. Height component.
3889         /// </summary>
3890         internal MeasureSpecification MeasureSpecificationHeight
3891         {
3892             set
3893             {
3894                 _measureSpecificationHeight = value;
3895                 _layout?.RequestLayout();
3896             }
3897             get
3898             {
3899                 return _measureSpecificationHeight;
3900             }
3901         }
3902
3903         internal void AttachTransitionsToChildren(LayoutTransition transition)
3904         {
3905             // Iterate children, adding the transition unless a transition
3906             // for the same condition and property has already been
3907             // explicitly added.
3908             foreach (View view in Children)
3909             {
3910                 LayoutTransitionsHelper.AddTransitionForCondition(view.LayoutTransitions,transition.Condition, transition, false);
3911             }
3912         }
3913
3914         internal float ParentOriginX
3915         {
3916             get
3917             {
3918                 float temp = 0.0f;
3919                 GetProperty(View.Property.PARENT_ORIGIN_X).Get(out temp);
3920                 return temp;
3921             }
3922             set
3923             {
3924                 SetProperty(View.Property.PARENT_ORIGIN_X, new Tizen.NUI.PropertyValue(value));
3925                 NotifyPropertyChanged();
3926             }
3927         }
3928
3929         internal float ParentOriginY
3930         {
3931             get
3932             {
3933                 float temp = 0.0f;
3934                 GetProperty(View.Property.PARENT_ORIGIN_Y).Get(out temp);
3935                 return temp;
3936             }
3937             set
3938             {
3939                 SetProperty(View.Property.PARENT_ORIGIN_Y, new Tizen.NUI.PropertyValue(value));
3940                 NotifyPropertyChanged();
3941             }
3942         }
3943
3944         internal float ParentOriginZ
3945         {
3946             get
3947             {
3948                 float temp = 0.0f;
3949                 GetProperty(View.Property.PARENT_ORIGIN_Z).Get(out temp);
3950                 return temp;
3951             }
3952             set
3953             {
3954                 SetProperty(View.Property.PARENT_ORIGIN_Z, new Tizen.NUI.PropertyValue(value));
3955                 NotifyPropertyChanged();
3956             }
3957         }
3958
3959         internal float PivotPointX
3960         {
3961             get
3962             {
3963                 float temp = 0.0f;
3964                 GetProperty(View.Property.ANCHOR_POINT_X).Get(out temp);
3965                 return temp;
3966             }
3967             set
3968             {
3969                 SetProperty(View.Property.ANCHOR_POINT_X, new Tizen.NUI.PropertyValue(value));
3970             }
3971         }
3972
3973         internal float PivotPointY
3974         {
3975             get
3976             {
3977                 float temp = 0.0f;
3978                 GetProperty(View.Property.ANCHOR_POINT_Y).Get(out temp);
3979                 return temp;
3980             }
3981             set
3982             {
3983                 SetProperty(View.Property.ANCHOR_POINT_Y, new Tizen.NUI.PropertyValue(value));
3984             }
3985         }
3986
3987         internal float PivotPointZ
3988         {
3989             get
3990             {
3991                 float temp = 0.0f;
3992                 GetProperty(View.Property.ANCHOR_POINT_Z).Get(out temp);
3993                 return temp;
3994             }
3995             set
3996             {
3997                 SetProperty(View.Property.ANCHOR_POINT_Z, new Tizen.NUI.PropertyValue(value));
3998             }
3999         }
4000
4001         internal Matrix WorldMatrix
4002         {
4003             get
4004             {
4005                 Matrix temp = new Matrix();
4006                 GetProperty(View.Property.WORLD_MATRIX).Get(temp);
4007                 return temp;
4008             }
4009         }
4010
4011         private int LeftFocusableViewId
4012         {
4013             get
4014             {
4015                 int temp = 0;
4016                 GetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID).Get(out temp);
4017                 return temp;
4018             }
4019             set
4020             {
4021                 SetProperty(View.Property.LEFT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4022             }
4023         }
4024
4025         private int RightFocusableViewId
4026         {
4027             get
4028             {
4029                 int temp = 0;
4030                 GetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID).Get(out temp);
4031                 return temp;
4032             }
4033             set
4034             {
4035                 SetProperty(View.Property.RIGHT_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4036             }
4037         }
4038
4039         private int UpFocusableViewId
4040         {
4041             get
4042             {
4043                 int temp = 0;
4044                 GetProperty(View.Property.UP_FOCUSABLE_VIEW_ID).Get(out temp);
4045                 return temp;
4046             }
4047             set
4048             {
4049                 SetProperty(View.Property.UP_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4050             }
4051         }
4052
4053         private int DownFocusableViewId
4054         {
4055             get
4056             {
4057                 int temp = 0;
4058                 GetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID).Get(out temp);
4059                 return temp;
4060             }
4061             set
4062             {
4063                 SetProperty(View.Property.DOWN_FOCUSABLE_VIEW_ID, new Tizen.NUI.PropertyValue(value));
4064             }
4065         }
4066
4067         /// <summary>
4068         /// Perform an action on a visual registered to this view. <br />
4069         /// Visuals will have actions. This API is used to perform one of these actions with the given attributes.
4070         /// </summary>
4071         /// <param name="propertyIndexOfVisual">The Property index of the visual.</param>
4072         /// <param name="propertyIndexOfActionId">The action to perform. See Visual to find the supported actions.</param>
4073         /// <param name="attributes">Optional attributes for the action.</param>
4074         /// <since_tizen> 5 </since_tizen>
4075         public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes)
4076         {
4077             Interop.View.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes));
4078             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4079         }
4080
4081         /// <summary>
4082         /// Creates an animation to animate the background color visual. If there is no
4083         /// background visual, creates one with transparent black as it's mixColor.
4084         /// </summary>
4085         /// <since_tizen> 3 </since_tizen>
4086         public Animation AnimateBackgroundColor(object destinationValue,
4087                                                  int startTime,
4088                                                  int endTime,
4089                                                  AlphaFunction.BuiltinFunctions? alphaFunction = null,
4090                                                  object initialValue = null)
4091         {
4092             Tizen.NUI.PropertyMap background = Background;
4093
4094             if (background.Empty())
4095             {
4096                 // If there is no background yet, ensure there is a transparent
4097                 // color visual
4098                 BackgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
4099                 background = Background;
4100             }
4101             return AnimateColor("background", destinationValue, startTime, endTime, alphaFunction, initialValue);
4102         }
4103
4104         /// <summary>
4105         /// Creates an animation to animate the mixColor of the named visual.
4106         /// </summary>
4107         /// <since_tizen> 3 </since_tizen>
4108         public Animation AnimateColor(string targetVisual, object destinationColor, int startTime, int endTime, AlphaFunction.BuiltinFunctions? alphaFunction = null, object initialColor = null)
4109         {
4110             Animation animation = null;
4111             {
4112                 PropertyMap _animator = new PropertyMap();
4113                 if (alphaFunction != null)
4114                 {
4115                     _animator.Add("alphaFunction", new PropertyValue(AlphaFunction.BuiltinToPropertyKey(alphaFunction)));
4116                 }
4117
4118                 PropertyMap _timePeriod = new PropertyMap();
4119                 _timePeriod.Add("duration", new PropertyValue((endTime - startTime) / 1000.0f));
4120                 _timePeriod.Add("delay", new PropertyValue(startTime / 1000.0f));
4121                 _animator.Add("timePeriod", new PropertyValue(_timePeriod));
4122
4123                 PropertyMap _transition = new PropertyMap();
4124                 _transition.Add("animator", new PropertyValue(_animator));
4125                 _transition.Add("target", new PropertyValue(targetVisual));
4126                 _transition.Add("property", new PropertyValue("mixColor"));
4127
4128                 if (initialColor != null)
4129                 {
4130                     PropertyValue initValue = PropertyValue.CreateFromObject(initialColor);
4131                     _transition.Add("initialValue", initValue);
4132                 }
4133
4134                 PropertyValue destValue = PropertyValue.CreateFromObject(destinationColor);
4135                 _transition.Add("targetValue", destValue);
4136                 TransitionData _transitionData = new TransitionData(_transition);
4137
4138                 animation = new Animation(Interop.View.View_CreateTransition(swigCPtr, TransitionData.getCPtr(_transitionData)), true);
4139                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4140                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4141             }
4142             return animation;
4143         }
4144
4145         // From Container Base class
4146         /// <summary>
4147         /// Adds a child view to this view.
4148         /// </summary>
4149         /// <seealso cref="Container.Add" />
4150         /// <since_tizen> 4 </since_tizen>
4151         public override void Add(View child)
4152         {
4153             bool hasLayout = (_layout != null);
4154
4155             if (null == child)
4156             {
4157                 Tizen.Log.Fatal("NUI", "Child is null");
4158                 return;
4159             }
4160
4161             Container oldParent = child.GetParent();
4162             if (oldParent != this)
4163             {
4164                 // If child already has a parent then re-parent child
4165                 if (oldParent != null)
4166                 {
4167                     oldParent.Remove(child);
4168                 }
4169                 child.InternalParent = this;
4170
4171                 Interop.Actor.Actor_Add(swigCPtr, View.getCPtr(child));
4172
4173                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4174                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4175                 Children.Add(child);
4176
4177                 if (ChildAdded != null)
4178                 {
4179                     ChildAddedEventArgs e = new ChildAddedEventArgs
4180                     {
4181                         Added = child
4182                     };
4183                     ChildAdded(this, e);
4184                 }
4185                 BindableObject.SetInheritedBindingContext(child, this?.BindingContext);
4186             }
4187         }
4188
4189         /// <summary>
4190         /// Removes a child view from this View. If the view was not a child of this view, this is a no-op.
4191         /// </summary>
4192         /// <seealso cref="Container.Remove" />
4193         /// <since_tizen> 4 </since_tizen>
4194         public override void Remove(View child)
4195         {
4196             if (!child || child.GetParent()==null) // Early out if child null.
4197                 return;
4198
4199             bool hasLayout = (_layout != null);
4200
4201             // If View has a layout then do a deferred child removal
4202             // Actual child removal is performed by the layouting system so
4203             // transitions can be completed.
4204             if (hasLayout)
4205             {
4206                 (_layout as LayoutGroup)?.RemoveChildFromLayoutGroup( child );
4207             }
4208             else
4209             {
4210                 RemoveChild(child);
4211             }
4212         }
4213
4214         /// <summary>
4215         /// Retrieves a child view by index.
4216         /// </summary>
4217         /// <seealso cref="Container.GetChildAt" />
4218         /// <since_tizen> 4 </since_tizen>
4219         public override View GetChildAt(uint index)
4220         {
4221             if (index < Children.Count)
4222             {
4223                 return Children[Convert.ToInt32(index)];
4224             }
4225             else
4226             {
4227                 return null;
4228             }
4229         }
4230
4231         /// <summary>
4232         /// Retrieves the number of children held by the view.
4233         /// </summary>
4234         /// <seealso cref="Container.GetChildCount" />
4235         /// <since_tizen> 4 </since_tizen>
4236         public override uint GetChildCount()
4237         {
4238             return Convert.ToUInt32(Children.Count);
4239         }
4240
4241         /// <summary>
4242         /// Gets the views parent.
4243         /// </summary>
4244         /// <seealso cref="Container.GetParent()" />
4245         /// <since_tizen> 4 </since_tizen>
4246         public override Container GetParent()
4247         {
4248             return this.InternalParent as Container;
4249         }
4250
4251         /// <summary>
4252         /// Queries whether the view has a focus.
4253         /// </summary>
4254         /// <returns>True if this view has a focus.</returns>
4255         /// <since_tizen> 3 </since_tizen>
4256         public bool HasFocus()
4257         {
4258             bool ret = false;
4259             if (swigCPtr.Handle != global::System.IntPtr.Zero)
4260             {
4261                 ret = Interop.View.View_HasKeyInputFocus(swigCPtr);
4262                                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4263             }
4264             else
4265             {
4266                 Tizen.Log.Error("NUI", "swigCPtr of view is aleady disposed.");
4267             }
4268             return ret;
4269         }
4270
4271         /// <summary>
4272         /// Sets the name of the style to be applied to the view.
4273         /// </summary>
4274         /// <param name="styleName">A string matching a style described in a stylesheet.</param>
4275         /// <since_tizen> 3 </since_tizen>
4276         public void SetStyleName(string styleName)
4277         {
4278             Interop.View.View_SetStyleName(swigCPtr, styleName);
4279             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4280         }
4281
4282         /// <summary>
4283         /// Retrieves the name of the style to be applied to the view (if any).
4284         /// </summary>
4285         /// <returns>A string matching a style, or an empty string.</returns>
4286         /// <since_tizen> 3 </since_tizen>
4287         public string GetStyleName()
4288         {
4289             string ret = Interop.View.View_GetStyleName(swigCPtr);
4290             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4291             return ret;
4292         }
4293
4294         /// <summary>
4295         /// Clears the background.
4296         /// </summary>
4297         /// <since_tizen> 3 </since_tizen>
4298         public void ClearBackground()
4299         {
4300             Interop.View.View_ClearBackground(swigCPtr);
4301             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4302         }
4303
4304         /// <summary>
4305         /// Shows the view.
4306         /// </summary>
4307         /// <remarks>
4308         /// This is an asynchronous method.
4309         /// </remarks>
4310         /// <since_tizen> 3 </since_tizen>
4311         public void Show()
4312         {
4313             SetVisible(true);
4314         }
4315
4316         /// <summary>
4317         /// Hides the view.
4318         /// </summary>
4319         /// <remarks>
4320         /// This is an asynchronous method.
4321         /// If the view is hidden, then the view and its children will not be rendered.
4322         /// 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.
4323         /// </remarks>
4324         /// <since_tizen> 3 </since_tizen>
4325         public void Hide()
4326         {
4327             SetVisible(false);
4328         }
4329
4330         /// <summary>
4331         /// Raises the view above all other views.
4332         /// </summary>
4333         /// <remarks>
4334         /// Sibling order of views within the parent will be updated automatically.
4335         /// Once a raise or lower API is used, that view will then have an exclusive sibling order independent of insertion.
4336         /// </remarks>
4337         /// <since_tizen> 3 </since_tizen>
4338         public void RaiseToTop()
4339         {
4340             var parentChildren = GetParent()?.Children;
4341
4342             if (parentChildren != null)
4343             {
4344                 parentChildren.Remove(this);
4345                 parentChildren.Add(this);
4346
4347                 Interop.NDalic.RaiseToTop(swigCPtr);
4348                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4349                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4350             }
4351
4352         }
4353
4354         /// <summary>
4355         /// Lowers the view to the bottom of all views.
4356         /// </summary>
4357         /// <remarks>
4358         /// The sibling order of views within the parent will be updated automatically.
4359         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4360         /// </remarks>
4361         /// <since_tizen> 3 </since_tizen>
4362         public void LowerToBottom()
4363         {
4364             var parentChildren = GetParent()?.Children;
4365
4366             if (parentChildren != null)
4367             {
4368                 parentChildren.Remove(this);
4369                 parentChildren.Insert(0, this);
4370
4371                 Interop.NDalic.LowerToBottom(swigCPtr);
4372                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4373                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4374             }
4375         }
4376
4377         /// <summary>
4378         /// Queries if all resources required by a view are loaded and ready.
4379         /// </summary>
4380         /// <remarks>Most resources are only loaded when the control is placed on the stage.
4381         /// </remarks>
4382         /// <since_tizen> 3 </since_tizen>
4383         public bool IsResourceReady()
4384         {
4385             bool ret = Interop.View.IsResourceReady(swigCPtr);
4386             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4387             return ret;
4388         }
4389
4390         /// <summary>
4391         /// Gets the parent layer of this view.If a view has no parent, this method does not do anything.
4392         /// </summary>
4393         /// <pre>The view has been initialized. </pre>
4394         /// <returns>The parent layer of view </returns>
4395         /// <since_tizen> 5 </since_tizen>
4396         public Layer GetLayer()
4397         {
4398             //to fix memory leak issue, match the handle count with native side.
4399             IntPtr cPtr = Interop.Actor.Actor_GetLayer(swigCPtr);
4400             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4401             Layer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Layer;
4402             Interop.BaseHandle.delete_BaseHandle(CPtr);
4403             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4404
4405             if (NDalicPINVOKE.SWIGPendingException.Pending)
4406                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4407             return ret;
4408         }
4409
4410         /// <summary>
4411         /// Removes a view from its parent view or layer. If a view has no parent, this method does nothing.
4412         /// </summary>
4413         /// <pre>The (child) view has been initialized. </pre>
4414         /// <since_tizen> 4 </since_tizen>
4415         public void Unparent()
4416         {
4417             GetParent()?.Remove(this);
4418         }
4419
4420         /// <summary>
4421         /// Search through this view's hierarchy for a view with the given name.
4422         /// The view itself is also considered in the search.
4423         /// </summary>
4424         /// <pre>The view has been initialized.</pre>
4425         /// <param name="viewName">The name of the view to find.</param>
4426         /// <returns>A handle to the view if found, or an empty handle if not.</returns>
4427         /// <since_tizen> 3 </since_tizen>
4428         public View FindChildByName(string viewName)
4429         {
4430             //to fix memory leak issue, match the handle count with native side.
4431             IntPtr cPtr = Interop.Actor.Actor_FindChildByName(swigCPtr, viewName);
4432             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4433             View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4434             Interop.BaseHandle.delete_BaseHandle(CPtr);
4435             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4436
4437             if (NDalicPINVOKE.SWIGPendingException.Pending)
4438                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4439             return ret;
4440         }
4441
4442         /// <summary>
4443         /// Converts screen coordinates into the view's coordinate system using the default camera.
4444         /// </summary>
4445         /// <pre>The view has been initialized.</pre>
4446         /// <remarks>The view coordinates are relative to the top-left(0.0, 0.0, 0.5).</remarks>
4447         /// <param name="localX">On return, the X-coordinate relative to the view.</param>
4448         /// <param name="localY">On return, the Y-coordinate relative to the view.</param>
4449         /// <param name="screenX">The screen X-coordinate.</param>
4450         /// <param name="screenY">The screen Y-coordinate.</param>
4451         /// <returns>True if the conversion succeeded.</returns>
4452         /// <since_tizen> 3 </since_tizen>
4453         public bool ScreenToLocal(out float localX, out float localY, float screenX, float screenY)
4454         {
4455             bool ret = Interop.Actor.Actor_ScreenToLocal(swigCPtr, out localX, out localY, screenX, screenY);
4456             if (NDalicPINVOKE.SWIGPendingException.Pending)
4457                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4458             return ret;
4459         }
4460
4461         /// <summary>
4462         /// Sets the relative to parent size factor of the view.<br />
4463         /// This factor is only used when ResizePolicy is set to either:
4464         /// ResizePolicy::SIZE_RELATIVE_TO_PARENT or ResizePolicy::SIZE_FIXED_OFFSET_FROM_PARENT.<br />
4465         /// This view's size is set to the view's size multiplied by or added to this factor, depending on ResizePolicy.<br />
4466         /// </summary>
4467         /// <pre>The view has been initialized.</pre>
4468         /// <param name="factor">A Vector3 representing the relative factor to be applied to each axis.</param>
4469         /// <since_tizen> 3 </since_tizen>
4470         public void SetSizeModeFactor(Vector3 factor)
4471         {
4472             Interop.Actor.Actor_SetSizeModeFactor(swigCPtr, Vector3.getCPtr(factor));
4473             if (NDalicPINVOKE.SWIGPendingException.Pending)
4474                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4475         }
4476         /// <summary>
4477         /// Calculates the height of the view given a width.<br />
4478         /// The natural size is used for default calculation.<br />
4479         /// Size 0 is treated as aspect ratio 1:1.<br />
4480         /// </summary>
4481         /// <param name="width">The width to use.</param>
4482         /// <returns>The height based on the width.</returns>
4483         /// <since_tizen> 3 </since_tizen>
4484         public float GetHeightForWidth(float width)
4485         {
4486             float ret = Interop.Actor.Actor_GetHeightForWidth(swigCPtr, width);
4487             if (NDalicPINVOKE.SWIGPendingException.Pending)
4488                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4489             return ret;
4490         }
4491
4492         /// <summary>
4493         /// Calculates the width of the view given a height.<br />
4494         /// The natural size is used for default calculation.<br />
4495         /// Size 0 is treated as aspect ratio 1:1.<br />
4496         /// </summary>
4497         /// <param name="height">The height to use.</param>
4498         /// <returns>The width based on the height.</returns>
4499         /// <since_tizen> 3 </since_tizen>
4500         public float GetWidthForHeight(float height)
4501         {
4502             float ret = Interop.Actor.Actor_GetWidthForHeight(swigCPtr, height);
4503             if (NDalicPINVOKE.SWIGPendingException.Pending)
4504                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4505             return ret;
4506         }
4507
4508         /// <summary>
4509         /// Return the amount of size allocated for relayout.
4510         /// </summary>
4511         /// <param name="dimension">The dimension to retrieve.</param>
4512         /// <returns>Return the size.</returns>
4513         /// <since_tizen> 3 </since_tizen>
4514         public float GetRelayoutSize(DimensionType dimension)
4515         {
4516             float ret = Interop.Actor.Actor_GetRelayoutSize(swigCPtr, (int)dimension);
4517             if (NDalicPINVOKE.SWIGPendingException.Pending)
4518                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4519             return ret;
4520         }
4521
4522         /// <summary>
4523         /// Set the padding for the view.
4524         /// </summary>
4525         /// <param name="padding">Padding for the view.</param>
4526         /// <since_tizen> 3 </since_tizen>
4527         public void SetPadding(PaddingType padding)
4528         {
4529             Interop.Actor.Actor_SetPadding(swigCPtr, PaddingType.getCPtr(padding));
4530             if (NDalicPINVOKE.SWIGPendingException.Pending)
4531                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4532         }
4533
4534         /// <summary>
4535         /// Return the value of padding for the view.
4536         /// </summary>
4537         /// <param name="paddingOut">the value of padding for the view</param>
4538         /// <since_tizen> 3 </since_tizen>
4539         public void GetPadding(PaddingType paddingOut)
4540         {
4541             Interop.Actor.Actor_GetPadding(swigCPtr, PaddingType.getCPtr(paddingOut));
4542             if (NDalicPINVOKE.SWIGPendingException.Pending)
4543                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4544         }
4545
4546         /// <since_tizen> 3 </since_tizen>
4547         public uint AddRenderer(Renderer renderer)
4548         {
4549             uint ret = Interop.Actor.Actor_AddRenderer(swigCPtr, Renderer.getCPtr(renderer));
4550             if (NDalicPINVOKE.SWIGPendingException.Pending)
4551                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4552             return ret;
4553         }
4554
4555         /// <since_tizen> 3 </since_tizen>
4556         public Renderer GetRendererAt(uint index)
4557         {
4558             //to fix memory leak issue, match the handle count with native side.
4559             IntPtr cPtr = Interop.Actor.Actor_GetRendererAt(swigCPtr, index);
4560             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4561             Renderer ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as Renderer;
4562             if (cPtr != null && ret == null)
4563             {
4564                 ret = new Renderer(cPtr, false);
4565                 if (NDalicPINVOKE.SWIGPendingException.Pending)
4566                     throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4567                 return ret;
4568             }
4569             Interop.BaseHandle.delete_BaseHandle(CPtr);
4570             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4571
4572             if (NDalicPINVOKE.SWIGPendingException.Pending)
4573                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4574             return ret;
4575         }
4576
4577         /// <since_tizen> 3 </since_tizen>
4578         public void RemoveRenderer(Renderer renderer)
4579         {
4580             Interop.Actor.Actor_RemoveRenderer__SWIG_0(swigCPtr, Renderer.getCPtr(renderer));
4581             if (NDalicPINVOKE.SWIGPendingException.Pending)
4582                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4583         }
4584
4585         /// <since_tizen> 3 </since_tizen>
4586         public void RemoveRenderer(uint index)
4587         {
4588             Interop.Actor.Actor_RemoveRenderer__SWIG_1(swigCPtr, index);
4589             if (NDalicPINVOKE.SWIGPendingException.Pending)
4590                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4591         }
4592
4593         internal void Raise()
4594         {
4595             var parentChildren = GetParent()?.Children;
4596
4597             if (parentChildren != null)
4598             {
4599                 int currentIndex = parentChildren.IndexOf(this);
4600
4601                 // If the view is not already the last item in the list.
4602                 if (currentIndex >= 0 && currentIndex < parentChildren.Count - 1)
4603                 {
4604                     View temp = parentChildren[currentIndex + 1];
4605                     parentChildren[currentIndex + 1] = this;
4606                     parentChildren[currentIndex] = temp;
4607
4608                     Interop.NDalic.Raise(swigCPtr);
4609                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4610                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4611                 }
4612             }
4613         }
4614
4615         internal void Lower()
4616         {
4617             var parentChildren = GetParent()?.Children;
4618
4619             if (parentChildren != null)
4620             {
4621                 int currentIndex = parentChildren.IndexOf(this);
4622
4623                 // If the view is not already the first item in the list.
4624                 if (currentIndex > 0 && currentIndex < parentChildren.Count)
4625                 {
4626                     View temp = parentChildren[currentIndex - 1];
4627                     parentChildren[currentIndex - 1] = this;
4628                     parentChildren[currentIndex] = temp;
4629
4630                     Interop.NDalic.Lower(swigCPtr);
4631                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4632                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4633                 }
4634             }
4635         }
4636
4637         /// <summary>
4638         /// Raises the view to above the target view.
4639         /// </summary>
4640         /// <remarks>The sibling order of views within the parent will be updated automatically.
4641         /// Views on the level above the target view will still be shown above this view.
4642         /// Raising this view above views with the same sibling order as each other will raise this view above them.
4643         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4644         /// </remarks>
4645         /// <param name="target">Will be raised above this view.</param>
4646         internal void RaiseAbove(View target)
4647         {
4648             var parentChildren = GetParent()?.Children;
4649
4650             if (parentChildren != null)
4651             {
4652                 int currentIndex = parentChildren.IndexOf(this);
4653                 int targetIndex = parentChildren.IndexOf(target);
4654
4655                 if (currentIndex < 0 || targetIndex < 0 ||
4656                     currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4657                 {
4658                     NUILog.Error("index should be bigger than 0 and less than children of layer count");
4659                     return;
4660                 }
4661                 // If the currentIndex is less than the target index and the target has the same parent.
4662                 if (currentIndex < targetIndex)
4663                 {
4664                     parentChildren.Remove(this);
4665                     parentChildren.Insert(targetIndex, this);
4666
4667                     Interop.NDalic.RaiseAbove(swigCPtr, View.getCPtr(target));
4668                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4669                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4670                 }
4671             }
4672
4673         }
4674
4675         /// <summary>
4676         /// Lowers the view to below the target view.
4677         /// </summary>
4678         /// <remarks>The sibling order of views within the parent will be updated automatically.
4679         /// Lowering this view below views with the same sibling order as each other will lower this view above them.
4680         /// Once a raise or lower API is used that view will then have an exclusive sibling order independent of insertion.
4681         /// </remarks>
4682         /// <param name="target">Will be lowered below this view.</param>
4683         internal void LowerBelow(View target)
4684         {
4685             var parentChildren = GetParent()?.Children;
4686
4687             if (parentChildren != null)
4688             {
4689                 int currentIndex = parentChildren.IndexOf(this);
4690                 int targetIndex = parentChildren.IndexOf(target);
4691                 if (currentIndex < 0 || targetIndex < 0 ||
4692                    currentIndex >= parentChildren.Count || targetIndex >= parentChildren.Count)
4693                 {
4694                     NUILog.Error("index should be bigger than 0 and less than children of layer count");
4695                     return;
4696                 }
4697
4698                 // If the currentIndex is not already the 0th index and the target has the same parent.
4699                 if ((currentIndex != 0) && (targetIndex != -1) &&
4700                     (currentIndex > targetIndex))
4701                 {
4702                     parentChildren.Remove(this);
4703                     parentChildren.Insert(targetIndex, this);
4704
4705                     Interop.NDalic.LowerBelow(swigCPtr, View.getCPtr(target));
4706                     if (NDalicPINVOKE.SWIGPendingException.Pending)
4707                         throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4708                 }
4709             }
4710
4711         }
4712
4713         internal string GetName()
4714         {
4715             string ret = Interop.Actor.Actor_GetName(swigCPtr);
4716             if (NDalicPINVOKE.SWIGPendingException.Pending)
4717                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4718             return ret;
4719         }
4720
4721         internal void SetName(string name)
4722         {
4723             Interop.Actor.Actor_SetName(swigCPtr, name);
4724             if (NDalicPINVOKE.SWIGPendingException.Pending)
4725                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4726         }
4727
4728         internal uint GetId()
4729         {
4730             uint ret = Interop.Actor.Actor_GetId(swigCPtr);
4731             if (NDalicPINVOKE.SWIGPendingException.Pending)
4732                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4733             return ret;
4734         }
4735
4736         internal bool IsRoot()
4737         {
4738             bool ret = Interop.ActorInternal.Actor_IsRoot(swigCPtr);
4739             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4740             return ret;
4741         }
4742
4743         internal bool OnWindow()
4744         {
4745             bool ret = Interop.Actor.Actor_OnStage(swigCPtr);
4746             if (NDalicPINVOKE.SWIGPendingException.Pending)
4747                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4748             return ret;
4749         }
4750
4751         internal View FindChildById(uint id)
4752         {
4753             //to fix memory leak issue, match the handle count with native side.
4754             IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
4755             HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
4756             View ret = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle) as View;
4757             Interop.BaseHandle.delete_BaseHandle(CPtr);
4758             CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
4759
4760             if (NDalicPINVOKE.SWIGPendingException.Pending)
4761                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4762             return ret;
4763         }
4764
4765         internal override View FindCurrentChildById(uint id)
4766         {
4767             return FindChildById(id);
4768         }
4769
4770         internal void SetParentOrigin(Vector3 origin)
4771         {
4772             Interop.ActorInternal.Actor_SetParentOrigin(swigCPtr, Vector3.getCPtr(origin));
4773             if (NDalicPINVOKE.SWIGPendingException.Pending)
4774                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4775         }
4776
4777         internal Vector3 GetCurrentParentOrigin()
4778         {
4779             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentParentOrigin(swigCPtr), true);
4780             if (NDalicPINVOKE.SWIGPendingException.Pending)
4781                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4782             return ret;
4783         }
4784
4785         internal void SetAnchorPoint(Vector3 anchorPoint)
4786         {
4787             Interop.Actor.Actor_SetAnchorPoint(swigCPtr, Vector3.getCPtr(anchorPoint));
4788             if (NDalicPINVOKE.SWIGPendingException.Pending)
4789                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4790         }
4791
4792         internal Vector3 GetCurrentAnchorPoint()
4793         {
4794             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentAnchorPoint(swigCPtr), true);
4795             if (NDalicPINVOKE.SWIGPendingException.Pending)
4796                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4797             return ret;
4798         }
4799
4800         internal void SetSize(float width, float height)
4801         {
4802             Interop.ActorInternal.Actor_SetSize__SWIG_0(swigCPtr, width, height);
4803             if (NDalicPINVOKE.SWIGPendingException.Pending)
4804                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4805         }
4806
4807         internal void SetSize(float width, float height, float depth)
4808         {
4809             Interop.ActorInternal.Actor_SetSize__SWIG_1(swigCPtr, width, height, depth);
4810             if (NDalicPINVOKE.SWIGPendingException.Pending)
4811                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4812         }
4813
4814         internal void SetSize(Vector2 size)
4815         {
4816             Interop.ActorInternal.Actor_SetSize__SWIG_2(swigCPtr, Vector2.getCPtr(size));
4817             if (NDalicPINVOKE.SWIGPendingException.Pending)
4818                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4819         }
4820
4821         internal void SetSize(Vector3 size)
4822         {
4823             Interop.ActorInternal.Actor_SetSize__SWIG_3(swigCPtr, Vector3.getCPtr(size));
4824             if (NDalicPINVOKE.SWIGPendingException.Pending)
4825                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4826         }
4827
4828         internal Vector3 GetTargetSize()
4829         {
4830             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetTargetSize(swigCPtr), true);
4831             if (NDalicPINVOKE.SWIGPendingException.Pending)
4832                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4833             return ret;
4834         }
4835
4836         internal Size2D GetCurrentSize()
4837         {
4838             Size ret = new Size(Interop.Actor.Actor_GetCurrentSize(swigCPtr), true);
4839             if (NDalicPINVOKE.SWIGPendingException.Pending)
4840                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4841             Size2D size = new Size2D((int)ret.Width, (int)ret.Height);
4842             return size;
4843         }
4844
4845         internal Vector3 GetNaturalSize()
4846         {
4847             Vector3 ret = new Vector3(Interop.Actor.Actor_GetNaturalSize(swigCPtr), true);
4848             if (NDalicPINVOKE.SWIGPendingException.Pending)
4849                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4850             return ret;
4851         }
4852
4853         internal void SetPosition(float x, float y)
4854         {
4855             Interop.ActorInternal.Actor_SetPosition__SWIG_0(swigCPtr, x, y);
4856             if (NDalicPINVOKE.SWIGPendingException.Pending)
4857                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4858         }
4859
4860         internal void SetPosition(float x, float y, float z)
4861         {
4862             Interop.ActorInternal.Actor_SetPosition__SWIG_1(swigCPtr, x, y, z);
4863             if (NDalicPINVOKE.SWIGPendingException.Pending)
4864                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4865         }
4866
4867         internal void SetPosition(Vector3 position)
4868         {
4869             Interop.ActorInternal.Actor_SetPosition__SWIG_2(swigCPtr, Vector3.getCPtr(position));
4870             if (NDalicPINVOKE.SWIGPendingException.Pending)
4871                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4872         }
4873
4874         internal void SetX(float x)
4875         {
4876             Interop.ActorInternal.Actor_SetX(swigCPtr, x);
4877             if (NDalicPINVOKE.SWIGPendingException.Pending)
4878                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4879         }
4880
4881         internal void SetY(float y)
4882         {
4883             Interop.ActorInternal.Actor_SetY(swigCPtr, y);
4884             if (NDalicPINVOKE.SWIGPendingException.Pending)
4885                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4886         }
4887
4888         internal void SetZ(float z)
4889         {
4890             Interop.ActorInternal.Actor_SetZ(swigCPtr, z);
4891             if (NDalicPINVOKE.SWIGPendingException.Pending)
4892                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4893         }
4894
4895         internal void TranslateBy(Vector3 distance)
4896         {
4897             Interop.ActorInternal.Actor_TranslateBy(swigCPtr, Vector3.getCPtr(distance));
4898             if (NDalicPINVOKE.SWIGPendingException.Pending)
4899                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4900         }
4901
4902         internal Position GetCurrentPosition()
4903         {
4904             Position ret = new Position(Interop.Actor.Actor_GetCurrentPosition(swigCPtr), true);
4905             if (NDalicPINVOKE.SWIGPendingException.Pending)
4906                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4907             return ret;
4908         }
4909
4910         internal Vector3 GetCurrentWorldPosition()
4911         {
4912             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldPosition(swigCPtr), true);
4913             if (NDalicPINVOKE.SWIGPendingException.Pending)
4914                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4915             return ret;
4916         }
4917
4918         internal void SetInheritPosition(bool inherit)
4919         {
4920             Interop.ActorInternal.Actor_SetInheritPosition(swigCPtr, inherit);
4921             if (NDalicPINVOKE.SWIGPendingException.Pending)
4922                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4923         }
4924
4925         internal bool IsPositionInherited()
4926         {
4927             bool ret = Interop.ActorInternal.Actor_IsPositionInherited(swigCPtr);
4928             if (NDalicPINVOKE.SWIGPendingException.Pending)
4929                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4930             return ret;
4931         }
4932
4933         internal void SetOrientation(Degree angle, Vector3 axis)
4934         {
4935             Interop.ActorInternal.Actor_SetOrientation__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4936             if (NDalicPINVOKE.SWIGPendingException.Pending)
4937                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4938         }
4939
4940         internal void SetOrientation(Radian angle, Vector3 axis)
4941         {
4942             Interop.ActorInternal.Actor_SetOrientation__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4943             if (NDalicPINVOKE.SWIGPendingException.Pending)
4944                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4945         }
4946
4947         internal void SetOrientation(Rotation orientation)
4948         {
4949             Interop.ActorInternal.Actor_SetOrientation__SWIG_2(swigCPtr, Rotation.getCPtr(orientation));
4950             if (NDalicPINVOKE.SWIGPendingException.Pending)
4951                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4952         }
4953
4954         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4955         [EditorBrowsable(EditorBrowsableState.Never)]
4956         public void RotateBy(Degree angle, Vector3 axis)
4957         {
4958             Interop.ActorInternal.Actor_RotateBy__SWIG_0(swigCPtr, Degree.getCPtr(angle), Vector3.getCPtr(axis));
4959             if (NDalicPINVOKE.SWIGPendingException.Pending)
4960                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4961         }
4962
4963         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4964         [EditorBrowsable(EditorBrowsableState.Never)]
4965         public void RotateBy(Radian angle, Vector3 axis)
4966         {
4967             Interop.ActorInternal.Actor_RotateBy__SWIG_1(swigCPtr, Radian.getCPtr(angle), Vector3.getCPtr(axis));
4968             if (NDalicPINVOKE.SWIGPendingException.Pending)
4969                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4970         }
4971
4972         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
4973         [EditorBrowsable(EditorBrowsableState.Never)]
4974         public void RotateBy(Rotation relativeRotation)
4975         {
4976             Interop.ActorInternal.Actor_RotateBy__SWIG_2(swigCPtr, Rotation.getCPtr(relativeRotation));
4977             if (NDalicPINVOKE.SWIGPendingException.Pending)
4978                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4979         }
4980
4981         internal Rotation GetCurrentOrientation()
4982         {
4983             Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentOrientation(swigCPtr), true);
4984             if (NDalicPINVOKE.SWIGPendingException.Pending)
4985                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4986             return ret;
4987         }
4988
4989         internal void SetInheritOrientation(bool inherit)
4990         {
4991             Interop.ActorInternal.Actor_SetInheritOrientation(swigCPtr, inherit);
4992             if (NDalicPINVOKE.SWIGPendingException.Pending)
4993                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
4994         }
4995
4996         internal bool IsOrientationInherited()
4997         {
4998             bool ret = Interop.ActorInternal.Actor_IsOrientationInherited(swigCPtr);
4999             if (NDalicPINVOKE.SWIGPendingException.Pending)
5000                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5001             return ret;
5002         }
5003
5004         internal Rotation GetCurrentWorldOrientation()
5005         {
5006             Rotation ret = new Rotation(Interop.ActorInternal.Actor_GetCurrentWorldOrientation(swigCPtr), true);
5007             if (NDalicPINVOKE.SWIGPendingException.Pending)
5008                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5009             return ret;
5010         }
5011
5012         internal void SetScale(float scale)
5013         {
5014             Interop.ActorInternal.Actor_SetScale__SWIG_0(swigCPtr, scale);
5015             if (NDalicPINVOKE.SWIGPendingException.Pending)
5016                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5017         }
5018
5019         internal void SetScale(float scaleX, float scaleY, float scaleZ)
5020         {
5021             Interop.ActorInternal.Actor_SetScale__SWIG_1(swigCPtr, scaleX, scaleY, scaleZ);
5022             if (NDalicPINVOKE.SWIGPendingException.Pending)
5023                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5024         }
5025
5026         internal void SetScale(Vector3 scale)
5027         {
5028             Interop.ActorInternal.Actor_SetScale__SWIG_2(swigCPtr, Vector3.getCPtr(scale));
5029             if (NDalicPINVOKE.SWIGPendingException.Pending)
5030                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5031         }
5032
5033         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
5034         [EditorBrowsable(EditorBrowsableState.Never)]
5035         public void ScaleBy(Vector3 relativeScale)
5036         {
5037             Interop.ActorInternal.Actor_ScaleBy(swigCPtr, Vector3.getCPtr(relativeScale));
5038             if (NDalicPINVOKE.SWIGPendingException.Pending)
5039                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5040         }
5041
5042         internal Vector3 GetCurrentScale()
5043         {
5044             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentScale(swigCPtr), true);
5045             if (NDalicPINVOKE.SWIGPendingException.Pending)
5046                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5047             return ret;
5048         }
5049
5050         internal Vector3 GetCurrentWorldScale()
5051         {
5052             Vector3 ret = new Vector3(Interop.ActorInternal.Actor_GetCurrentWorldScale(swigCPtr), true);
5053             if (NDalicPINVOKE.SWIGPendingException.Pending)
5054                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5055             return ret;
5056         }
5057
5058         internal void SetInheritScale(bool inherit)
5059         {
5060             Interop.ActorInternal.Actor_SetInheritScale(swigCPtr, inherit);
5061             if (NDalicPINVOKE.SWIGPendingException.Pending)
5062                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5063         }
5064
5065         internal bool IsScaleInherited()
5066         {
5067             bool ret = Interop.ActorInternal.Actor_IsScaleInherited(swigCPtr);
5068             if (NDalicPINVOKE.SWIGPendingException.Pending)
5069                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5070             return ret;
5071         }
5072
5073         internal Matrix GetCurrentWorldMatrix()
5074         {
5075             Matrix ret = new Matrix(Interop.ActorInternal.Actor_GetCurrentWorldMatrix(swigCPtr), true);
5076             if (NDalicPINVOKE.SWIGPendingException.Pending)
5077                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5078             return ret;
5079         }
5080
5081         internal void SetVisible(bool visible)
5082         {
5083             Interop.Actor.Actor_SetVisible(swigCPtr, visible);
5084             if (NDalicPINVOKE.SWIGPendingException.Pending)
5085                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5086         }
5087
5088         internal bool IsVisible()
5089         {
5090             bool ret = Interop.ActorInternal.Actor_IsVisible(swigCPtr);
5091             if (NDalicPINVOKE.SWIGPendingException.Pending)
5092                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5093             return ret;
5094         }
5095
5096         internal void SetOpacity(float opacity)
5097         {
5098             Interop.ActorInternal.Actor_SetOpacity(swigCPtr, opacity);
5099             if (NDalicPINVOKE.SWIGPendingException.Pending)
5100                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5101         }
5102
5103         internal float GetCurrentOpacity()
5104         {
5105             float ret = Interop.ActorInternal.Actor_GetCurrentOpacity(swigCPtr);
5106             if (NDalicPINVOKE.SWIGPendingException.Pending)
5107                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5108             return ret;
5109         }
5110
5111         internal void SetColor(Vector4 color)
5112         {
5113             Interop.ActorInternal.Actor_SetColor(swigCPtr, Vector4.getCPtr(color));
5114             if (NDalicPINVOKE.SWIGPendingException.Pending)
5115                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5116         }
5117
5118         internal Vector4 GetCurrentColor()
5119         {
5120             Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentColor(swigCPtr), true);
5121             if (NDalicPINVOKE.SWIGPendingException.Pending)
5122                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5123             return ret;
5124         }
5125
5126         /// This will be public opened in next tizen after ACR done. Before ACR, need to be hidden as inhouse API.
5127         [EditorBrowsable(EditorBrowsableState.Never)]
5128         public void SetColorMode(ColorMode colorMode)
5129         {
5130             Interop.ActorInternal.Actor_SetColorMode(swigCPtr, (int)colorMode);
5131             if (NDalicPINVOKE.SWIGPendingException.Pending)
5132                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5133         }
5134
5135         internal ColorMode GetColorMode()
5136         {
5137             ColorMode ret = (ColorMode)Interop.ActorInternal.Actor_GetColorMode(swigCPtr);
5138             if (NDalicPINVOKE.SWIGPendingException.Pending)
5139                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5140             return ret;
5141         }
5142
5143         internal Vector4 GetCurrentWorldColor()
5144         {
5145             Vector4 ret = new Vector4(Interop.ActorInternal.Actor_GetCurrentWorldColor(swigCPtr), true);
5146             if (NDalicPINVOKE.SWIGPendingException.Pending)
5147                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5148             return ret;
5149         }
5150
5151         internal void SetDrawMode(DrawModeType drawMode)
5152         {
5153             Interop.ActorInternal.Actor_SetDrawMode(swigCPtr, (int)drawMode);
5154             if (NDalicPINVOKE.SWIGPendingException.Pending)
5155                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5156         }
5157
5158         internal DrawModeType GetDrawMode()
5159         {
5160             DrawModeType ret = (DrawModeType)Interop.ActorInternal.Actor_GetDrawMode(swigCPtr);
5161             if (NDalicPINVOKE.SWIGPendingException.Pending)
5162                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5163             return ret;
5164         }
5165
5166         internal void SetKeyboardFocusable(bool focusable)
5167         {
5168             Interop.ActorInternal.Actor_SetKeyboardFocusable(swigCPtr, focusable);
5169             if (NDalicPINVOKE.SWIGPendingException.Pending)
5170                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5171         }
5172
5173         internal bool IsKeyboardFocusable()
5174         {
5175             bool ret = Interop.ActorInternal.Actor_IsKeyboardFocusable(swigCPtr);
5176             if (NDalicPINVOKE.SWIGPendingException.Pending)
5177                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5178             return ret;
5179         }
5180
5181         internal void SetResizePolicy(ResizePolicyType policy, DimensionType dimension)
5182         {
5183             Interop.Actor.Actor_SetResizePolicy(swigCPtr, (int)policy, (int)dimension);
5184             if (NDalicPINVOKE.SWIGPendingException.Pending)
5185                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5186         }
5187
5188         internal ResizePolicyType GetResizePolicy(DimensionType dimension)
5189         {
5190             ResizePolicyType ret = (ResizePolicyType)Interop.Actor.Actor_GetResizePolicy(swigCPtr, (int)dimension);
5191             if (NDalicPINVOKE.SWIGPendingException.Pending)
5192                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5193             return ret;
5194         }
5195
5196         internal Vector3 GetSizeModeFactor()
5197         {
5198             Vector3 ret = new Vector3(Interop.Actor.Actor_GetSizeModeFactor(swigCPtr), true);
5199             if (NDalicPINVOKE.SWIGPendingException.Pending)
5200                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5201             return ret;
5202         }
5203
5204         internal void SetMinimumSize(Vector2 size)
5205         {
5206             Interop.ActorInternal.Actor_SetMinimumSize(swigCPtr, Vector2.getCPtr(size));
5207             if (NDalicPINVOKE.SWIGPendingException.Pending)
5208                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5209         }
5210
5211         internal Vector2 GetMinimumSize()
5212         {
5213             Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMinimumSize(swigCPtr), true);
5214             if (NDalicPINVOKE.SWIGPendingException.Pending)
5215                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5216             return ret;
5217         }
5218
5219         internal void SetMaximumSize(Vector2 size)
5220         {
5221             Interop.ActorInternal.Actor_SetMaximumSize(swigCPtr, Vector2.getCPtr(size));
5222             if (NDalicPINVOKE.SWIGPendingException.Pending)
5223                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5224         }
5225
5226         internal Vector2 GetMaximumSize()
5227         {
5228             Vector2 ret = new Vector2(Interop.ActorInternal.Actor_GetMaximumSize(swigCPtr), true);
5229             if (NDalicPINVOKE.SWIGPendingException.Pending)
5230                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5231             return ret;
5232         }
5233
5234         internal int GetHierarchyDepth()
5235         {
5236             int ret = Interop.Actor.Actor_GetHierarchyDepth(swigCPtr);
5237             if (NDalicPINVOKE.SWIGPendingException.Pending)
5238                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5239             return ret;
5240         }
5241
5242         internal uint GetRendererCount()
5243         {
5244             uint ret = Interop.Actor.Actor_GetRendererCount(swigCPtr);
5245             if (NDalicPINVOKE.SWIGPendingException.Pending)
5246                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5247             return ret;
5248         }
5249
5250         internal TouchDataSignal TouchSignal()
5251         {
5252             TouchDataSignal ret = new TouchDataSignal(Interop.ActorSignal.Actor_TouchSignal(swigCPtr), false);
5253             if (NDalicPINVOKE.SWIGPendingException.Pending)
5254                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5255             return ret;
5256         }
5257
5258         internal HoverSignal HoveredSignal()
5259         {
5260             HoverSignal ret = new HoverSignal(Interop.ActorSignal.Actor_HoveredSignal(swigCPtr), false);
5261             if (NDalicPINVOKE.SWIGPendingException.Pending)
5262                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5263             return ret;
5264         }
5265
5266         internal WheelSignal WheelEventSignal()
5267         {
5268             WheelSignal ret = new WheelSignal(Interop.ActorSignal.Actor_WheelEventSignal(swigCPtr), false);
5269             if (NDalicPINVOKE.SWIGPendingException.Pending)
5270                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5271             return ret;
5272         }
5273
5274         internal ViewSignal OnWindowSignal()
5275         {
5276             ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnStageSignal(swigCPtr), false);
5277             if (NDalicPINVOKE.SWIGPendingException.Pending)
5278                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5279             return ret;
5280         }
5281
5282         internal ViewSignal OffWindowSignal()
5283         {
5284             ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OffStageSignal(swigCPtr), false);
5285             if (NDalicPINVOKE.SWIGPendingException.Pending)
5286                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5287             return ret;
5288         }
5289
5290         internal ViewSignal OnRelayoutSignal()
5291         {
5292             ViewSignal ret = new ViewSignal(Interop.ActorSignal.Actor_OnRelayoutSignal(swigCPtr), false);
5293             if (NDalicPINVOKE.SWIGPendingException.Pending)
5294                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5295             return ret;
5296         }
5297
5298         internal ViewVisibilityChangedSignal VisibilityChangedSignal(View view)
5299         {
5300             ViewVisibilityChangedSignal ret = new ViewVisibilityChangedSignal(Interop.NDalic.VisibilityChangedSignal(View.getCPtr(view)), false);
5301             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5302             return ret;
5303         }
5304
5305         internal ViewLayoutDirectionChangedSignal LayoutDirectionChangedSignal(View view)
5306         {
5307             ViewLayoutDirectionChangedSignal ret = new ViewLayoutDirectionChangedSignal(Interop.Layout.LayoutDirectionChangedSignal(View.getCPtr(view)), false);
5308             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5309             return ret;
5310         }
5311
5312         internal ViewSignal ResourcesLoadedSignal()
5313         {
5314             ViewSignal ret = new ViewSignal(Interop.View.ResourceReadySignal(swigCPtr), false);
5315             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5316             return ret;
5317         }
5318
5319         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(View obj)
5320         {
5321             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
5322         }
5323
5324         internal bool IsTopLevelView()
5325         {
5326             if (GetParent() is Layer)
5327             {
5328                 return true;
5329             }
5330             return false;
5331         }
5332
5333         internal void SetKeyInputFocus()
5334         {
5335             Interop.ViewInternal.View_SetKeyInputFocus(swigCPtr);
5336             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5337         }
5338
5339         internal void ClearKeyInputFocus()
5340         {
5341             Interop.ViewInternal.View_ClearKeyInputFocus(swigCPtr);
5342             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5343         }
5344
5345         internal PinchGestureDetector GetPinchGestureDetector()
5346         {
5347             PinchGestureDetector ret = new PinchGestureDetector(Interop.ViewInternal.View_GetPinchGestureDetector(swigCPtr), true);
5348             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5349             return ret;
5350         }
5351
5352         internal PanGestureDetector GetPanGestureDetector()
5353         {
5354             PanGestureDetector ret = new PanGestureDetector(Interop.ViewInternal.View_GetPanGestureDetector(swigCPtr), true);
5355             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5356             return ret;
5357         }
5358
5359         internal TapGestureDetector GetTapGestureDetector()
5360         {
5361             TapGestureDetector ret = new TapGestureDetector(Interop.ViewInternal.View_GetTapGestureDetector(swigCPtr), true);
5362             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5363             return ret;
5364         }
5365
5366         internal LongPressGestureDetector GetLongPressGestureDetector()
5367         {
5368             LongPressGestureDetector ret = new LongPressGestureDetector(Interop.ViewInternal.View_GetLongPressGestureDetector(swigCPtr), true);
5369             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5370             return ret;
5371         }
5372
5373         internal ControlKeySignal KeyEventSignal()
5374         {
5375             ControlKeySignal ret = new ControlKeySignal(Interop.ViewSignal.View_KeyEventSignal(swigCPtr), false);
5376             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5377             return ret;
5378         }
5379
5380         internal KeyInputFocusSignal KeyInputFocusGainedSignal()
5381         {
5382             KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusGainedSignal(swigCPtr), false);
5383             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5384             return ret;
5385         }
5386
5387         internal KeyInputFocusSignal KeyInputFocusLostSignal()
5388         {
5389             KeyInputFocusSignal ret = new KeyInputFocusSignal(Interop.ViewSignal.View_KeyInputFocusLostSignal(swigCPtr), false);
5390             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5391             return ret;
5392         }
5393
5394         internal IntPtr GetPtrfromView()
5395         {
5396             return (IntPtr)swigCPtr;
5397         }
5398
5399         internal void RemoveChild(View child)
5400         {
5401             // Do actual child removal
5402             Interop.Actor.Actor_Remove(swigCPtr, View.getCPtr(child));
5403             if (NDalicPINVOKE.SWIGPendingException.Pending)
5404                 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
5405
5406             Children.Remove(child);
5407             child.InternalParent = null;
5408
5409             if (ChildRemoved != null)
5410             {
5411                 ChildRemovedEventArgs e = new ChildRemovedEventArgs
5412                 {
5413                     Removed = child
5414                 };
5415                 ChildRemoved(this, e);
5416             }
5417         }
5418
5419         /// <summary>
5420         /// Removes the layout from this View.
5421         /// </summary>
5422         internal void ResetLayout()
5423         {
5424             _layout = null;
5425         }
5426
5427         internal ResourceLoadingStatusType GetBackgroundResourceStatus()
5428         {
5429             return (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5430         }
5431
5432         /// <summary>
5433         /// you can override it to clean-up your own resources.
5434         /// </summary>
5435         /// <param name="type">DisposeTypes</param>
5436         /// <since_tizen> 3 </since_tizen>
5437         protected override void Dispose(DisposeTypes type)
5438         {
5439             if (disposed)
5440             {
5441                 return;
5442             }
5443
5444             //_mergedStyle = null;
5445
5446             //Release your own unmanaged resources here.
5447             //You should not access any managed member here except static instance.
5448             //because the execution order of Finalizes is non-deterministic.
5449             if (this != null)
5450             {
5451                 DisConnectFromSignals();
5452             }
5453
5454             if (swigCPtr.Handle != global::System.IntPtr.Zero)
5455             {
5456                 if (swigCMemOwn)
5457                 {
5458                     swigCMemOwn = false;
5459                     Interop.View.delete_View(swigCPtr);
5460                 }
5461                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
5462             }
5463
5464             foreach (View view in Children)
5465             {
5466                 view.InternalParent = null;
5467             }
5468
5469             base.Dispose(type);
5470
5471         }
5472
5473         private void OnSize2DChanged(int width, int height)
5474         {
5475             Size2D = new Size2D(width, height);
5476         }
5477
5478         private void OnMinimumSizeChanged(int width, int height)
5479         {
5480             MinimumSize = new Size2D(width, height);
5481         }
5482
5483         private void OnMaximumSizeChanged(int width, int height)
5484         {
5485             MaximumSize = new Size2D(width, height);
5486         }
5487
5488         private void OnPosition2DChanged(int x, int y)
5489         {
5490             Position2D = new Position2D(x, y);
5491         }
5492
5493         private void OnSizeChanged(float width, float height, float depth)
5494         {
5495             Size = new Size(width, height, depth);
5496         }
5497
5498         private void OnPositionChanged(float x, float y, float z)
5499         {
5500             Position = new Position(x, y, z);
5501         }
5502
5503         private void OnParentOriginChanged(float x, float y, float z)
5504         {
5505             ParentOrigin = new Position(x, y, z);
5506         }
5507
5508         private void OnPivotPointChanged(float x, float y, float z)
5509         {
5510             PivotPoint = new Position(x, y, z);
5511         }
5512
5513         private void DisConnectFromSignals()
5514         {
5515             // Save current CPtr.
5516             global::System.Runtime.InteropServices.HandleRef currentCPtr = swigCPtr;
5517
5518             // Use BaseHandle CPtr as current might have been deleted already in derived classes.
5519             swigCPtr = GetBaseHandleCPtrHandleRef;
5520
5521             if (_onRelayoutEventCallback != null)
5522             {
5523                 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5524             }
5525
5526             if (_offWindowEventCallback != null)
5527             {
5528                 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5529             }
5530
5531             if (_onWindowEventCallback != null)
5532             {
5533                 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5534             }
5535
5536             if (_wheelEventCallback != null)
5537             {
5538                 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5539             }
5540
5541             if (_hoverEventCallback != null)
5542             {
5543                 this.HoveredSignal().Disconnect(_hoverEventCallback);
5544             }
5545
5546             if (_touchDataCallback != null)
5547             {
5548                 this.TouchSignal().Disconnect(_touchDataCallback);
5549             }
5550
5551             if (_ResourcesLoadedCallback != null)
5552             {
5553                 this.ResourcesLoadedSignal().Disconnect(_ResourcesLoadedCallback);
5554             }
5555
5556             if (_offWindowEventCallback != null)
5557             {
5558                 this.OffWindowSignal().Disconnect(_offWindowEventCallback);
5559             }
5560
5561             if (_onWindowEventCallback != null)
5562             {
5563                 this.OnWindowSignal().Disconnect(_onWindowEventCallback);
5564             }
5565
5566             if (_wheelEventCallback != null)
5567             {
5568                 this.WheelEventSignal().Disconnect(_wheelEventCallback);
5569             }
5570
5571             if (_hoverEventCallback != null)
5572             {
5573                 this.HoveredSignal().Disconnect(_hoverEventCallback);
5574             }
5575
5576             if (_touchDataCallback != null)
5577             {
5578                 this.TouchSignal().Disconnect(_touchDataCallback);
5579             }
5580
5581             if (_onRelayoutEventCallback != null)
5582             {
5583                 this.OnRelayoutSignal().Disconnect(_onRelayoutEventCallback);
5584             }
5585
5586             if (_keyCallback != null)
5587             {
5588                 this.KeyEventSignal().Disconnect(_keyCallback);
5589             }
5590
5591             if (_keyInputFocusLostCallback != null)
5592             {
5593                 this.KeyInputFocusLostSignal().Disconnect(_keyInputFocusLostCallback);
5594             }
5595
5596             if (_keyInputFocusGainedCallback != null)
5597             {
5598                 this.KeyInputFocusGainedSignal().Disconnect(_keyInputFocusGainedCallback);
5599             }
5600
5601             if (_backgroundResourceLoadedCallback != null)
5602             {
5603                 this.ResourcesLoadedSignal().Disconnect(_backgroundResourceLoadedCallback);
5604             }
5605
5606             if (_onWindowSendEventCallback != null)
5607             {
5608                 this.OnWindowSignal().Disconnect(_onWindowSendEventCallback);
5609             }
5610
5611             // BaseHandle CPtr is used in Registry and there is danger of deletion if we keep using it here.
5612             // Restore current CPtr.
5613             swigCPtr = currentCPtr;
5614         }
5615
5616         private void OnKeyInputFocusGained(IntPtr view)
5617         {
5618             if (_keyInputFocusGainedEventHandler != null)
5619             {
5620                 _keyInputFocusGainedEventHandler(this, null);
5621             }
5622         }
5623
5624         private void OnKeyInputFocusLost(IntPtr view)
5625         {
5626             if (_keyInputFocusLostEventHandler != null)
5627             {
5628                 _keyInputFocusLostEventHandler(this, null);
5629             }
5630         }
5631
5632         private bool OnKeyEvent(IntPtr view, IntPtr keyEvent)
5633         {
5634             if (keyEvent == global::System.IntPtr.Zero)
5635             {
5636                 NUILog.Error("keyEvent should not be null!");
5637                 return true;
5638             }
5639
5640             KeyEventArgs e = new KeyEventArgs();
5641
5642             bool result = false;
5643
5644             e.Key = Tizen.NUI.Key.GetKeyFromPtr(keyEvent);
5645
5646             if (_keyEventHandler != null)
5647             {
5648                 Delegate[] delegateList = _keyEventHandler.GetInvocationList();
5649
5650                 // Oring the result of each callback.
5651                 foreach (EventHandlerWithReturnType<object, KeyEventArgs, bool> del in delegateList)
5652                 {
5653                     result |= del(this, e);
5654                 }
5655             }
5656
5657             return result;
5658         }
5659
5660         // Callback for View OnRelayout signal
5661         private void OnRelayout(IntPtr data)
5662         {
5663             if (_onRelayoutEventHandler != null)
5664             {
5665                 _onRelayoutEventHandler(this, null);
5666             }
5667         }
5668
5669         // Callback for View TouchSignal
5670         private bool OnTouch(IntPtr view, IntPtr touchData)
5671         {
5672             if (touchData == global::System.IntPtr.Zero)
5673             {
5674                 NUILog.Error("touchData should not be null!");
5675                 return true;
5676             }
5677
5678             TouchEventArgs e = new TouchEventArgs();
5679
5680             e.Touch = Tizen.NUI.Touch.GetTouchFromPtr(touchData);
5681
5682             if (_touchDataEventHandler != null)
5683             {
5684                 return _touchDataEventHandler(this, e);
5685             }
5686             return false;
5687         }
5688
5689         // Callback for View Hover signal
5690         private bool OnHoverEvent(IntPtr view, IntPtr hoverEvent)
5691         {
5692             if (hoverEvent == global::System.IntPtr.Zero)
5693             {
5694                 NUILog.Error("hoverEvent should not be null!");
5695                 return true;
5696             }
5697
5698             HoverEventArgs e = new HoverEventArgs();
5699
5700             e.Hover = Tizen.NUI.Hover.GetHoverFromPtr(hoverEvent);
5701
5702             if (_hoverEventHandler != null)
5703             {
5704                 return _hoverEventHandler(this, e);
5705             }
5706             return false;
5707         }
5708
5709         // Callback for View Wheel signal
5710         private bool OnWheelEvent(IntPtr view, IntPtr wheelEvent)
5711         {
5712             if (wheelEvent == global::System.IntPtr.Zero)
5713             {
5714                 NUILog.Error("wheelEvent should not be null!");
5715                 return true;
5716             }
5717
5718             WheelEventArgs e = new WheelEventArgs();
5719
5720             e.Wheel = Tizen.NUI.Wheel.GetWheelFromPtr(wheelEvent);
5721
5722             if (_wheelEventHandler != null)
5723             {
5724                 return _wheelEventHandler(this, e);
5725             }
5726             return false;
5727         }
5728
5729         // Callback for View OnWindow signal
5730         private void OnWindow(IntPtr data)
5731         {
5732             if (_onWindowEventHandler != null)
5733             {
5734                 _onWindowEventHandler(this, null);
5735             }
5736         }
5737
5738         // Callback for View OffWindow signal
5739         private void OffWindow(IntPtr data)
5740         {
5741             if (_offWindowEventHandler != null)
5742             {
5743                 _offWindowEventHandler(this, null);
5744             }
5745         }
5746
5747         // Callback for View visibility change signal
5748         private void OnVisibilityChanged(IntPtr data, bool visibility, VisibilityChangeType type)
5749         {
5750             VisibilityChangedEventArgs e = new VisibilityChangedEventArgs();
5751             if (data != null)
5752             {
5753                 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5754             }
5755             e.Visibility = visibility;
5756             e.Type = type;
5757
5758             if (_visibilityChangedEventHandler != null)
5759             {
5760                 _visibilityChangedEventHandler(this, e);
5761             }
5762         }
5763
5764         // Callback for View layout direction change signal
5765         private void OnLayoutDirectionChanged(IntPtr data, ViewLayoutDirectionType type)
5766         {
5767             LayoutDirectionChangedEventArgs e = new LayoutDirectionChangedEventArgs();
5768             if (data != null)
5769             {
5770                 e.View = Registry.GetManagedBaseHandleFromNativePtr(data) as View;
5771             }
5772             e.Type = type;
5773
5774             if (_layoutDirectionChangedEventHandler != null)
5775             {
5776                 _layoutDirectionChangedEventHandler(this, e);
5777             }
5778         }
5779
5780         private void OnResourcesLoaded(IntPtr view)
5781         {
5782             if (_resourcesLoadedEventHandler != null)
5783             {
5784                 _resourcesLoadedEventHandler(this, null);
5785             }
5786         }
5787
5788         private View ConvertIdToView(uint id)
5789         {
5790             View view = GetParent()?.FindCurrentChildById(id);
5791
5792             //If we can't find the parent's children, find in the top layer.
5793             if (!view)
5794             {
5795                 Container parent = GetParent();
5796                 while ((parent is View) && (parent != null))
5797                 {
5798                     parent = parent.GetParent();
5799                     if (parent is Layer)
5800                     {
5801                         view = parent.FindCurrentChildById(id);
5802                         break;
5803                     }
5804                 }
5805             }
5806
5807             return view;
5808         }
5809
5810         private void OnBackgroundResourceLoaded(IntPtr view)
5811         {
5812             BackgroundResourceLoadedEventArgs e = new BackgroundResourceLoadedEventArgs();
5813             e.Status = (ResourceLoadingStatusType)Interop.View.View_GetVisualResourceStatus(this.swigCPtr, Property.BACKGROUND);
5814
5815             if (_backgroundResourceLoadedEventHandler != null)
5816             {
5817                 _backgroundResourceLoadedEventHandler(this, e);
5818             }
5819         }
5820
5821         /// <summary>
5822         /// Event argument passed through the ChildAdded event.
5823         /// </summary>
5824         /// <since_tizen> 5 </since_tizen>
5825         public class ChildAddedEventArgs : EventArgs
5826         {
5827             /// <summary>
5828             /// Added child view at moment.
5829             /// </summary>
5830             /// <since_tizen> 5 </since_tizen>
5831             public View Added { get; set; }
5832         }
5833
5834         /// <summary>
5835         /// Event argument passed through the ChildRemoved event.
5836         /// </summary>
5837         /// <since_tizen> 5 </since_tizen>
5838         public class ChildRemovedEventArgs : EventArgs
5839         {
5840             /// <summary>
5841             /// Removed child view at moment.
5842             /// </summary>
5843             /// <since_tizen> 5 </since_tizen>
5844             public View Removed { get; set; }
5845         }
5846
5847         /// <summary>
5848         /// Event arguments that passed via the KeyEvent signal.
5849         /// </summary>
5850         /// <since_tizen> 3 </since_tizen>
5851         public class KeyEventArgs : EventArgs
5852         {
5853             private Key _key;
5854
5855             /// <summary>
5856             /// Key - is the key sent to the view.
5857             /// </summary>
5858             /// <since_tizen> 3 </since_tizen>
5859             public Key Key
5860             {
5861                 get
5862                 {
5863                     return _key;
5864                 }
5865                 set
5866                 {
5867                     _key = value;
5868                 }
5869             }
5870         }
5871
5872         /// <summary>
5873         /// Event arguments that passed via the touch signal.
5874         /// </summary>
5875         /// <since_tizen> 3 </since_tizen>
5876         public class TouchEventArgs : EventArgs
5877         {
5878             private Touch _touch;
5879
5880             /// <summary>
5881             /// Touch - contains the information of touch points.
5882             /// </summary>
5883             /// <since_tizen> 3 </since_tizen>
5884             public Touch Touch
5885             {
5886                 get
5887                 {
5888                     return _touch;
5889                 }
5890                 set
5891                 {
5892                     _touch = value;
5893                 }
5894             }
5895         }
5896
5897         /// <summary>
5898         /// Event arguments that passed via the hover signal.
5899         /// </summary>
5900         /// <since_tizen> 3 </since_tizen>
5901         public class HoverEventArgs : EventArgs
5902         {
5903             private Hover _hover;
5904
5905             /// <summary>
5906             /// Hover - contains touch points that represent the points that are currently being hovered or the points where a hover has stopped.
5907             /// </summary>
5908             /// <since_tizen> 3 </since_tizen>
5909             public Hover Hover
5910             {
5911                 get
5912                 {
5913                     return _hover;
5914                 }
5915                 set
5916                 {
5917                     _hover = value;
5918                 }
5919             }
5920         }
5921
5922         /// <summary>
5923         /// Event arguments that passed via the wheel signal.
5924         /// </summary>
5925         /// <since_tizen> 3 </since_tizen>
5926         public class WheelEventArgs : EventArgs
5927         {
5928             private Wheel _wheel;
5929
5930             /// <summary>
5931             /// WheelEvent - store a wheel rolling type: MOUSE_WHEEL or CUSTOM_WHEEL.
5932             /// </summary>
5933             /// <since_tizen> 3 </since_tizen>
5934             public Wheel Wheel
5935             {
5936                 get
5937                 {
5938                     return _wheel;
5939                 }
5940                 set
5941                 {
5942                     _wheel = value;
5943                 }
5944             }
5945         }
5946
5947         /// <summary>
5948         /// Event arguments of visibility changed.
5949         /// </summary>
5950         /// <since_tizen> 3 </since_tizen>
5951         public class VisibilityChangedEventArgs : EventArgs
5952         {
5953             private View _view;
5954             private bool _visibility;
5955             private VisibilityChangeType _type;
5956
5957             /// <summary>
5958             /// The view, or child of view, whose visibility has changed.
5959             /// </summary>
5960             /// <since_tizen> 3 </since_tizen>
5961             public View View
5962             {
5963                 get
5964                 {
5965                     return _view;
5966                 }
5967                 set
5968                 {
5969                     _view = value;
5970                 }
5971             }
5972
5973             /// <summary>
5974             /// Whether the view is now visible or not.
5975             /// </summary>
5976             /// <since_tizen> 3 </since_tizen>
5977             public bool Visibility
5978             {
5979                 get
5980                 {
5981                     return _visibility;
5982                 }
5983                 set
5984                 {
5985                     _visibility = value;
5986                 }
5987             }
5988
5989             /// <summary>
5990             /// Whether the view's visible property has changed or a parent's.
5991             /// </summary>
5992             /// <since_tizen> 3 </since_tizen>
5993             public VisibilityChangeType Type
5994             {
5995                 get
5996                 {
5997                     return _type;
5998                 }
5999                 set
6000                 {
6001                     _type = value;
6002                 }
6003             }
6004         }
6005
6006         /// <summary>
6007         /// Event arguments of layout direction changed.
6008         /// </summary>
6009         /// <since_tizen> 4 </since_tizen>
6010         public class LayoutDirectionChangedEventArgs : EventArgs
6011         {
6012             private View _view;
6013             private ViewLayoutDirectionType _type;
6014
6015             /// <summary>
6016             /// The view, or child of view, whose layout direction has changed.
6017             /// </summary>
6018             /// <since_tizen> 4 </since_tizen>
6019             public View View
6020             {
6021                 get
6022                 {
6023                     return _view;
6024                 }
6025                 set
6026                 {
6027                     _view = value;
6028                 }
6029             }
6030
6031             /// <summary>
6032             /// Whether the view's layout direction property has changed or a parent's.
6033             /// </summary>
6034             /// <since_tizen> 4 </since_tizen>
6035             public ViewLayoutDirectionType Type
6036             {
6037                 get
6038                 {
6039                     return _type;
6040                 }
6041                 set
6042                 {
6043                     _type = value;
6044                 }
6045             }
6046         }
6047
6048         /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
6049         [EditorBrowsable(EditorBrowsableState.Never)]
6050         public Vector2 UpdateSizeHint
6051         {
6052             get
6053             {
6054                 return (Vector2)GetValue(UpdateSizeHintProperty);
6055             }
6056             set
6057             {
6058                 SetValue(UpdateSizeHintProperty, value);
6059                 NotifyPropertyChanged();
6060             }
6061         }
6062
6063         private Dictionary<string, Transition> transDictionary = new Dictionary<string, Transition>();
6064
6065         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6066         [EditorBrowsable(EditorBrowsableState.Never)]
6067         public Transition GetTransition(string transitionName)
6068         {
6069             Transition trans = null;
6070             transDictionary.TryGetValue(transitionName, out trans);
6071             return trans;
6072         }
6073
6074         private void LoadTransitions()
6075         {
6076             foreach (string str in transitionNames)
6077             {
6078                 string resourceName = str + ".xaml";
6079                 Transition trans = null;
6080
6081                 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
6082
6083                 string likelyResourcePath = resource + "animation/" + resourceName;
6084
6085                 if (File.Exists(likelyResourcePath))
6086                 {
6087                     trans = Extensions.LoadObject<Transition>(likelyResourcePath);
6088                 }
6089                 if (trans)
6090                 {
6091                     transDictionary.Add(trans.Name, trans);
6092                 }
6093             }
6094         }
6095
6096         /// This will be public opened in tizen_next after ACR done. Before ACR, need to be hidden as inhouse API.
6097         [EditorBrowsable(EditorBrowsableState.Never)]
6098         public string[] TransitionNames
6099         {
6100             get
6101             {
6102                 return transitionNames;
6103             }
6104             set
6105             {
6106                 transitionNames = value;
6107                 LoadTransitions();
6108             }
6109         }
6110         private string[] transitionNames;
6111
6112         internal class BackgroundResourceLoadedEventArgs : EventArgs
6113         {
6114             private ResourceLoadingStatusType status = ResourceLoadingStatusType.Invalid;
6115             public ResourceLoadingStatusType Status
6116             {
6117                 get
6118                 {
6119                     return status;
6120                 }
6121                 set
6122                 {
6123                     status = value;
6124                 }
6125             }
6126         }
6127
6128         internal class Property
6129         {
6130             internal static readonly int TOOLTIP = Interop.ViewProperty.View_Property_TOOLTIP_get();
6131             internal static readonly int STATE = Interop.ViewProperty.View_Property_STATE_get();
6132             internal static readonly int SUB_STATE = Interop.ViewProperty.View_Property_SUB_STATE_get();
6133             internal static readonly int LEFT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_LEFT_FOCUSABLE_ACTOR_ID_get();
6134             internal static readonly int RIGHT_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_RIGHT_FOCUSABLE_ACTOR_ID_get();
6135             internal static readonly int UP_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_UP_FOCUSABLE_ACTOR_ID_get();
6136             internal static readonly int DOWN_FOCUSABLE_VIEW_ID = Interop.ViewProperty.View_Property_DOWN_FOCUSABLE_ACTOR_ID_get();
6137             internal static readonly int STYLE_NAME = Interop.ViewProperty.View_Property_STYLE_NAME_get();
6138             internal static readonly int BACKGROUND = Interop.ViewProperty.View_Property_BACKGROUND_get();
6139             internal static readonly int SIBLING_ORDER = Interop.ActorProperty.Actor_Property_SIBLING_ORDER_get();
6140             internal static readonly int OPACITY = Interop.ActorProperty.Actor_Property_OPACITY_get();
6141             internal static readonly int SCREEN_POSITION = Interop.ActorProperty.Actor_Property_SCREEN_POSITION_get();
6142             internal static readonly int POSITION_USES_ANCHOR_POINT = Interop.ActorProperty.Actor_Property_POSITION_USES_ANCHOR_POINT_get();
6143             internal static readonly int PARENT_ORIGIN = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_get();
6144             internal static readonly int PARENT_ORIGIN_X = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_X_get();
6145             internal static readonly int PARENT_ORIGIN_Y = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Y_get();
6146             internal static readonly int PARENT_ORIGIN_Z = Interop.ActorProperty.Actor_Property_PARENT_ORIGIN_Z_get();
6147             internal static readonly int ANCHOR_POINT = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_get();
6148             internal static readonly int ANCHOR_POINT_X = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_X_get();
6149             internal static readonly int ANCHOR_POINT_Y = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Y_get();
6150             internal static readonly int ANCHOR_POINT_Z = Interop.ActorProperty.Actor_Property_ANCHOR_POINT_Z_get();
6151             internal static readonly int SIZE = Interop.ActorProperty.Actor_Property_SIZE_get();
6152             internal static readonly int SIZE_WIDTH = Interop.ActorProperty.Actor_Property_SIZE_WIDTH_get();
6153             internal static readonly int SIZE_HEIGHT = Interop.ActorProperty.Actor_Property_SIZE_HEIGHT_get();
6154             internal static readonly int SIZE_DEPTH = Interop.ActorProperty.Actor_Property_SIZE_DEPTH_get();
6155             internal static readonly int POSITION = Interop.ActorProperty.Actor_Property_POSITION_get();
6156             internal static readonly int POSITION_X = Interop.ActorProperty.Actor_Property_POSITION_X_get();
6157             internal static readonly int POSITION_Y = Interop.ActorProperty.Actor_Property_POSITION_Y_get();
6158             internal static readonly int POSITION_Z = Interop.ActorProperty.Actor_Property_POSITION_Z_get();
6159             internal static readonly int WORLD_POSITION = Interop.ActorProperty.Actor_Property_WORLD_POSITION_get();
6160             internal static readonly int WORLD_POSITION_X = Interop.ActorProperty.Actor_Property_WORLD_POSITION_X_get();
6161             internal static readonly int WORLD_POSITION_Y = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Y_get();
6162             internal static readonly int WORLD_POSITION_Z = Interop.ActorProperty.Actor_Property_WORLD_POSITION_Z_get();
6163             internal static readonly int ORIENTATION = Interop.ActorProperty.Actor_Property_ORIENTATION_get();
6164             internal static readonly int WORLD_ORIENTATION = Interop.ActorProperty.Actor_Property_WORLD_ORIENTATION_get();
6165             internal static readonly int SCALE = Interop.ActorProperty.Actor_Property_SCALE_get();
6166             internal static readonly int SCALE_X = Interop.ActorProperty.Actor_Property_SCALE_X_get();
6167             internal static readonly int SCALE_Y = Interop.ActorProperty.Actor_Property_SCALE_Y_get();
6168             internal static readonly int SCALE_Z = Interop.ActorProperty.Actor_Property_SCALE_Z_get();
6169             internal static readonly int WORLD_SCALE = Interop.ActorProperty.Actor_Property_WORLD_SCALE_get();
6170             internal static readonly int VISIBLE = Interop.ActorProperty.Actor_Property_VISIBLE_get();
6171             internal static readonly int WORLD_COLOR = Interop.ActorProperty.Actor_Property_WORLD_COLOR_get();
6172             internal static readonly int WORLD_MATRIX = Interop.ActorProperty.Actor_Property_WORLD_MATRIX_get();
6173             internal static readonly int NAME = Interop.ActorProperty.Actor_Property_NAME_get();
6174             internal static readonly int SENSITIVE = Interop.ActorProperty.Actor_Property_SENSITIVE_get();
6175             internal static readonly int LEAVE_REQUIRED = Interop.ActorProperty.Actor_Property_LEAVE_REQUIRED_get();
6176             internal static readonly int INHERIT_ORIENTATION = Interop.ActorProperty.Actor_Property_INHERIT_ORIENTATION_get();
6177             internal static readonly int INHERIT_SCALE = Interop.ActorProperty.Actor_Property_INHERIT_SCALE_get();
6178             internal static readonly int DRAW_MODE = Interop.ActorProperty.Actor_Property_DRAW_MODE_get();
6179             internal static readonly int SIZE_MODE_FACTOR = Interop.ActorProperty.Actor_Property_SIZE_MODE_FACTOR_get();
6180             internal static readonly int WIDTH_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_WIDTH_RESIZE_POLICY_get();
6181             internal static readonly int HEIGHT_RESIZE_POLICY = Interop.ActorProperty.Actor_Property_HEIGHT_RESIZE_POLICY_get();
6182             internal static readonly int SIZE_SCALE_POLICY = Interop.ActorProperty.Actor_Property_SIZE_SCALE_POLICY_get();
6183             internal static readonly int WIDTH_FOR_HEIGHT = Interop.ActorProperty.Actor_Property_WIDTH_FOR_HEIGHT_get();
6184             internal static readonly int HEIGHT_FOR_WIDTH = Interop.ActorProperty.Actor_Property_HEIGHT_FOR_WIDTH_get();
6185             internal static readonly int MINIMUM_SIZE = Interop.ActorProperty.Actor_Property_MINIMUM_SIZE_get();
6186             internal static readonly int MAXIMUM_SIZE = Interop.ActorProperty.Actor_Property_MAXIMUM_SIZE_get();
6187             internal static readonly int INHERIT_POSITION = Interop.ActorProperty.Actor_Property_INHERIT_POSITION_get();
6188             internal static readonly int CLIPPING_MODE = Interop.ActorProperty.Actor_Property_CLIPPING_MODE_get();
6189             internal static readonly int INHERIT_LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_INHERIT_LAYOUT_DIRECTION_get();
6190             internal static readonly int LAYOUT_DIRECTION = Interop.ActorProperty.Actor_Property_LAYOUT_DIRECTION_get();
6191             internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get();
6192             internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get();
6193         }
6194     }
6195 }