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