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
32 [EditorBrowsable(EditorBrowsableState.Never)]
33 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
35 var view = (View)bindable;
38 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
41 defaultValueCreator: (bindable) =>
43 var view = (View)bindable;
45 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
50 /// BackgroundColorProperty
52 [EditorBrowsable(EditorBrowsableState.Never)]
53 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
55 var view = (View)bindable;
58 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
61 defaultValueCreator: (bindable) =>
63 var view = (View)bindable;
64 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
66 Tizen.NUI.PropertyMap background = view.Background;
68 background.Find(Visual.Property.Type)?.Get(out visualType);
69 if (visualType == (int)Visual.Type.Color)
71 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
74 return backgroundColor;
78 /// BackgroundImageProperty
80 [EditorBrowsable(EditorBrowsableState.Never)]
81 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
83 var view = (View)bindable;
86 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
87 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
90 defaultValueCreator: (bindable) =>
92 var view = (View)bindable;
93 string backgroundImage = "";
95 Tizen.NUI.PropertyMap background = view.Background;
97 background.Find(Visual.Property.Type)?.Get(out visualType);
98 if (visualType == (int)Visual.Type.Image)
100 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
103 return backgroundImage;
107 /// BackgroundProperty
109 [EditorBrowsable(EditorBrowsableState.Never)]
110 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
112 var view = (View)bindable;
113 if (newValue != null)
115 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
118 defaultValueCreator: (bindable) =>
120 var view = (View)bindable;
121 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
122 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
129 [EditorBrowsable(EditorBrowsableState.Never)]
130 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
132 var view = (View)bindable;
133 if (newValue != null)
135 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
138 defaultValueCreator: (bindable) =>
140 var view = (View)bindable;
142 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
144 NUILog.Error("State get error!");
148 case 0: return States.Normal;
149 case 1: return States.Focused;
150 case 2: return States.Disabled;
151 default: return States.Normal;
158 [EditorBrowsable(EditorBrowsableState.Never)]
159 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
161 var view = (View)bindable;
162 string valueToString = "";
163 if (newValue != null)
165 switch ((States)newValue)
167 case States.Normal: { valueToString = "NORMAL"; break; }
168 case States.Focused: { valueToString = "FOCUSED"; break; }
169 case States.Disabled: { valueToString = "DISABLED"; break; }
170 default: { valueToString = "NORMAL"; break; }
172 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
175 defaultValueCreator: (bindable) =>
177 var view = (View)bindable;
179 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
181 NUILog.Error("subState get error!");
185 case "NORMAL": return States.Normal;
186 case "FOCUSED": return States.Focused;
187 case "DISABLED": return States.Disabled;
188 default: return States.Normal;
195 [EditorBrowsable(EditorBrowsableState.Never)]
196 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
198 var view = (View)bindable;
199 if (newValue != null)
201 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
204 defaultValueCreator: (bindable) =>
206 var view = (View)bindable;
207 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
208 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
215 [EditorBrowsable(EditorBrowsableState.Never)]
216 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
218 var view = (View)bindable;
219 if (newValue != null)
221 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
224 defaultValueCreator: (bindable) =>
226 var view = (View)bindable;
228 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
233 /// AlignSelfProperty
235 [EditorBrowsable(EditorBrowsableState.Never)]
236 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
238 var view = (View)bindable;
239 if (newValue != null)
241 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
244 defaultValueCreator: (bindable) =>
246 var view = (View)bindable;
248 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
253 /// FlexMarginProperty
255 [EditorBrowsable(EditorBrowsableState.Never)]
256 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
258 var view = (View)bindable;
259 if (newValue != null)
261 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
264 defaultValueCreator: (bindable) =>
266 var view = (View)bindable;
267 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
268 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
273 /// CellIndexProperty
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
278 var view = (View)bindable;
279 if (newValue != null)
281 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
284 defaultValueCreator: (bindable) =>
286 var view = (View)bindable;
287 Vector2 temp = new Vector2(0.0f, 0.0f);
288 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
295 [EditorBrowsable(EditorBrowsableState.Never)]
296 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
298 var view = (View)bindable;
299 if (newValue != null)
301 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
304 defaultValueCreator: (bindable) =>
306 var view = (View)bindable;
308 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
313 /// ColumnSpanProperty
315 [EditorBrowsable(EditorBrowsableState.Never)]
316 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
318 var view = (View)bindable;
319 if (newValue != null)
321 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
324 defaultValueCreator: (bindable) =>
326 var view = (View)bindable;
328 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
333 /// CellHorizontalAlignmentProperty
335 [EditorBrowsable(EditorBrowsableState.Never)]
336 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
338 var view = (View)bindable;
339 string valueToString = "";
341 if (newValue != null)
343 switch ((HorizontalAlignmentType)newValue)
345 case Tizen.NUI.HorizontalAlignmentType.Left: { valueToString = "left"; break; }
346 case Tizen.NUI.HorizontalAlignmentType.Center: { valueToString = "center"; break; }
347 case Tizen.NUI.HorizontalAlignmentType.Right: { valueToString = "right"; break; }
348 default: { valueToString = "left"; break; }
350 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
353 defaultValueCreator: (bindable) =>
355 var view = (View)bindable;
357 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
359 NUILog.Error("CellHorizontalAlignment get error!");
364 case "left": return Tizen.NUI.HorizontalAlignmentType.Left;
365 case "center": return Tizen.NUI.HorizontalAlignmentType.Center;
366 case "right": return Tizen.NUI.HorizontalAlignmentType.Right;
367 default: return Tizen.NUI.HorizontalAlignmentType.Left;
372 /// CellVerticalAlignmentProperty
374 [EditorBrowsable(EditorBrowsableState.Never)]
375 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
377 var view = (View)bindable;
378 string valueToString = "";
380 if (newValue != null)
382 switch ((VerticalAlignmentType)newValue)
384 case Tizen.NUI.VerticalAlignmentType.Top: { valueToString = "top"; break; }
385 case Tizen.NUI.VerticalAlignmentType.Center: { valueToString = "center"; break; }
386 case Tizen.NUI.VerticalAlignmentType.Bottom: { valueToString = "bottom"; break; }
387 default: { valueToString = "top"; break; }
389 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
392 defaultValueCreator: (bindable) =>
394 var view = (View)bindable;
396 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
398 NUILog.Error("CellVerticalAlignment get error!");
403 case "top": return Tizen.NUI.VerticalAlignmentType.Top;
404 case "center": return Tizen.NUI.VerticalAlignmentType.Center;
405 case "bottom": return Tizen.NUI.VerticalAlignmentType.Bottom;
406 default: return Tizen.NUI.VerticalAlignmentType.Top;
411 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
412 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
414 [EditorBrowsable(EditorBrowsableState.Never)]
415 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
417 var view = (View)bindable;
418 if (newValue != null)
420 view.Weight = (float)newValue;
424 defaultValueCreator: (bindable) =>
426 var view = (View)bindable;
431 /// LeftFocusableViewProperty
433 [EditorBrowsable(EditorBrowsableState.Never)]
434 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
436 var view = (View)bindable;
437 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
438 else { view.LeftFocusableViewId = -1; }
440 defaultValueCreator: (bindable) =>
442 var view = (View)bindable;
443 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
448 /// RightFocusableViewProperty
450 [EditorBrowsable(EditorBrowsableState.Never)]
451 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
453 var view = (View)bindable;
454 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
455 else { view.RightFocusableViewId = -1; }
457 defaultValueCreator: (bindable) =>
459 var view = (View)bindable;
460 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
465 /// UpFocusableViewProperty
467 [EditorBrowsable(EditorBrowsableState.Never)]
468 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
470 var view = (View)bindable;
471 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
472 else { view.UpFocusableViewId = -1; }
474 defaultValueCreator: (bindable) =>
476 var view = (View)bindable;
477 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
482 /// DownFocusableViewProperty
484 [EditorBrowsable(EditorBrowsableState.Never)]
485 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
487 var view = (View)bindable;
488 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
489 else { view.DownFocusableViewId = -1; }
491 defaultValueCreator: (bindable) =>
493 var view = (View)bindable;
494 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
499 /// FocusableProperty
501 [EditorBrowsable(EditorBrowsableState.Never)]
502 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
504 var view = (View)bindable;
505 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
507 defaultValueCreator: (bindable) =>
509 var view = (View)bindable;
510 return view.IsKeyboardFocusable();
516 [EditorBrowsable(EditorBrowsableState.Never)]
517 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
519 var view = (View)bindable;
520 if (newValue != null)
522 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
525 defaultValueCreator: (bindable) =>
527 var view = (View)bindable;
528 Size temp = new Size(0.0f, 0.0f, 0.0f);
529 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
530 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
537 [EditorBrowsable(EditorBrowsableState.Never)]
538 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
540 var view = (View)bindable;
541 if (newValue != null)
543 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
546 defaultValueCreator: (bindable) =>
548 var view = (View)bindable;
550 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
555 /// Position2DProperty
557 [EditorBrowsable(EditorBrowsableState.Never)]
558 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
560 var view = (View)bindable;
561 if (newValue != null)
563 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
566 defaultValueCreator: (bindable) =>
568 var view = (View)bindable;
569 Position temp = new Position(0.0f, 0.0f, 0.0f);
570 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
571 return new Position2D(temp);
575 /// PositionUsesPivotPointProperty
577 [EditorBrowsable(EditorBrowsableState.Never)]
578 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
580 var view = (View)bindable;
581 if (newValue != null)
583 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
586 defaultValueCreator: (bindable) =>
588 var view = (View)bindable;
590 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
595 /// SiblingOrderProperty
597 [EditorBrowsable(EditorBrowsableState.Never)]
598 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
600 var view = (View)bindable;
602 if (newValue != null)
604 value = (int)newValue;
607 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
610 var siblings = view.GetParent()?.Children;
611 if (siblings != null)
613 int currentOrder = siblings.IndexOf(view);
614 if (value != currentOrder)
616 if (value == 0) { view.LowerToBottom(); }
617 else if (value < siblings.Count - 1)
619 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
620 else { view.LowerBelow(siblings[value]); }
622 else { view.RaiseToTop(); }
627 defaultValueCreator: (bindable) =>
629 var view = (View)bindable;
630 var parentChildren = view.GetParent()?.Children;
631 int currentOrder = 0;
632 if (parentChildren != null)
634 currentOrder = parentChildren.IndexOf(view);
636 if (currentOrder < 0) { return 0; }
637 else if (currentOrder < parentChildren.Count) { return currentOrder; }
644 /// ParentOriginProperty
646 [EditorBrowsable(EditorBrowsableState.Never)]
647 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
649 var view = (View)bindable;
650 if (newValue != null)
652 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
655 defaultValueCreator: (bindable) =>
657 var view = (View)bindable;
658 Position temp = new Position(0.0f, 0.0f, 0.0f);
659 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
665 /// PivotPointProperty
667 [EditorBrowsable(EditorBrowsableState.Never)]
668 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
670 var view = (View)bindable;
671 if (newValue != null)
673 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
676 defaultValueCreator: (bindable) =>
678 var view = (View)bindable;
679 Position temp = new Position(0.0f, 0.0f, 0.0f);
680 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
685 /// SizeWidthProperty
687 [EditorBrowsable(EditorBrowsableState.Never)]
688 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
690 var view = (View)bindable;
691 if (newValue != null)
693 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
696 defaultValueCreator: (bindable) =>
698 var view = (View)bindable;
700 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
705 /// SizeHeightProperty
707 [EditorBrowsable(EditorBrowsableState.Never)]
708 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
710 var view = (View)bindable;
711 if (newValue != null)
713 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
716 defaultValueCreator: (bindable) =>
718 var view = (View)bindable;
720 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
727 [EditorBrowsable(EditorBrowsableState.Never)]
728 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
730 var view = (View)bindable;
731 if (newValue != null)
733 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
736 defaultValueCreator: (bindable) =>
738 var view = (View)bindable;
739 Position temp = new Position(0.0f, 0.0f, 0.0f);
740 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
745 /// PositionXProperty
747 [EditorBrowsable(EditorBrowsableState.Never)]
748 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
750 var view = (View)bindable;
751 if (newValue != null)
753 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
756 defaultValueCreator: (bindable) =>
758 var view = (View)bindable;
760 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
765 /// PositionYProperty
767 [EditorBrowsable(EditorBrowsableState.Never)]
768 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
770 var view = (View)bindable;
771 if (newValue != null)
773 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
776 defaultValueCreator: (bindable) =>
778 var view = (View)bindable;
780 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
785 /// PositionZProperty
787 [EditorBrowsable(EditorBrowsableState.Never)]
788 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
790 var view = (View)bindable;
791 if (newValue != null)
793 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
796 defaultValueCreator: (bindable) =>
798 var view = (View)bindable;
800 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
805 /// OrientationProperty
807 [EditorBrowsable(EditorBrowsableState.Never)]
808 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
810 var view = (View)bindable;
811 if (newValue != null)
813 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
816 defaultValueCreator: (bindable) =>
818 var view = (View)bindable;
819 Rotation temp = new Rotation();
820 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
827 [EditorBrowsable(EditorBrowsableState.Never)]
828 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
830 var view = (View)bindable;
831 if (newValue != null)
833 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
836 defaultValueCreator: (bindable) =>
838 var view = (View)bindable;
839 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
840 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
847 [EditorBrowsable(EditorBrowsableState.Never)]
848 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
850 var view = (View)bindable;
851 if (newValue != null)
853 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
856 defaultValueCreator: (bindable) =>
858 var view = (View)bindable;
860 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
867 [EditorBrowsable(EditorBrowsableState.Never)]
868 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
870 var view = (View)bindable;
871 if (newValue != null)
873 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
876 defaultValueCreator: (bindable) =>
878 var view = (View)bindable;
880 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
887 [EditorBrowsable(EditorBrowsableState.Never)]
888 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
890 var view = (View)bindable;
891 if (newValue != null)
893 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
896 defaultValueCreator: (bindable) =>
898 var view = (View)bindable;
900 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
907 [EditorBrowsable(EditorBrowsableState.Never)]
908 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
910 var view = (View)bindable;
911 if (newValue != null)
913 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
916 defaultValueCreator: (bindable) =>
918 var view = (View)bindable;
920 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
925 /// SensitiveProperty
927 [EditorBrowsable(EditorBrowsableState.Never)]
928 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
930 var view = (View)bindable;
931 if (newValue != null)
933 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
936 defaultValueCreator: (bindable) =>
938 var view = (View)bindable;
940 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
945 /// LeaveRequiredProperty
947 [EditorBrowsable(EditorBrowsableState.Never)]
948 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
950 var view = (View)bindable;
951 if (newValue != null)
953 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
956 defaultValueCreator: (bindable) =>
958 var view = (View)bindable;
960 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
965 /// InheritOrientationProperty
967 [EditorBrowsable(EditorBrowsableState.Never)]
968 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
970 var view = (View)bindable;
971 if (newValue != null)
973 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
976 defaultValueCreator: (bindable) =>
978 var view = (View)bindable;
980 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
985 /// InheritScaleProperty
987 [EditorBrowsable(EditorBrowsableState.Never)]
988 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
990 var view = (View)bindable;
991 if (newValue != null)
993 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
996 defaultValueCreator: (bindable) =>
998 var view = (View)bindable;
1000 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
1005 /// DrawModeProperty
1007 [EditorBrowsable(EditorBrowsableState.Never)]
1008 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
1010 var view = (View)bindable;
1011 if (newValue != null)
1013 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1016 defaultValueCreator: (bindable) =>
1018 var view = (View)bindable;
1020 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
1022 NUILog.Error("DrawMode get error!");
1026 case "NORMAL": return DrawModeType.Normal;
1027 case "OVERLAY_2D": return DrawModeType.Overlay2D;
1028 #pragma warning disable CS0618 // Disable deprecated warning as we do need to use the deprecated API here.
1029 case "STENCIL": return DrawModeType.Stencil;
1030 #pragma warning restore CS0618
1031 default: return DrawModeType.Normal;
1036 /// SizeModeFactorProperty
1038 [EditorBrowsable(EditorBrowsableState.Never)]
1039 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1041 var view = (View)bindable;
1042 if (newValue != null)
1044 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
1047 defaultValueCreator: (bindable) =>
1049 var view = (View)bindable;
1050 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1051 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
1056 /// WidthResizePolicyProperty
1058 [EditorBrowsable(EditorBrowsableState.Never)]
1059 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1061 var view = (View)bindable;
1062 if (newValue != null)
1064 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1067 defaultValueCreator: (bindable) =>
1069 var view = (View)bindable;
1071 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1073 NUILog.Error("WidthResizePolicy get error!");
1077 case "FIXED": return ResizePolicyType.Fixed;
1078 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1079 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1080 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1081 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1082 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1083 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1084 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1085 default: return ResizePolicyType.Fixed;
1090 /// HeightResizePolicyProperty
1092 [EditorBrowsable(EditorBrowsableState.Never)]
1093 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1095 var view = (View)bindable;
1096 if (newValue != null)
1098 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1101 defaultValueCreator: (bindable) =>
1103 var view = (View)bindable;
1105 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1107 NUILog.Error("HeightResizePolicy get error!");
1111 case "FIXED": return ResizePolicyType.Fixed;
1112 case "USE_NATURAL_SIZE": return ResizePolicyType.UseNaturalSize;
1113 case "FILL_TO_PARENT": return ResizePolicyType.FillToParent;
1114 case "SIZE_RELATIVE_TO_PARENT": return ResizePolicyType.SizeRelativeToParent;
1115 case "SIZE_FIXED_OFFSET_FROM_PARENT": return ResizePolicyType.SizeFixedOffsetFromParent;
1116 case "FIT_TO_CHILDREN": return ResizePolicyType.FitToChildren;
1117 case "DIMENSION_DEPENDENCY": return ResizePolicyType.DimensionDependency;
1118 case "USE_ASSIGNED_SIZE": return ResizePolicyType.UseAssignedSize;
1119 default: return ResizePolicyType.Fixed;
1124 /// SizeScalePolicyProperty
1126 [EditorBrowsable(EditorBrowsableState.Never)]
1127 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1129 var view = (View)bindable;
1130 string valueToString = "";
1131 if (newValue != null)
1133 switch ((SizeScalePolicyType)newValue)
1135 case SizeScalePolicyType.UseSizeSet: { valueToString = "USE_SIZE_SET"; break; }
1136 case SizeScalePolicyType.FitWithAspectRatio: { valueToString = "FIT_WITH_ASPECT_RATIO"; break; }
1137 case SizeScalePolicyType.FillWithAspectRatio: { valueToString = "FILL_WITH_ASPECT_RATIO"; break; }
1138 default: { valueToString = "USE_SIZE_SET"; break; }
1140 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1143 defaultValueCreator: (bindable) =>
1145 var view = (View)bindable;
1147 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1149 NUILog.Error("SizeScalePolicy get error!");
1153 case "USE_SIZE_SET": return SizeScalePolicyType.UseSizeSet;
1154 case "FIT_WITH_ASPECT_RATIO": return SizeScalePolicyType.FitWithAspectRatio;
1155 case "FILL_WITH_ASPECT_RATIO": return SizeScalePolicyType.FillWithAspectRatio;
1156 default: return SizeScalePolicyType.UseSizeSet;
1161 /// WidthForHeightProperty
1163 [EditorBrowsable(EditorBrowsableState.Never)]
1164 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1166 var view = (View)bindable;
1167 if (newValue != null)
1169 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1172 defaultValueCreator: (bindable) =>
1174 var view = (View)bindable;
1176 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1181 /// HeightForWidthProperty
1183 [EditorBrowsable(EditorBrowsableState.Never)]
1184 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1186 var view = (View)bindable;
1187 if (newValue != null)
1189 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1192 defaultValueCreator: (bindable) =>
1194 var view = (View)bindable;
1196 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1203 [EditorBrowsable(EditorBrowsableState.Never)]
1204 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1206 var view = (View)bindable;
1207 if (newValue != null)
1209 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1212 defaultValueCreator: (bindable) =>
1214 var view = (View)bindable;
1215 Extents temp = new Extents(0, 0, 0, 0);
1216 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1223 [EditorBrowsable(EditorBrowsableState.Never)]
1224 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1226 var view = (View)bindable;
1227 if (newValue != null)
1229 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1232 defaultValueCreator: (bindable) =>
1234 var view = (View)bindable;
1235 Size temp = new Size(0, 0, 0);
1236 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1241 /// MinimumSizeProperty
1243 [EditorBrowsable(EditorBrowsableState.Never)]
1244 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1246 var view = (View)bindable;
1247 Size temp = (Size)newValue;
1250 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(new Vector2(temp.Width, temp.Height)));
1253 defaultValueCreator: (bindable) =>
1255 var view = (View)bindable;
1256 Size2D temp = new Size2D(0, 0);
1257 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1262 /// MaximumSizeProperty
1264 [EditorBrowsable(EditorBrowsableState.Never)]
1265 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1267 var view = (View)bindable;
1268 Size temp = (Size)newValue;
1271 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(new Vector2(temp.Width, temp.Height)));
1274 defaultValueCreator: (bindable) =>
1276 var view = (View)bindable;
1277 Size2D temp = new Size2D(0, 0);
1278 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1283 /// InheritPositionProperty
1285 [EditorBrowsable(EditorBrowsableState.Never)]
1286 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1288 var view = (View)bindable;
1289 if (newValue != null)
1291 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1294 defaultValueCreator: (bindable) =>
1296 var view = (View)bindable;
1298 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1303 /// ClippingModeProperty
1305 [EditorBrowsable(EditorBrowsableState.Never)]
1306 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1308 var view = (View)bindable;
1309 if (newValue != null)
1311 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1314 defaultValueCreator: (bindable) =>
1316 var view = (View)bindable;
1318 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1320 NUILog.Error("ClippingMode get error!");
1322 return (ClippingModeType)temp;
1326 /// InheritLayoutDirectionProperty
1328 [EditorBrowsable(EditorBrowsableState.Never)]
1329 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1331 var view = (View)bindable;
1332 if (newValue != null)
1334 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1337 defaultValueCreator: (bindable) =>
1339 var view = (View)bindable;
1341 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1346 /// LayoutDirectionProperty
1348 [EditorBrowsable(EditorBrowsableState.Never)]
1349 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1351 var view = (View)bindable;
1352 if (newValue != null)
1354 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1357 defaultValueCreator: (bindable) =>
1359 var view = (View)bindable;
1361 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1363 NUILog.Error("LAYOUT_DIRECTION get error!");
1365 return (ViewLayoutDirectionType)temp;
1371 [EditorBrowsable(EditorBrowsableState.Never)]
1372 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1374 var view = (View)bindable;
1375 if (newValue != null)
1377 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1380 defaultValueCreator: (bindable) =>
1382 var view = (View)bindable;
1383 Extents temp = new Extents(0, 0, 0, 0);
1384 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1389 /// UpdateSizeHintProperty
1391 [EditorBrowsable(EditorBrowsableState.Never)]
1392 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1394 var view = (View)bindable;
1395 if (newValue != null)
1397 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1400 defaultValueCreator: (bindable) =>
1402 var view = (View)bindable;
1404 Vector2 temp = new Vector2(0.0f, 0.0f);
1405 Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1410 /// XamlStyleProperty
1412 [EditorBrowsable(EditorBrowsableState.Never)]
1413 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);