2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.BaseComponents
24 /// View is the base class for all views.
26 /// <since_tizen> 3 </since_tizen>
27 public partial class View
29 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
30 [EditorBrowsable(EditorBrowsableState.Never)]
31 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
33 var view = (View)bindable;
36 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
39 defaultValueCreator: (bindable) =>
41 var view = (View)bindable;
43 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
46 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
47 [EditorBrowsable(EditorBrowsableState.Never)]
48 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
50 var view = (View)bindable;
53 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
56 defaultValueCreator: (bindable) =>
58 var view = (View)bindable;
59 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
61 Tizen.NUI.PropertyMap background = view.Background;
63 background.Find(Visual.Property.Type)?.Get(out visualType);
64 if (visualType == (int)Visual.Type.Color)
66 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
69 return backgroundColor;
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 BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
75 var view = (View)bindable;
78 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
79 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
82 defaultValueCreator: (bindable) =>
84 var view = (View)bindable;
85 string backgroundImage = "";
87 Tizen.NUI.PropertyMap background = view.Background;
89 background.Find(Visual.Property.Type)?.Get(out visualType);
90 if (visualType == (int)Visual.Type.Image)
92 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
95 return backgroundImage;
97 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
98 [EditorBrowsable(EditorBrowsableState.Never)]
99 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
101 var view = (View)bindable;
102 if (newValue != null)
104 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
107 defaultValueCreator: (bindable) =>
109 var view = (View)bindable;
110 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
111 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
114 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
115 [EditorBrowsable(EditorBrowsableState.Never)]
116 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
118 var view = (View)bindable;
119 if (newValue != null)
121 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
124 defaultValueCreator: (bindable) =>
126 var view = (View)bindable;
128 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
130 NUILog.Error("State get error!");
134 case 0: return States.Normal;
135 case 1: return States.Focused;
136 case 2: return States.Disabled;
137 default: return States.Normal;
140 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
141 [EditorBrowsable(EditorBrowsableState.Never)]
142 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
144 var view = (View)bindable;
145 string valueToString = "";
146 if (newValue != null)
148 switch ((States)newValue)
150 case States.Normal: { valueToString = "NORMAL"; break; }
151 case States.Focused: { valueToString = "FOCUSED"; break; }
152 case States.Disabled: { valueToString = "DISABLED"; break; }
153 default: { valueToString = "NORMAL"; break; }
155 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
158 defaultValueCreator: (bindable) =>
160 var view = (View)bindable;
162 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
164 NUILog.Error("subState get error!");
168 case "NORMAL": return States.Normal;
169 case "FOCUSED": return States.Focused;
170 case "DISABLED": return States.Disabled;
171 default: return States.Normal;
174 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
175 [EditorBrowsable(EditorBrowsableState.Never)]
176 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
178 var view = (View)bindable;
179 if (newValue != null)
181 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
184 defaultValueCreator: (bindable) =>
186 var view = (View)bindable;
187 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
188 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
192 /// Only for XAML property binding. No need to open as public. (keep as Hidden/InhouseAPI)
193 [EditorBrowsable(EditorBrowsableState.Never)]
194 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
196 var view = (View)bindable;
197 if (newValue != null)
199 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
202 defaultValueCreator: (bindable) =>
204 var view = (View)bindable;
206 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
210 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
211 [EditorBrowsable(EditorBrowsableState.Never)]
212 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
214 var view = (View)bindable;
215 if (newValue != null)
217 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
220 defaultValueCreator: (bindable) =>
222 var view = (View)bindable;
224 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
227 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
228 [EditorBrowsable(EditorBrowsableState.Never)]
229 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
231 var view = (View)bindable;
232 if (newValue != null)
234 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
237 defaultValueCreator: (bindable) =>
239 var view = (View)bindable;
240 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
241 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
244 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
245 [EditorBrowsable(EditorBrowsableState.Never)]
246 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
248 var view = (View)bindable;
249 if (newValue != null)
251 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
254 defaultValueCreator: (bindable) =>
256 var view = (View)bindable;
257 Vector2 temp = new Vector2(0.0f, 0.0f);
258 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
261 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
262 [EditorBrowsable(EditorBrowsableState.Never)]
263 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
265 var view = (View)bindable;
266 if (newValue != null)
268 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
271 defaultValueCreator: (bindable) =>
273 var view = (View)bindable;
275 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
278 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
279 [EditorBrowsable(EditorBrowsableState.Never)]
280 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
282 var view = (View)bindable;
283 if (newValue != null)
285 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
288 defaultValueCreator: (bindable) =>
290 var view = (View)bindable;
292 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
295 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
296 [EditorBrowsable(EditorBrowsableState.Never)]
297 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
299 var view = (View)bindable;
300 string valueToString = "";
302 if (newValue != null)
304 switch ((HorizontalAlignmentType)newValue)
306 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
307 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
308 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
309 default: { valueToString = "left"; break; }
311 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
314 defaultValueCreator: (bindable) =>
316 var view = (View)bindable;
318 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
320 NUILog.Error("CellHorizontalAlignment get error!");
325 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
326 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
327 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
328 default: return Tizen.NUI.HorizontalAlignmentType.Left;
331 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
332 [EditorBrowsable(EditorBrowsableState.Never)]
333 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
335 var view = (View)bindable;
336 string valueToString = "";
338 if (newValue != null)
340 switch ((VerticalAlignmentType)newValue)
342 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
343 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
344 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
345 default: { valueToString = "top"; break; }
347 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
350 defaultValueCreator: (bindable) =>
352 var view = (View)bindable;
354 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
356 NUILog.Error("CellVerticalAlignment get error!");
361 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
362 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
363 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
364 default: return Tizen.NUI.VerticalAlignmentType.Top;
369 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
370 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
372 [EditorBrowsable(EditorBrowsableState.Never)]
373 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
375 var view = (View)bindable;
376 if (newValue != null)
378 view.Weight = (float)newValue;
382 defaultValueCreator: (bindable) =>
384 var view = (View)bindable;
388 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
389 [EditorBrowsable(EditorBrowsableState.Never)]
390 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
392 var view = (View)bindable;
393 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
394 else { view.LeftFocusableViewId = -1; }
396 defaultValueCreator: (bindable) =>
398 var view = (View)bindable;
399 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
402 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
403 [EditorBrowsable(EditorBrowsableState.Never)]
404 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
406 var view = (View)bindable;
407 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
408 else { view.RightFocusableViewId = -1; }
410 defaultValueCreator: (bindable) =>
412 var view = (View)bindable;
413 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
416 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
417 [EditorBrowsable(EditorBrowsableState.Never)]
418 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
420 var view = (View)bindable;
421 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
422 else { view.UpFocusableViewId = -1; }
424 defaultValueCreator: (bindable) =>
426 var view = (View)bindable;
427 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
430 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
431 [EditorBrowsable(EditorBrowsableState.Never)]
432 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
434 var view = (View)bindable;
435 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
436 else { view.DownFocusableViewId = -1; }
438 defaultValueCreator: (bindable) =>
440 var view = (View)bindable;
441 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
444 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
445 [EditorBrowsable(EditorBrowsableState.Never)]
446 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
448 var view = (View)bindable;
449 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
451 defaultValueCreator: (bindable) =>
453 var view = (View)bindable;
454 return view.IsKeyboardFocusable();
456 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
457 [EditorBrowsable(EditorBrowsableState.Never)]
458 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
460 var view = (View)bindable;
461 if (newValue != null)
463 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
466 defaultValueCreator: (bindable) =>
468 var view = (View)bindable;
469 Size temp = new Size(0.0f, 0.0f, 0.0f);
470 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
471 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
474 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
475 [EditorBrowsable(EditorBrowsableState.Never)]
476 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
478 var view = (View)bindable;
479 if (newValue != null)
481 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
484 defaultValueCreator: (bindable) =>
486 var view = (View)bindable;
488 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
491 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
492 [EditorBrowsable(EditorBrowsableState.Never)]
493 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
495 var view = (View)bindable;
496 if (newValue != null)
498 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
501 defaultValueCreator: (bindable) =>
503 var view = (View)bindable;
504 Position temp = new Position(0.0f, 0.0f, 0.0f);
505 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
506 return new Position2D(temp);
508 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
509 [EditorBrowsable(EditorBrowsableState.Never)]
510 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
512 var view = (View)bindable;
513 if (newValue != null)
515 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
518 defaultValueCreator: (bindable) =>
520 var view = (View)bindable;
522 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
525 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
529 var view = (View)bindable;
531 if (newValue != null)
533 value = (int)newValue;
536 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
539 var siblings = view.GetParent()?.Children;
540 if (siblings != null)
542 int currentOrder = siblings.IndexOf(view);
543 if (value != currentOrder)
545 if (value == 0) { view.LowerToBottom(); }
546 else if (value < siblings.Count - 1)
548 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
549 else { view.LowerBelow(siblings[value]); }
551 else { view.RaiseToTop(); }
556 defaultValueCreator: (bindable) =>
558 var view = (View)bindable;
559 var parentChildren = view.GetParent()?.Children;
560 int currentOrder = 0;
561 if (parentChildren != null)
563 currentOrder = parentChildren.IndexOf(view);
565 if (currentOrder < 0) { return 0; }
566 else if (currentOrder < parentChildren.Count) { return currentOrder; }
571 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
572 [EditorBrowsable(EditorBrowsableState.Never)]
573 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
575 var view = (View)bindable;
576 if (newValue != null)
578 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
581 defaultValueCreator: (bindable) =>
583 var view = (View)bindable;
584 Position temp = new Position(0.0f, 0.0f, 0.0f);
585 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
589 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
590 [EditorBrowsable(EditorBrowsableState.Never)]
591 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
593 var view = (View)bindable;
594 if (newValue != null)
596 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
599 defaultValueCreator: (bindable) =>
601 var view = (View)bindable;
602 Position temp = new Position(0.0f, 0.0f, 0.0f);
603 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
606 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
607 [EditorBrowsable(EditorBrowsableState.Never)]
608 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
610 var view = (View)bindable;
611 if (newValue != null)
613 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
616 defaultValueCreator: (bindable) =>
618 var view = (View)bindable;
620 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
623 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
624 [EditorBrowsable(EditorBrowsableState.Never)]
625 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
627 var view = (View)bindable;
628 if (newValue != null)
630 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
633 defaultValueCreator: (bindable) =>
635 var view = (View)bindable;
637 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
640 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
641 [EditorBrowsable(EditorBrowsableState.Never)]
642 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
644 var view = (View)bindable;
645 if (newValue != null)
647 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
650 defaultValueCreator: (bindable) =>
652 var view = (View)bindable;
653 Position temp = new Position(0.0f, 0.0f, 0.0f);
654 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
657 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
658 [EditorBrowsable(EditorBrowsableState.Never)]
659 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
661 var view = (View)bindable;
662 if (newValue != null)
664 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
667 defaultValueCreator: (bindable) =>
669 var view = (View)bindable;
671 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
674 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
675 [EditorBrowsable(EditorBrowsableState.Never)]
676 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
678 var view = (View)bindable;
679 if (newValue != null)
681 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
684 defaultValueCreator: (bindable) =>
686 var view = (View)bindable;
688 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
691 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
692 [EditorBrowsable(EditorBrowsableState.Never)]
693 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
695 var view = (View)bindable;
696 if (newValue != null)
698 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
701 defaultValueCreator: (bindable) =>
703 var view = (View)bindable;
705 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
708 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
709 [EditorBrowsable(EditorBrowsableState.Never)]
710 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
712 var view = (View)bindable;
713 if (newValue != null)
715 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
718 defaultValueCreator: (bindable) =>
720 var view = (View)bindable;
721 Rotation temp = new Rotation();
722 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
725 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
726 [EditorBrowsable(EditorBrowsableState.Never)]
727 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
729 var view = (View)bindable;
730 if (newValue != null)
732 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
735 defaultValueCreator: (bindable) =>
737 var view = (View)bindable;
738 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
739 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
742 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
743 [EditorBrowsable(EditorBrowsableState.Never)]
744 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
746 var view = (View)bindable;
747 if (newValue != null)
749 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
752 defaultValueCreator: (bindable) =>
754 var view = (View)bindable;
756 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
759 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
760 [EditorBrowsable(EditorBrowsableState.Never)]
761 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
763 var view = (View)bindable;
764 if (newValue != null)
766 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
769 defaultValueCreator: (bindable) =>
771 var view = (View)bindable;
773 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
776 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
777 [EditorBrowsable(EditorBrowsableState.Never)]
778 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
780 var view = (View)bindable;
781 if (newValue != null)
783 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
786 defaultValueCreator: (bindable) =>
788 var view = (View)bindable;
790 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
793 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
794 [EditorBrowsable(EditorBrowsableState.Never)]
795 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
797 var view = (View)bindable;
798 if (newValue != null)
800 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
803 defaultValueCreator: (bindable) =>
805 var view = (View)bindable;
807 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
810 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
811 [EditorBrowsable(EditorBrowsableState.Never)]
812 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
814 var view = (View)bindable;
815 if (newValue != null)
817 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
820 defaultValueCreator: (bindable) =>
822 var view = (View)bindable;
824 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
827 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
828 [EditorBrowsable(EditorBrowsableState.Never)]
829 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
831 var view = (View)bindable;
832 if (newValue != null)
834 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
837 defaultValueCreator: (bindable) =>
839 var view = (View)bindable;
841 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
844 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
845 [EditorBrowsable(EditorBrowsableState.Never)]
846 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
848 var view = (View)bindable;
849 if (newValue != null)
851 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
854 defaultValueCreator: (bindable) =>
856 var view = (View)bindable;
858 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
861 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
862 [EditorBrowsable(EditorBrowsableState.Never)]
863 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
865 var view = (View)bindable;
866 if (newValue != null)
868 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
871 defaultValueCreator: (bindable) =>
873 var view = (View)bindable;
875 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
878 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
879 [EditorBrowsable(EditorBrowsableState.Never)]
880 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
882 var view = (View)bindable;
883 if (newValue != null)
885 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
888 defaultValueCreator: (bindable) =>
890 var view = (View)bindable;
892 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
894 NUILog.Error("DrawMode get error!");
898 case "NORMAL": return DrawModeType.Normal;
899 case "OVERLAY_2D": return DrawModeType.Overlay2D;
900 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
901 case "STENCIL": return DrawModeType.Stencil;
902 #pragma warning restore CS0618
903 default: return DrawModeType.Normal;
906 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
907 [EditorBrowsable(EditorBrowsableState.Never)]
908 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
910 var view = (View)bindable;
911 if (newValue != null)
913 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
916 defaultValueCreator: (bindable) =>
918 var view = (View)bindable;
919 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
920 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
923 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
924 [EditorBrowsable(EditorBrowsableState.Never)]
925 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
927 var view = (View)bindable;
928 if (newValue != null)
930 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
933 defaultValueCreator: (bindable) =>
935 var view = (View)bindable;
937 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
939 NUILog.Error("WidthResizePolicy get error!");
943 case "FIXED": return ResizePolicyType.Fixed;
944 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
945 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
946 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
947 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
948 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
949 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
950 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
951 default: return ResizePolicyType.Fixed;
954 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
955 [EditorBrowsable(EditorBrowsableState.Never)]
956 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
958 var view = (View)bindable;
959 if (newValue != null)
961 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
964 defaultValueCreator: (bindable) =>
966 var view = (View)bindable;
968 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
970 NUILog.Error("HeightResizePolicy get error!");
974 case "FIXED": return ResizePolicyType.Fixed;
975 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
976 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
977 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
978 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
979 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
980 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
981 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
982 default: return ResizePolicyType.Fixed;
985 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
986 [EditorBrowsable(EditorBrowsableState.Never)]
987 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
989 var view = (View)bindable;
990 string valueToString = "";
991 if (newValue != null)
993 switch ((SizeScalePolicyType)newValue)
995 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
996 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
997 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
998 default: { valueToString = "USE_SIZE_SET"; break; }
1000 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1003 defaultValueCreator: (bindable) =>
1005 var view = (View)bindable;
1007 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1009 NUILog.Error("SizeScalePolicy get error!");
1013 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1014 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1015 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1016 default: return SizeScalePolicyType.UseSizeSet;
1019 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1020 [EditorBrowsable(EditorBrowsableState.Never)]
1021 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1023 var view = (View)bindable;
1024 if (newValue != null)
1026 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1029 defaultValueCreator: (bindable) =>
1031 var view = (View)bindable;
1033 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1036 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1037 [EditorBrowsable(EditorBrowsableState.Never)]
1038 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1040 var view = (View)bindable;
1041 if (newValue != null)
1043 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1046 defaultValueCreator: (bindable) =>
1048 var view = (View)bindable;
1050 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1053 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1054 [EditorBrowsable(EditorBrowsableState.Never)]
1055 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1057 var view = (View)bindable;
1058 if (newValue != null)
1060 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1063 defaultValueCreator: (bindable) =>
1065 var view = (View)bindable;
1066 Extents temp = new Extents(0, 0, 0, 0);
1067 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1070 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1071 [EditorBrowsable(EditorBrowsableState.Never)]
1072 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1074 var view = (View)bindable;
1075 if (newValue != null)
1077 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1080 defaultValueCreator: (bindable) =>
1082 var view = (View)bindable;
1083 Size temp = new Size(0, 0, 0);
1084 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1087 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1088 [EditorBrowsable(EditorBrowsableState.Never)]
1089 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1091 var view = (View)bindable;
1092 if (newValue != null)
1094 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1097 defaultValueCreator: (bindable) =>
1099 var view = (View)bindable;
1100 Size2D temp = new Size2D(0, 0);
1101 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1104 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1105 [EditorBrowsable(EditorBrowsableState.Never)]
1106 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1108 var view = (View)bindable;
1109 if (newValue != null)
1111 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue((Size2D)newValue));
1114 defaultValueCreator: (bindable) =>
1116 var view = (View)bindable;
1117 Size2D temp = new Size2D(0, 0);
1118 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1121 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1122 [EditorBrowsable(EditorBrowsableState.Never)]
1123 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1125 var view = (View)bindable;
1126 if (newValue != null)
1128 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1131 defaultValueCreator: (bindable) =>
1133 var view = (View)bindable;
1135 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1138 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1139 [EditorBrowsable(EditorBrowsableState.Never)]
1140 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1142 var view = (View)bindable;
1143 if (newValue != null)
1145 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1148 defaultValueCreator: (bindable) =>
1150 var view = (View)bindable;
1152 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1154 NUILog.Error("ClippingMode get error!");
1156 return (ClippingModeType)temp;
1158 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1159 [EditorBrowsable(EditorBrowsableState.Never)]
1160 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1162 var view = (View)bindable;
1163 if (newValue != null)
1165 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1168 defaultValueCreator: (bindable) =>
1170 var view = (View)bindable;
1172 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1175 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1176 [EditorBrowsable(EditorBrowsableState.Never)]
1177 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1179 var view = (View)bindable;
1180 if (newValue != null)
1182 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1185 defaultValueCreator: (bindable) =>
1187 var view = (View)bindable;
1189 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1191 NUILog.Error("LAYOUT_DIRECTION get error!");
1193 return (ViewLayoutDirectionType)temp;
1195 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1196 [EditorBrowsable(EditorBrowsableState.Never)]
1197 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1199 var view = (View)bindable;
1200 if (newValue != null)
1202 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1205 defaultValueCreator: (bindable) =>
1207 var view = (View)bindable;
1208 Extents temp = new Extents(0, 0, 0, 0);
1209 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1212 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1213 [EditorBrowsable(EditorBrowsableState.Never)]
1214 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1216 var view = (View)bindable;
1217 if (newValue != null)
1219 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1222 defaultValueCreator: (bindable) =>
1224 var view = (View)bindable;
1226 Vector2 temp = new Vector2(0.0f, 0.0f);
1227 Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1230 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1231 [EditorBrowsable(EditorBrowsableState.Never)]
1232 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);