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));
60 // Apply CornerRadius if needs
61 if (view.cornerRadius != null && view.cornerRadius.GetValue() != 0)
63 view.ApplyCornerRadius();
67 defaultValueCreator: (bindable) =>
69 var view = (View)bindable;
70 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
72 Tizen.NUI.PropertyMap background = view.Background;
74 background.Find(Visual.Property.Type)?.Get(out visualType);
75 if (visualType == (int)Visual.Type.Color)
77 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
80 return backgroundColor;
83 /// <summary> BackgroundImageProperty </summary>
84 [EditorBrowsable(EditorBrowsableState.Never)]
85 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
87 var view = (View)bindable;
90 string url = (string)newValue;
92 if (Rectangle.IsNullOrZero(view.backgroundImageBorder))
94 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, string.IsNullOrEmpty(url) ? new PropertyValue() : new PropertyValue(url));
96 // Apply CornerRadius if needs
97 if (view.cornerRadius != null && view.cornerRadius.GetValue() != 0)
99 view.ApplyCornerRadius();
104 var visual = new NPatchVisual();
106 visual.Border = view.backgroundImageBorder;
107 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new PropertyValue(visual.OutputVisualMap));
110 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
113 defaultValueCreator: (bindable) =>
115 var view = (View)bindable;
116 string backgroundImage = "";
118 Tizen.NUI.PropertyMap background = view.Background;
120 background.Find(Visual.Property.Type)?.Get(out visualType);
121 if ((visualType == (int)Visual.Type.Image) || (visualType == (int)Visual.Type.NPatch))
123 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
126 return backgroundImage;
128 /// <summary>BackgroundImageBorderProperty</summary>
129 [EditorBrowsable(EditorBrowsableState.Never)]
130 public static readonly BindableProperty BackgroundImageBorderProperty = BindableProperty.Create(nameof(BackgroundImageBorder), typeof(Rectangle), typeof(View), default(Rectangle), propertyChanged: (bindable, oldValue, newValue) =>
132 var view = (View)bindable;
133 string url = view.BackgroundImage;
134 view.backgroundImageBorder = (Rectangle)newValue;
136 if (string.IsNullOrEmpty(url))
141 if (Rectangle.IsNullOrZero(view.backgroundImageBorder))
143 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new PropertyValue(url));
145 // Apply CornerRadius if needs
146 if (view.cornerRadius != null && view.cornerRadius.GetValue() != 0)
148 view.ApplyCornerRadius();
153 var visual = new NPatchVisual();
155 visual.Border = view.backgroundImageBorder;
156 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new PropertyValue(visual.OutputVisualMap));
159 defaultValueCreator: (bindable) =>
161 var view = (View)bindable;
162 return view.backgroundImageBorder == null ? new Rectangle(view.OnBackgroundImageBorderChanged) : new Rectangle(view.OnBackgroundImageBorderChanged, view.backgroundImageBorder);
165 /// BackgroundProperty
167 [EditorBrowsable(EditorBrowsableState.Never)]
168 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
170 var view = (View)bindable;
171 if (newValue != null)
173 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
176 defaultValueCreator: (bindable) =>
178 var view = (View)bindable;
179 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
180 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
187 [EditorBrowsable(EditorBrowsableState.Never)]
188 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
190 var view = (View)bindable;
191 if (newValue != null)
193 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
196 defaultValueCreator: (bindable) =>
198 var view = (View)bindable;
200 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
202 NUILog.Error("State get error!");
206 case 0: return States.Normal;
207 case 1: return States.Focused;
208 case 2: return States.Disabled;
209 default: return States.Normal;
216 [EditorBrowsable(EditorBrowsableState.Never)]
217 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
219 var view = (View)bindable;
220 string valueToString = "";
221 if (newValue != null)
223 valueToString = ((States)newValue).GetDescription<States>();
224 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
227 defaultValueCreator: (bindable) =>
229 var view = (View)bindable;
231 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
233 NUILog.Error("subState get error!");
235 return temp.GetValueByDescription<States>();
241 [EditorBrowsable(EditorBrowsableState.Never)]
242 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
244 var view = (View)bindable;
245 if (newValue != null)
247 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
250 defaultValueCreator: (bindable) =>
252 var view = (View)bindable;
253 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
254 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
261 [EditorBrowsable(EditorBrowsableState.Never)]
262 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
264 var view = (View)bindable;
265 if (newValue != null)
267 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
270 defaultValueCreator: (bindable) =>
272 var view = (View)bindable;
274 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
279 /// AlignSelfProperty
281 [EditorBrowsable(EditorBrowsableState.Never)]
282 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
284 var view = (View)bindable;
285 if (newValue != null)
287 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
290 defaultValueCreator: (bindable) =>
292 var view = (View)bindable;
294 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
299 /// FlexMarginProperty
301 [EditorBrowsable(EditorBrowsableState.Never)]
302 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
304 var view = (View)bindable;
305 if (newValue != null)
307 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
310 defaultValueCreator: (bindable) =>
312 var view = (View)bindable;
313 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
314 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
319 /// CellIndexProperty
321 [EditorBrowsable(EditorBrowsableState.Never)]
322 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
324 var view = (View)bindable;
325 if (newValue != null)
327 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
330 defaultValueCreator: (bindable) =>
332 var view = (View)bindable;
333 Vector2 temp = new Vector2(0.0f, 0.0f);
334 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
341 [EditorBrowsable(EditorBrowsableState.Never)]
342 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
344 var view = (View)bindable;
345 if (newValue != null)
347 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
350 defaultValueCreator: (bindable) =>
352 var view = (View)bindable;
354 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
359 /// ColumnSpanProperty
361 [EditorBrowsable(EditorBrowsableState.Never)]
362 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
364 var view = (View)bindable;
365 if (newValue != null)
367 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
370 defaultValueCreator: (bindable) =>
372 var view = (View)bindable;
374 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
379 /// CellHorizontalAlignmentProperty
381 [EditorBrowsable(EditorBrowsableState.Never)]
382 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
384 var view = (View)bindable;
385 string valueToString = "";
387 if (newValue != null)
389 valueToString = ((HorizontalAlignmentType)newValue).GetDescription<HorizontalAlignmentType>();
390 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
393 defaultValueCreator: (bindable) =>
395 var view = (View)bindable;
397 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
399 NUILog.Error("CellHorizontalAlignment get error!");
402 return temp.GetValueByDescription<HorizontalAlignmentType>();
406 /// CellVerticalAlignmentProperty
408 [EditorBrowsable(EditorBrowsableState.Never)]
409 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
411 var view = (View)bindable;
412 string valueToString = "";
414 if (newValue != null)
416 valueToString = ((VerticalAlignmentType)newValue).GetDescription<VerticalAlignmentType>();
417 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
420 defaultValueCreator: (bindable) =>
422 var view = (View)bindable;
424 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
426 NUILog.Error("CellVerticalAlignment get error!");
429 return temp.GetValueByDescription<VerticalAlignmentType>();
433 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
434 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
436 [EditorBrowsable(EditorBrowsableState.Never)]
437 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
439 var view = (View)bindable;
440 if (newValue != null)
442 view.Weight = (float)newValue;
446 defaultValueCreator: (bindable) =>
448 var view = (View)bindable;
453 /// LeftFocusableViewProperty
455 [EditorBrowsable(EditorBrowsableState.Never)]
456 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
458 var view = (View)bindable;
459 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
460 else { view.LeftFocusableViewId = -1; }
462 defaultValueCreator: (bindable) =>
464 var view = (View)bindable;
465 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
470 /// RightFocusableViewProperty
472 [EditorBrowsable(EditorBrowsableState.Never)]
473 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
475 var view = (View)bindable;
476 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
477 else { view.RightFocusableViewId = -1; }
479 defaultValueCreator: (bindable) =>
481 var view = (View)bindable;
482 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
487 /// UpFocusableViewProperty
489 [EditorBrowsable(EditorBrowsableState.Never)]
490 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
492 var view = (View)bindable;
493 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
494 else { view.UpFocusableViewId = -1; }
496 defaultValueCreator: (bindable) =>
498 var view = (View)bindable;
499 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
504 /// DownFocusableViewProperty
506 [EditorBrowsable(EditorBrowsableState.Never)]
507 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
509 var view = (View)bindable;
510 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
511 else { view.DownFocusableViewId = -1; }
513 defaultValueCreator: (bindable) =>
515 var view = (View)bindable;
516 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
521 /// FocusableProperty
523 [EditorBrowsable(EditorBrowsableState.Never)]
524 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
526 var view = (View)bindable;
527 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
529 defaultValueCreator: (bindable) =>
531 var view = (View)bindable;
532 return view.IsKeyboardFocusable();
538 [EditorBrowsable(EditorBrowsableState.Never)]
539 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
541 var view = (View)bindable;
542 if (newValue != null)
544 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
547 defaultValueCreator: (bindable) =>
549 var view = (View)bindable;
550 Size temp = new Size(0.0f, 0.0f, 0.0f);
551 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
552 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
559 [EditorBrowsable(EditorBrowsableState.Never)]
560 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
562 var view = (View)bindable;
563 if (newValue != null)
565 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
568 defaultValueCreator: (bindable) =>
570 var view = (View)bindable;
572 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
577 /// Position2DProperty
579 [EditorBrowsable(EditorBrowsableState.Never)]
580 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
582 var view = (View)bindable;
583 if (newValue != null)
585 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
588 defaultValueCreator: (bindable) =>
590 var view = (View)bindable;
591 Position temp = new Position(0.0f, 0.0f, 0.0f);
592 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
593 return new Position2D(temp);
597 /// PositionUsesPivotPointProperty
599 [EditorBrowsable(EditorBrowsableState.Never)]
600 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
602 var view = (View)bindable;
603 if (newValue != null)
605 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
608 defaultValueCreator: (bindable) =>
610 var view = (View)bindable;
612 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
617 /// SiblingOrderProperty
619 [EditorBrowsable(EditorBrowsableState.Never)]
620 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
622 var view = (View)bindable;
624 if (newValue != null)
626 value = (int)newValue;
629 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
632 var siblings = view.GetParent()?.Children;
633 if (siblings != null)
635 int currentOrder = siblings.IndexOf(view);
636 if (value != currentOrder)
638 if (value == 0) { view.LowerToBottom(); }
639 else if (value < siblings.Count - 1)
641 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
642 else { view.LowerBelow(siblings[value]); }
644 else { view.RaiseToTop(); }
649 defaultValueCreator: (bindable) =>
651 var view = (View)bindable;
652 var parentChildren = view.GetParent()?.Children;
653 int currentOrder = 0;
654 if (parentChildren != null)
656 currentOrder = parentChildren.IndexOf(view);
658 if (currentOrder < 0) { return 0; }
659 else if (currentOrder < parentChildren.Count) { return currentOrder; }
666 /// ParentOriginProperty
668 [EditorBrowsable(EditorBrowsableState.Never)]
669 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
671 var view = (View)bindable;
672 if (newValue != null)
674 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
677 defaultValueCreator: (bindable) =>
679 var view = (View)bindable;
680 Position temp = new Position(0.0f, 0.0f, 0.0f);
681 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
687 /// PivotPointProperty
689 [EditorBrowsable(EditorBrowsableState.Never)]
690 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
692 var view = (View)bindable;
693 if (newValue != null)
695 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
698 defaultValueCreator: (bindable) =>
700 var view = (View)bindable;
701 Position temp = new Position(0.0f, 0.0f, 0.0f);
702 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
707 /// SizeWidthProperty
709 [EditorBrowsable(EditorBrowsableState.Never)]
710 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
712 var view = (View)bindable;
713 if (newValue != null)
715 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
718 defaultValueCreator: (bindable) =>
720 var view = (View)bindable;
722 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
727 /// SizeHeightProperty
729 [EditorBrowsable(EditorBrowsableState.Never)]
730 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
732 var view = (View)bindable;
733 if (newValue != null)
735 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
738 defaultValueCreator: (bindable) =>
740 var view = (View)bindable;
742 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
749 [EditorBrowsable(EditorBrowsableState.Never)]
750 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
752 var view = (View)bindable;
753 if (newValue != null)
755 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
758 defaultValueCreator: (bindable) =>
760 var view = (View)bindable;
761 Position temp = new Position(0.0f, 0.0f, 0.0f);
762 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
767 /// PositionXProperty
769 [EditorBrowsable(EditorBrowsableState.Never)]
770 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
772 var view = (View)bindable;
773 if (newValue != null)
775 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
778 defaultValueCreator: (bindable) =>
780 var view = (View)bindable;
782 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
787 /// PositionYProperty
789 [EditorBrowsable(EditorBrowsableState.Never)]
790 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
792 var view = (View)bindable;
793 if (newValue != null)
795 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
798 defaultValueCreator: (bindable) =>
800 var view = (View)bindable;
802 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
807 /// PositionZProperty
809 [EditorBrowsable(EditorBrowsableState.Never)]
810 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
812 var view = (View)bindable;
813 if (newValue != null)
815 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
818 defaultValueCreator: (bindable) =>
820 var view = (View)bindable;
822 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
827 /// OrientationProperty
829 [EditorBrowsable(EditorBrowsableState.Never)]
830 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
832 var view = (View)bindable;
833 if (newValue != null)
835 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
838 defaultValueCreator: (bindable) =>
840 var view = (View)bindable;
841 Rotation temp = new Rotation();
842 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
849 [EditorBrowsable(EditorBrowsableState.Never)]
850 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
852 var view = (View)bindable;
853 if (newValue != null)
855 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
858 defaultValueCreator: (bindable) =>
860 var view = (View)bindable;
861 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
862 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
869 [EditorBrowsable(EditorBrowsableState.Never)]
870 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
872 var view = (View)bindable;
873 if (newValue != null)
875 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
878 defaultValueCreator: (bindable) =>
880 var view = (View)bindable;
882 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
889 [EditorBrowsable(EditorBrowsableState.Never)]
890 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
892 var view = (View)bindable;
893 if (newValue != null)
895 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
898 defaultValueCreator: (bindable) =>
900 var view = (View)bindable;
902 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
909 [EditorBrowsable(EditorBrowsableState.Never)]
910 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
912 var view = (View)bindable;
913 if (newValue != null)
915 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
918 defaultValueCreator: (bindable) =>
920 var view = (View)bindable;
922 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
929 [EditorBrowsable(EditorBrowsableState.Never)]
930 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
932 var view = (View)bindable;
933 if (newValue != null)
935 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
938 defaultValueCreator: (bindable) =>
940 var view = (View)bindable;
942 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
947 /// SensitiveProperty
949 [EditorBrowsable(EditorBrowsableState.Never)]
950 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
952 var view = (View)bindable;
953 if (newValue != null)
955 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
958 defaultValueCreator: (bindable) =>
960 var view = (View)bindable;
962 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
967 /// LeaveRequiredProperty
969 [EditorBrowsable(EditorBrowsableState.Never)]
970 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
972 var view = (View)bindable;
973 if (newValue != null)
975 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
978 defaultValueCreator: (bindable) =>
980 var view = (View)bindable;
982 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
987 /// InheritOrientationProperty
989 [EditorBrowsable(EditorBrowsableState.Never)]
990 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
992 var view = (View)bindable;
993 if (newValue != null)
995 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
998 defaultValueCreator: (bindable) =>
1000 var view = (View)bindable;
1002 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
1007 /// InheritScaleProperty
1009 [EditorBrowsable(EditorBrowsableState.Never)]
1010 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1012 var view = (View)bindable;
1013 if (newValue != null)
1015 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
1018 defaultValueCreator: (bindable) =>
1020 var view = (View)bindable;
1022 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
1027 /// DrawModeProperty
1029 [EditorBrowsable(EditorBrowsableState.Never)]
1030 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
1032 var view = (View)bindable;
1033 if (newValue != null)
1035 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1038 defaultValueCreator: (bindable) =>
1040 var view = (View)bindable;
1042 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
1044 NUILog.Error("DrawMode get error!");
1046 return temp.GetValueByDescription<DrawModeType>();
1050 /// SizeModeFactorProperty
1052 [EditorBrowsable(EditorBrowsableState.Never)]
1053 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1055 var view = (View)bindable;
1056 if (newValue != null)
1058 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
1061 defaultValueCreator: (bindable) =>
1063 var view = (View)bindable;
1064 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1065 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
1070 /// WidthResizePolicyProperty
1072 [EditorBrowsable(EditorBrowsableState.Never)]
1073 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1075 var view = (View)bindable;
1076 if (newValue != null)
1078 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1081 defaultValueCreator: (bindable) =>
1083 var view = (View)bindable;
1085 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1087 NUILog.Error("WidthResizePolicy get error!");
1089 return temp.GetValueByDescription<ResizePolicyType>();
1093 /// HeightResizePolicyProperty
1095 [EditorBrowsable(EditorBrowsableState.Never)]
1096 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1098 var view = (View)bindable;
1099 if (newValue != null)
1101 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1104 defaultValueCreator: (bindable) =>
1106 var view = (View)bindable;
1108 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1110 NUILog.Error("HeightResizePolicy get error!");
1112 return temp.GetValueByDescription<ResizePolicyType>();
1116 /// SizeScalePolicyProperty
1118 [EditorBrowsable(EditorBrowsableState.Never)]
1119 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1121 var view = (View)bindable;
1122 string valueToString = "";
1123 if (newValue != null)
1125 valueToString = ((SizeScalePolicyType)newValue).GetDescription<SizeScalePolicyType>();
1126 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1129 defaultValueCreator: (bindable) =>
1131 var view = (View)bindable;
1133 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1135 NUILog.Error("SizeScalePolicy get error!");
1137 return temp.GetValueByDescription<SizeScalePolicyType>();
1141 /// WidthForHeightProperty
1143 [EditorBrowsable(EditorBrowsableState.Never)]
1144 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1146 var view = (View)bindable;
1147 if (newValue != null)
1149 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1152 defaultValueCreator: (bindable) =>
1154 var view = (View)bindable;
1156 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1161 /// HeightForWidthProperty
1163 [EditorBrowsable(EditorBrowsableState.Never)]
1164 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", 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.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1172 defaultValueCreator: (bindable) =>
1174 var view = (View)bindable;
1176 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1183 [EditorBrowsable(EditorBrowsableState.Never)]
1184 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1186 var view = (View)bindable;
1187 if (newValue != null)
1189 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1192 defaultValueCreator: (bindable) =>
1194 var view = (View)bindable;
1195 Extents temp = new Extents(0, 0, 0, 0);
1196 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1203 [EditorBrowsable(EditorBrowsableState.Never)]
1204 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), 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.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1212 defaultValueCreator: (bindable) =>
1214 var view = (View)bindable;
1215 Size temp = new Size(0, 0, 0);
1216 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1221 /// MinimumSizeProperty
1223 [EditorBrowsable(EditorBrowsableState.Never)]
1224 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1226 var view = (View)bindable;
1227 Size2D temp = newValue as Size2D;
1230 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(temp));
1234 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MinimumSizeProperty!");
1237 defaultValueCreator: (bindable) =>
1239 var view = (View)bindable;
1240 Size2D temp = new Size2D(0, 0);
1241 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1246 /// MaximumSizeProperty
1248 [EditorBrowsable(EditorBrowsableState.Never)]
1249 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1251 var view = (View)bindable;
1252 Size2D temp = newValue as Size2D;
1255 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(temp));
1259 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MaximumSizeProperty!");
1262 defaultValueCreator: (bindable) =>
1264 var view = (View)bindable;
1265 Size2D temp = new Size2D(0, 0);
1266 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1271 /// InheritPositionProperty
1273 [EditorBrowsable(EditorBrowsableState.Never)]
1274 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1276 var view = (View)bindable;
1277 if (newValue != null)
1279 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1282 defaultValueCreator: (bindable) =>
1284 var view = (View)bindable;
1286 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1291 /// ClippingModeProperty
1293 [EditorBrowsable(EditorBrowsableState.Never)]
1294 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1296 var view = (View)bindable;
1297 if (newValue != null)
1299 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1302 defaultValueCreator: (bindable) =>
1304 var view = (View)bindable;
1306 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1308 NUILog.Error("ClippingMode get error!");
1310 return (ClippingModeType)temp;
1314 /// InheritLayoutDirectionProperty
1316 [EditorBrowsable(EditorBrowsableState.Never)]
1317 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1319 var view = (View)bindable;
1320 if (newValue != null)
1322 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1325 defaultValueCreator: (bindable) =>
1327 var view = (View)bindable;
1329 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1334 /// LayoutDirectionProperty
1336 [EditorBrowsable(EditorBrowsableState.Never)]
1337 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1339 var view = (View)bindable;
1340 if (newValue != null)
1342 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1345 defaultValueCreator: (bindable) =>
1347 var view = (View)bindable;
1349 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1351 NUILog.Error("LAYOUT_DIRECTION get error!");
1353 return (ViewLayoutDirectionType)temp;
1359 [EditorBrowsable(EditorBrowsableState.Never)]
1360 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1362 var view = (View)bindable;
1363 if (newValue != null)
1365 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1368 defaultValueCreator: (bindable) =>
1370 var view = (View)bindable;
1371 Extents temp = new Extents(0, 0, 0, 0);
1372 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1377 /// UpdateSizeHintProperty
1379 [EditorBrowsable(EditorBrowsableState.Never)]
1380 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1382 var view = (View)bindable;
1383 if (newValue != null)
1385 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1388 defaultValueCreator: (bindable) =>
1390 var view = (View)bindable;
1392 Vector2 temp = new Vector2(0.0f, 0.0f);
1393 Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1398 /// ImageShadow Property
1400 [EditorBrowsable(EditorBrowsableState.Never)]
1401 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(ImageShadow), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1403 var view = (View)bindable;
1404 bool hadShadowExtents = view.HasShadowExtents();
1406 (view.imageShadow ?? (view.imageShadow = new CloneableViewSelector<ImageShadow>(view, view.OnControlStateChangedForShadow))).Set(newValue);
1407 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), ImageShadow.ToPropertyValue(view.imageShadow.GetValue(), view));
1409 view.boxShadow?.Clear();
1410 view.UpdateRelayoutCallbackForShadow(hadShadowExtents);
1412 defaultValueCreator: (bindable) =>
1414 var view = (View)bindable;
1415 return view.imageShadow?.GetValue();
1421 [EditorBrowsable(EditorBrowsableState.Never)]
1422 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Shadow), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1424 var view = (View)bindable;
1425 bool hadShadowExtents = view.HasShadowExtents();
1427 (view.boxShadow ?? (view.boxShadow = new CloneableViewSelector<Shadow>(view, view.OnControlStateChangedForShadow))).Set(newValue);
1428 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), Shadow.ToPropertyValue(view.boxShadow.GetValue(), view));
1430 view.imageShadow?.Clear();
1431 view.UpdateRelayoutCallbackForShadow(hadShadowExtents);
1433 defaultValueCreator: (bindable) =>
1435 var view = (View)bindable;
1436 return view.boxShadow?.GetValue();
1440 /// CornerRadius Property
1442 [EditorBrowsable(EditorBrowsableState.Never)]
1443 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1445 var view = (View)bindable;
1447 (view.cornerRadius ?? (view.cornerRadius = new ViewSelector<float?>(view, view.OnControlStateChangedForCornerRadius))).Set(newValue);
1449 view.ApplyCornerRadius();
1451 // Update shadow visual
1454 defaultValueCreator: (bindable) =>
1456 var view = (View)bindable;
1457 return view.cornerRadius?.GetValue();
1461 /// XamlStyleProperty
1463 [EditorBrowsable(EditorBrowsableState.Never)]
1464 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);