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;
86 [EditorBrowsable(EditorBrowsableState.Never)]
87 public static readonly BindableProperty ColorProperty = BindableProperty.Create("Color", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
89 var view = (View)bindable;
92 view.SetColor((Color)newValue);
95 defaultValueCreator: (bindable) =>
97 var view = (View)bindable;
98 Color color = new Color(0.0f, 0.0f, 0.0f, 0.0f);
99 view.GetProperty(Interop.ActorProperty.Actor_Property_COLOR_get()).Get(color);
103 /// <summary> BackgroundImageProperty </summary>
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
107 var view = (View)bindable;
108 if (newValue != null)
110 string url = (string)newValue;
112 if (Rectangle.IsNullOrZero(view.backgroundImageBorder))
114 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, string.IsNullOrEmpty(url) ? new PropertyValue() : new PropertyValue(url));
116 // Apply CornerRadius if needs
117 if (view.cornerRadius != null && view.cornerRadius.GetValue() != 0)
119 view.ApplyCornerRadius();
124 var visual = new NPatchVisual();
126 visual.Border = view.backgroundImageBorder;
127 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new PropertyValue(visual.OutputVisualMap));
130 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
133 defaultValueCreator: (bindable) =>
135 var view = (View)bindable;
136 string backgroundImage = "";
138 Tizen.NUI.PropertyMap background = view.Background;
140 background.Find(Visual.Property.Type)?.Get(out visualType);
141 if ((visualType == (int)Visual.Type.Image) || (visualType == (int)Visual.Type.NPatch))
143 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
146 return backgroundImage;
148 /// <summary>BackgroundImageBorderProperty</summary>
149 [EditorBrowsable(EditorBrowsableState.Never)]
150 public static readonly BindableProperty BackgroundImageBorderProperty = BindableProperty.Create(nameof(BackgroundImageBorder), typeof(Rectangle), typeof(View), default(Rectangle), propertyChanged: (bindable, oldValue, newValue) =>
152 var view = (View)bindable;
153 string url = view.BackgroundImage;
154 view.backgroundImageBorder = (Rectangle)newValue;
156 if (string.IsNullOrEmpty(url))
161 if (Rectangle.IsNullOrZero(view.backgroundImageBorder))
163 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new PropertyValue(url));
165 // Apply CornerRadius if needs
166 if (view.cornerRadius != null && view.cornerRadius.GetValue() != 0)
168 view.ApplyCornerRadius();
173 var visual = new NPatchVisual();
175 visual.Border = view.backgroundImageBorder;
176 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new PropertyValue(visual.OutputVisualMap));
179 defaultValueCreator: (bindable) =>
181 var view = (View)bindable;
182 return view.backgroundImageBorder == null ? new Rectangle(view.OnBackgroundImageBorderChanged) : new Rectangle(view.OnBackgroundImageBorderChanged, view.backgroundImageBorder);
185 /// BackgroundProperty
187 [EditorBrowsable(EditorBrowsableState.Never)]
188 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
190 var view = (View)bindable;
191 if (newValue != null)
193 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
196 defaultValueCreator: (bindable) =>
198 var view = (View)bindable;
199 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
200 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
207 [EditorBrowsable(EditorBrowsableState.Never)]
208 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
210 var view = (View)bindable;
211 if (newValue != null)
213 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
216 defaultValueCreator: (bindable) =>
218 var view = (View)bindable;
220 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
222 NUILog.Error("State get error!");
226 case 0: return States.Normal;
227 case 1: return States.Focused;
228 case 2: return States.Disabled;
229 default: return States.Normal;
236 [EditorBrowsable(EditorBrowsableState.Never)]
237 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
239 var view = (View)bindable;
240 string valueToString = "";
241 if (newValue != null)
243 valueToString = ((States)newValue).GetDescription<States>();
244 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
247 defaultValueCreator: (bindable) =>
249 var view = (View)bindable;
251 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
253 NUILog.Error("subState get error!");
255 return temp.GetValueByDescription<States>();
261 [EditorBrowsable(EditorBrowsableState.Never)]
262 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
264 var view = (View)bindable;
265 if (newValue != null)
267 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
270 defaultValueCreator: (bindable) =>
272 var view = (View)bindable;
273 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
274 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
281 [EditorBrowsable(EditorBrowsableState.Never)]
282 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
284 var view = (View)bindable;
285 if (newValue != null)
287 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
290 defaultValueCreator: (bindable) =>
292 var view = (View)bindable;
294 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
299 /// AlignSelfProperty
301 [EditorBrowsable(EditorBrowsableState.Never)]
302 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
304 var view = (View)bindable;
305 if (newValue != null)
307 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
310 defaultValueCreator: (bindable) =>
312 var view = (View)bindable;
314 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
319 /// FlexMarginProperty
321 [EditorBrowsable(EditorBrowsableState.Never)]
322 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
324 var view = (View)bindable;
325 if (newValue != null)
327 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
330 defaultValueCreator: (bindable) =>
332 var view = (View)bindable;
333 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
334 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
339 /// CellIndexProperty
341 [EditorBrowsable(EditorBrowsableState.Never)]
342 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
344 var view = (View)bindable;
345 if (newValue != null)
347 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
350 defaultValueCreator: (bindable) =>
352 var view = (View)bindable;
353 Vector2 temp = new Vector2(0.0f, 0.0f);
354 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
361 [EditorBrowsable(EditorBrowsableState.Never)]
362 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", 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.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
370 defaultValueCreator: (bindable) =>
372 var view = (View)bindable;
374 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
379 /// ColumnSpanProperty
381 [EditorBrowsable(EditorBrowsableState.Never)]
382 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
384 var view = (View)bindable;
385 if (newValue != null)
387 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
390 defaultValueCreator: (bindable) =>
392 var view = (View)bindable;
394 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
399 /// CellHorizontalAlignmentProperty
401 [EditorBrowsable(EditorBrowsableState.Never)]
402 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
404 var view = (View)bindable;
405 string valueToString = "";
407 if (newValue != null)
409 valueToString = ((HorizontalAlignmentType)newValue).GetDescription<HorizontalAlignmentType>();
410 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
413 defaultValueCreator: (bindable) =>
415 var view = (View)bindable;
417 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
419 NUILog.Error("CellHorizontalAlignment get error!");
422 return temp.GetValueByDescription<HorizontalAlignmentType>();
426 /// CellVerticalAlignmentProperty
428 [EditorBrowsable(EditorBrowsableState.Never)]
429 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
431 var view = (View)bindable;
432 string valueToString = "";
434 if (newValue != null)
436 valueToString = ((VerticalAlignmentType)newValue).GetDescription<VerticalAlignmentType>();
437 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
440 defaultValueCreator: (bindable) =>
442 var view = (View)bindable;
444 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
446 NUILog.Error("CellVerticalAlignment get error!");
449 return temp.GetValueByDescription<VerticalAlignmentType>();
453 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
454 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
456 [EditorBrowsable(EditorBrowsableState.Never)]
457 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
459 var view = (View)bindable;
460 if (newValue != null)
462 view.Weight = (float)newValue;
466 defaultValueCreator: (bindable) =>
468 var view = (View)bindable;
473 /// LeftFocusableViewProperty
475 [EditorBrowsable(EditorBrowsableState.Never)]
476 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
478 var view = (View)bindable;
479 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
480 else { view.LeftFocusableViewId = -1; }
482 defaultValueCreator: (bindable) =>
484 var view = (View)bindable;
485 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
490 /// RightFocusableViewProperty
492 [EditorBrowsable(EditorBrowsableState.Never)]
493 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
495 var view = (View)bindable;
496 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
497 else { view.RightFocusableViewId = -1; }
499 defaultValueCreator: (bindable) =>
501 var view = (View)bindable;
502 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
507 /// UpFocusableViewProperty
509 [EditorBrowsable(EditorBrowsableState.Never)]
510 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
512 var view = (View)bindable;
513 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
514 else { view.UpFocusableViewId = -1; }
516 defaultValueCreator: (bindable) =>
518 var view = (View)bindable;
519 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
524 /// DownFocusableViewProperty
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
529 var view = (View)bindable;
530 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
531 else { view.DownFocusableViewId = -1; }
533 defaultValueCreator: (bindable) =>
535 var view = (View)bindable;
536 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
541 /// FocusableProperty
543 [EditorBrowsable(EditorBrowsableState.Never)]
544 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
546 var view = (View)bindable;
547 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
549 defaultValueCreator: (bindable) =>
551 var view = (View)bindable;
552 return view.IsKeyboardFocusable();
558 [EditorBrowsable(EditorBrowsableState.Never)]
559 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
561 var view = (View)bindable;
562 if (newValue != null)
564 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
567 defaultValueCreator: (bindable) =>
569 var view = (View)bindable;
570 Size temp = new Size(0.0f, 0.0f, 0.0f);
571 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
572 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
579 [EditorBrowsable(EditorBrowsableState.Never)]
580 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
582 var view = (View)bindable;
583 if (newValue != null)
585 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
588 defaultValueCreator: (bindable) =>
590 var view = (View)bindable;
592 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
597 /// Position2DProperty
599 [EditorBrowsable(EditorBrowsableState.Never)]
600 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
602 var view = (View)bindable;
603 if (newValue != null)
605 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
608 defaultValueCreator: (bindable) =>
610 var view = (View)bindable;
611 Position temp = new Position(0.0f, 0.0f, 0.0f);
612 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
613 return new Position2D(temp);
617 /// PositionUsesPivotPointProperty
619 [EditorBrowsable(EditorBrowsableState.Never)]
620 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
622 var view = (View)bindable;
623 if (newValue != null)
625 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
628 defaultValueCreator: (bindable) =>
630 var view = (View)bindable;
632 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
637 /// SiblingOrderProperty
639 [EditorBrowsable(EditorBrowsableState.Never)]
640 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
642 var view = (View)bindable;
644 if (newValue != null)
646 value = (int)newValue;
649 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
652 var siblings = view.GetParent()?.Children;
653 if (siblings != null)
655 int currentOrder = siblings.IndexOf(view);
656 if (value != currentOrder)
658 if (value == 0) { view.LowerToBottom(); }
659 else if (value < siblings.Count - 1)
661 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
662 else { view.LowerBelow(siblings[value]); }
664 else { view.RaiseToTop(); }
669 defaultValueCreator: (bindable) =>
671 var view = (View)bindable;
672 var parentChildren = view.GetParent()?.Children;
673 int currentOrder = 0;
674 if (parentChildren != null)
676 currentOrder = parentChildren.IndexOf(view);
678 if (currentOrder < 0) { return 0; }
679 else if (currentOrder < parentChildren.Count) { return currentOrder; }
686 /// ParentOriginProperty
688 [EditorBrowsable(EditorBrowsableState.Never)]
689 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
691 var view = (View)bindable;
692 if (newValue != null)
694 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
697 defaultValueCreator: (bindable) =>
699 var view = (View)bindable;
700 Position temp = new Position(0.0f, 0.0f, 0.0f);
701 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
707 /// PivotPointProperty
709 [EditorBrowsable(EditorBrowsableState.Never)]
710 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
712 var view = (View)bindable;
713 if (newValue != null)
715 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
718 defaultValueCreator: (bindable) =>
720 var view = (View)bindable;
721 Position temp = new Position(0.0f, 0.0f, 0.0f);
722 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
727 /// SizeWidthProperty
729 [EditorBrowsable(EditorBrowsableState.Never)]
730 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", 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_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
738 defaultValueCreator: (bindable) =>
740 var view = (View)bindable;
742 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
747 /// SizeHeightProperty
749 [EditorBrowsable(EditorBrowsableState.Never)]
750 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
752 var view = (View)bindable;
753 if (newValue != null)
755 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
758 defaultValueCreator: (bindable) =>
760 var view = (View)bindable;
762 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
769 [EditorBrowsable(EditorBrowsableState.Never)]
770 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
772 var view = (View)bindable;
773 if (newValue != null)
775 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
778 defaultValueCreator: (bindable) =>
780 var view = (View)bindable;
781 Position temp = new Position(0.0f, 0.0f, 0.0f);
782 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
787 /// PositionXProperty
789 [EditorBrowsable(EditorBrowsableState.Never)]
790 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", 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_X, new Tizen.NUI.PropertyValue((float)newValue));
798 defaultValueCreator: (bindable) =>
800 var view = (View)bindable;
802 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
807 /// PositionYProperty
809 [EditorBrowsable(EditorBrowsableState.Never)]
810 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", 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_Y, new Tizen.NUI.PropertyValue((float)newValue));
818 defaultValueCreator: (bindable) =>
820 var view = (View)bindable;
822 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
827 /// PositionZProperty
829 [EditorBrowsable(EditorBrowsableState.Never)]
830 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
832 var view = (View)bindable;
833 if (newValue != null)
835 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
838 defaultValueCreator: (bindable) =>
840 var view = (View)bindable;
842 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
847 /// OrientationProperty
849 [EditorBrowsable(EditorBrowsableState.Never)]
850 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), 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.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
858 defaultValueCreator: (bindable) =>
860 var view = (View)bindable;
861 Rotation temp = new Rotation();
862 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
869 [EditorBrowsable(EditorBrowsableState.Never)]
870 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
872 var view = (View)bindable;
873 if (newValue != null)
875 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
878 defaultValueCreator: (bindable) =>
880 var view = (View)bindable;
881 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
882 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
889 [EditorBrowsable(EditorBrowsableState.Never)]
890 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", 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_X, new Tizen.NUI.PropertyValue((float)newValue));
898 defaultValueCreator: (bindable) =>
900 var view = (View)bindable;
902 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
909 [EditorBrowsable(EditorBrowsableState.Never)]
910 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", 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_Y, new Tizen.NUI.PropertyValue((float)newValue));
918 defaultValueCreator: (bindable) =>
920 var view = (View)bindable;
922 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
929 [EditorBrowsable(EditorBrowsableState.Never)]
930 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
932 var view = (View)bindable;
933 if (newValue != null)
935 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
938 defaultValueCreator: (bindable) =>
940 var view = (View)bindable;
942 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
949 [EditorBrowsable(EditorBrowsableState.Never)]
950 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
952 var view = (View)bindable;
953 if (newValue != null)
955 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
958 defaultValueCreator: (bindable) =>
960 var view = (View)bindable;
962 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
967 /// SensitiveProperty
969 [EditorBrowsable(EditorBrowsableState.Never)]
970 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", 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.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
978 defaultValueCreator: (bindable) =>
980 var view = (View)bindable;
982 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
987 /// LeaveRequiredProperty
989 [EditorBrowsable(EditorBrowsableState.Never)]
990 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", 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.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
998 defaultValueCreator: (bindable) =>
1000 var view = (View)bindable;
1002 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
1007 /// InheritOrientationProperty
1009 [EditorBrowsable(EditorBrowsableState.Never)]
1010 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", 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_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
1018 defaultValueCreator: (bindable) =>
1020 var view = (View)bindable;
1022 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
1027 /// InheritScaleProperty
1029 [EditorBrowsable(EditorBrowsableState.Never)]
1030 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1032 var view = (View)bindable;
1033 if (newValue != null)
1035 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
1038 defaultValueCreator: (bindable) =>
1040 var view = (View)bindable;
1042 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
1047 /// DrawModeProperty
1049 [EditorBrowsable(EditorBrowsableState.Never)]
1050 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
1052 var view = (View)bindable;
1053 if (newValue != null)
1055 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1058 defaultValueCreator: (bindable) =>
1060 var view = (View)bindable;
1062 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
1064 NUILog.Error("DrawMode get error!");
1066 return temp.GetValueByDescription<DrawModeType>();
1070 /// SizeModeFactorProperty
1072 [EditorBrowsable(EditorBrowsableState.Never)]
1073 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1075 var view = (View)bindable;
1076 if (newValue != null)
1078 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
1081 defaultValueCreator: (bindable) =>
1083 var view = (View)bindable;
1084 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1085 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
1090 /// WidthResizePolicyProperty
1092 [EditorBrowsable(EditorBrowsableState.Never)]
1093 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", 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.WIDTH_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.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1107 NUILog.Error("WidthResizePolicy get error!");
1109 return temp.GetValueByDescription<ResizePolicyType>();
1113 /// HeightResizePolicyProperty
1115 [EditorBrowsable(EditorBrowsableState.Never)]
1116 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1118 var view = (View)bindable;
1119 if (newValue != null)
1121 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1124 defaultValueCreator: (bindable) =>
1126 var view = (View)bindable;
1128 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1130 NUILog.Error("HeightResizePolicy get error!");
1132 return temp.GetValueByDescription<ResizePolicyType>();
1136 /// SizeScalePolicyProperty
1138 [EditorBrowsable(EditorBrowsableState.Never)]
1139 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1141 var view = (View)bindable;
1142 string valueToString = "";
1143 if (newValue != null)
1145 valueToString = ((SizeScalePolicyType)newValue).GetDescription<SizeScalePolicyType>();
1146 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1149 defaultValueCreator: (bindable) =>
1151 var view = (View)bindable;
1153 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1155 NUILog.Error("SizeScalePolicy get error!");
1157 return temp.GetValueByDescription<SizeScalePolicyType>();
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(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1246 var view = (View)bindable;
1247 Size2D temp = newValue as Size2D;
1250 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(temp));
1254 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MinimumSizeProperty!");
1257 defaultValueCreator: (bindable) =>
1259 var view = (View)bindable;
1260 Size2D temp = new Size2D(0, 0);
1261 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1266 /// MaximumSizeProperty
1268 [EditorBrowsable(EditorBrowsableState.Never)]
1269 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1271 var view = (View)bindable;
1272 Size2D temp = newValue as Size2D;
1275 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(temp));
1279 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MaximumSizeProperty!");
1282 defaultValueCreator: (bindable) =>
1284 var view = (View)bindable;
1285 Size2D temp = new Size2D(0, 0);
1286 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1291 /// InheritPositionProperty
1293 [EditorBrowsable(EditorBrowsableState.Never)]
1294 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1296 var view = (View)bindable;
1297 if (newValue != null)
1299 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1302 defaultValueCreator: (bindable) =>
1304 var view = (View)bindable;
1306 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1311 /// ClippingModeProperty
1313 [EditorBrowsable(EditorBrowsableState.Never)]
1314 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1316 var view = (View)bindable;
1317 if (newValue != null)
1319 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1322 defaultValueCreator: (bindable) =>
1324 var view = (View)bindable;
1326 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1328 NUILog.Error("ClippingMode get error!");
1330 return (ClippingModeType)temp;
1334 /// InheritLayoutDirectionProperty
1336 [EditorBrowsable(EditorBrowsableState.Never)]
1337 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1339 var view = (View)bindable;
1340 if (newValue != null)
1342 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1345 defaultValueCreator: (bindable) =>
1347 var view = (View)bindable;
1349 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1354 /// LayoutDirectionProperty
1356 [EditorBrowsable(EditorBrowsableState.Never)]
1357 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1359 var view = (View)bindable;
1360 if (newValue != null)
1362 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1365 defaultValueCreator: (bindable) =>
1367 var view = (View)bindable;
1369 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1371 NUILog.Error("LAYOUT_DIRECTION get error!");
1373 return (ViewLayoutDirectionType)temp;
1379 [EditorBrowsable(EditorBrowsableState.Never)]
1380 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1382 var view = (View)bindable;
1383 if (newValue != null)
1385 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1388 defaultValueCreator: (bindable) =>
1390 var view = (View)bindable;
1391 Extents temp = new Extents(0, 0, 0, 0);
1392 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1397 /// UpdateSizeHintProperty
1399 [EditorBrowsable(EditorBrowsableState.Never)]
1400 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1402 var view = (View)bindable;
1403 if (newValue != null)
1405 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1408 defaultValueCreator: (bindable) =>
1410 var view = (View)bindable;
1412 Vector2 temp = new Vector2(0.0f, 0.0f);
1413 Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1418 /// ImageShadow Property
1420 [EditorBrowsable(EditorBrowsableState.Never)]
1421 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(ImageShadow), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1423 var view = (View)bindable;
1424 bool hadShadowExtents = view.HasShadowExtents();
1426 (view.imageShadow ?? (view.imageShadow = new CloneableViewSelector<ImageShadow>(view, view.OnControlStateChangedForShadow))).Set(newValue);
1427 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), ImageShadow.ToPropertyValue(view.imageShadow.GetValue(), view));
1429 view.boxShadow?.Clear();
1430 view.UpdateRelayoutCallbackForShadow(hadShadowExtents);
1432 defaultValueCreator: (bindable) =>
1434 var view = (View)bindable;
1435 return view.imageShadow?.GetValue();
1441 [EditorBrowsable(EditorBrowsableState.Never)]
1442 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Shadow), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1444 var view = (View)bindable;
1445 bool hadShadowExtents = view.HasShadowExtents();
1447 (view.boxShadow ?? (view.boxShadow = new CloneableViewSelector<Shadow>(view, view.OnControlStateChangedForShadow))).Set(newValue);
1448 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), Shadow.ToPropertyValue(view.boxShadow.GetValue(), view));
1450 view.imageShadow?.Clear();
1451 view.UpdateRelayoutCallbackForShadow(hadShadowExtents);
1453 defaultValueCreator: (bindable) =>
1455 var view = (View)bindable;
1456 return view.boxShadow?.GetValue();
1460 /// CornerRadius Property
1462 [EditorBrowsable(EditorBrowsableState.Never)]
1463 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1465 var view = (View)bindable;
1467 (view.cornerRadius ?? (view.cornerRadius = new ViewSelector<float?>(view, view.OnControlStateChangedForCornerRadius))).Set(newValue);
1469 view.ApplyCornerRadius();
1471 // Update shadow visual
1474 defaultValueCreator: (bindable) =>
1476 var view = (View)bindable;
1477 return view.cornerRadius?.GetValue();
1481 /// XamlStyleProperty
1483 [EditorBrowsable(EditorBrowsableState.Never)]
1484 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);