2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.BaseComponents
24 /// View is the base class for all views.
26 /// <since_tizen> 3 </since_tizen>
27 public partial class View
32 [EditorBrowsable(EditorBrowsableState.Never)]
33 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
35 var view = (View)bindable;
38 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STYLE_NAME, new Tizen.NUI.PropertyValue((string)newValue));
41 defaultValueCreator: (bindable) =>
43 var view = (View)bindable;
45 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STYLE_NAME).Get(out temp);
50 /// BackgroundColorProperty
52 [EditorBrowsable(EditorBrowsableState.Never)]
53 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create("BackgroundColor", typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
55 var view = (View)bindable;
58 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((Color)newValue));
61 defaultValueCreator: (bindable) =>
63 var view = (View)bindable;
64 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
66 Tizen.NUI.PropertyMap background = view.Background;
68 background.Find(Visual.Property.Type)?.Get(out visualType);
69 if (visualType == (int)Visual.Type.Color)
71 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
74 return backgroundColor;
77 /// <summary> BackgroundImageProperty </summary>
78 [EditorBrowsable(EditorBrowsableState.Never)]
79 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create("BackgroundImage", typeof(string), typeof(View), default(string), propertyChanged: (bindable, oldValue, newValue) =>
81 var view = (View)bindable;
84 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((string)newValue));
85 view.BackgroundImageSynchronosLoading = view._backgroundImageSynchronosLoading;
88 defaultValueCreator: (bindable) =>
90 var view = (View)bindable;
91 string backgroundImage = "";
93 Tizen.NUI.PropertyMap background = view.Background;
95 background.Find(Visual.Property.Type)?.Get(out visualType);
96 if (visualType == (int)Visual.Type.Image)
98 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
101 return backgroundImage;
103 /// <summary>BackgroundImageBorderProperty</summary>
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public static readonly BindableProperty BackgroundImageBorderProperty = BindableProperty.Create(nameof(BackgroundImageBorder), typeof(Rectangle), typeof(View), default(Rectangle), propertyChanged: (bindable, oldValue, newValue) =>
107 var view = (View)bindable;
108 if (null != newValue)
110 view.backgroundImageBorder = (Rectangle)newValue;
113 defaultValueCreator: (bindable) =>
115 var view = (View)bindable;
116 return view.backgroundImageBorder;
119 /// BackgroundProperty
121 [EditorBrowsable(EditorBrowsableState.Never)]
122 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create("Background", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
124 var view = (View)bindable;
125 if (newValue != null)
127 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
130 defaultValueCreator: (bindable) =>
132 var view = (View)bindable;
133 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
134 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.BACKGROUND).Get(temp);
141 [EditorBrowsable(EditorBrowsableState.Never)]
142 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
144 var view = (View)bindable;
145 if (newValue != null)
147 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
150 defaultValueCreator: (bindable) =>
152 var view = (View)bindable;
154 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.STATE).Get(out temp) == false)
156 NUILog.Error("State get error!");
160 case 0: return States.Normal;
161 case 1: return States.Focused;
162 case 2: return States.Disabled;
163 default: return States.Normal;
170 [EditorBrowsable(EditorBrowsableState.Never)]
171 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(States), typeof(View), States.Normal, propertyChanged: (bindable, oldValue, newValue) =>
173 var view = (View)bindable;
174 string valueToString = "";
175 if (newValue != null)
177 valueToString = ((States)newValue).GetDescription<States>();
178 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SUB_STATE, new Tizen.NUI.PropertyValue(valueToString));
181 defaultValueCreator: (bindable) =>
183 var view = (View)bindable;
185 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SUB_STATE).Get(out temp) == false)
187 NUILog.Error("subState get error!");
189 return temp.GetValueByDescription<States>();
195 [EditorBrowsable(EditorBrowsableState.Never)]
196 public static readonly BindableProperty TooltipProperty = BindableProperty.Create("Tooltip", typeof(PropertyMap), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
198 var view = (View)bindable;
199 if (newValue != null)
201 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
204 defaultValueCreator: (bindable) =>
206 var view = (View)bindable;
207 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
208 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.TOOLTIP).Get(temp);
215 [EditorBrowsable(EditorBrowsableState.Never)]
216 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
218 var view = (View)bindable;
219 if (newValue != null)
221 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
224 defaultValueCreator: (bindable) =>
226 var view = (View)bindable;
228 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
233 /// AlignSelfProperty
235 [EditorBrowsable(EditorBrowsableState.Never)]
236 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
238 var view = (View)bindable;
239 if (newValue != null)
241 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF, new Tizen.NUI.PropertyValue((int)newValue));
244 defaultValueCreator: (bindable) =>
246 var view = (View)bindable;
248 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.ALIGN_SELF).Get(out temp);
253 /// FlexMarginProperty
255 [EditorBrowsable(EditorBrowsableState.Never)]
256 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
258 var view = (View)bindable;
259 if (newValue != null)
261 Tizen.NUI.Object.SetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN, new Tizen.NUI.PropertyValue((Vector4)newValue));
264 defaultValueCreator: (bindable) =>
266 var view = (View)bindable;
267 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
268 Tizen.NUI.Object.GetProperty(view.swigCPtr, FlexContainer.ChildProperty.FLEX_MARGIN).Get(temp);
273 /// CellIndexProperty
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
278 var view = (View)bindable;
279 if (newValue != null)
281 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX, new Tizen.NUI.PropertyValue((Vector2)newValue));
284 defaultValueCreator: (bindable) =>
286 var view = (View)bindable;
287 Vector2 temp = new Vector2(0.0f, 0.0f);
288 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_INDEX).Get(temp);
295 [EditorBrowsable(EditorBrowsableState.Never)]
296 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
298 var view = (View)bindable;
299 if (newValue != null)
301 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
304 defaultValueCreator: (bindable) =>
306 var view = (View)bindable;
308 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.ROW_SPAN).Get(out temp);
313 /// ColumnSpanProperty
315 [EditorBrowsable(EditorBrowsableState.Never)]
316 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
318 var view = (View)bindable;
319 if (newValue != null)
321 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN, new Tizen.NUI.PropertyValue((float)newValue));
324 defaultValueCreator: (bindable) =>
326 var view = (View)bindable;
328 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.COLUMN_SPAN).Get(out temp);
333 /// CellHorizontalAlignmentProperty
335 [EditorBrowsable(EditorBrowsableState.Never)]
336 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (bindable, oldValue, newValue) =>
338 var view = (View)bindable;
339 string valueToString = "";
341 if (newValue != null)
343 valueToString = ((HorizontalAlignmentType)newValue).GetDescription<HorizontalAlignmentType>();
344 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
347 defaultValueCreator: (bindable) =>
349 var view = (View)bindable;
351 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_HORIZONTAL_ALIGNMENT).Get(out temp) == false)
353 NUILog.Error("CellHorizontalAlignment get error!");
356 return temp.GetValueByDescription<HorizontalAlignmentType>();
360 /// CellVerticalAlignmentProperty
362 [EditorBrowsable(EditorBrowsableState.Never)]
363 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (bindable, oldValue, newValue) =>
365 var view = (View)bindable;
366 string valueToString = "";
368 if (newValue != null)
370 valueToString = ((VerticalAlignmentType)newValue).GetDescription<VerticalAlignmentType>();
371 Tizen.NUI.Object.SetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue(valueToString));
374 defaultValueCreator: (bindable) =>
376 var view = (View)bindable;
378 Tizen.NUI.Object.GetProperty(view.swigCPtr, TableView.ChildProperty.CELL_VERTICAL_ALIGNMENT).Get(out temp);
380 NUILog.Error("CellVerticalAlignment get error!");
383 return temp.GetValueByDescription<VerticalAlignmentType>();
387 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
388 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
390 [EditorBrowsable(EditorBrowsableState.Never)]
391 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
393 var view = (View)bindable;
394 if (newValue != null)
396 view.Weight = (float)newValue;
400 defaultValueCreator: (bindable) =>
402 var view = (View)bindable;
407 /// LeftFocusableViewProperty
409 [EditorBrowsable(EditorBrowsableState.Never)]
410 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
412 var view = (View)bindable;
413 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
414 else { view.LeftFocusableViewId = -1; }
416 defaultValueCreator: (bindable) =>
418 var view = (View)bindable;
419 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
424 /// RightFocusableViewProperty
426 [EditorBrowsable(EditorBrowsableState.Never)]
427 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
429 var view = (View)bindable;
430 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
431 else { view.RightFocusableViewId = -1; }
433 defaultValueCreator: (bindable) =>
435 var view = (View)bindable;
436 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
441 /// UpFocusableViewProperty
443 [EditorBrowsable(EditorBrowsableState.Never)]
444 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
446 var view = (View)bindable;
447 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
448 else { view.UpFocusableViewId = -1; }
450 defaultValueCreator: (bindable) =>
452 var view = (View)bindable;
453 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
458 /// DownFocusableViewProperty
460 [EditorBrowsable(EditorBrowsableState.Never)]
461 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
463 var view = (View)bindable;
464 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
465 else { view.DownFocusableViewId = -1; }
467 defaultValueCreator: (bindable) =>
469 var view = (View)bindable;
470 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
475 /// FocusableProperty
477 [EditorBrowsable(EditorBrowsableState.Never)]
478 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
480 var view = (View)bindable;
481 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
483 defaultValueCreator: (bindable) =>
485 var view = (View)bindable;
486 return view.IsKeyboardFocusable();
492 [EditorBrowsable(EditorBrowsableState.Never)]
493 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
495 var view = (View)bindable;
496 if (newValue != null)
498 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
501 defaultValueCreator: (bindable) =>
503 var view = (View)bindable;
504 Size temp = new Size(0.0f, 0.0f, 0.0f);
505 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
506 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
513 [EditorBrowsable(EditorBrowsableState.Never)]
514 public static readonly BindableProperty OpacityProperty = BindableProperty.Create("Opacity", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
516 var view = (View)bindable;
517 if (newValue != null)
519 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)newValue));
522 defaultValueCreator: (bindable) =>
524 var view = (View)bindable;
526 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.OPACITY).Get(out temp);
531 /// Position2DProperty
533 [EditorBrowsable(EditorBrowsableState.Never)]
534 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
536 var view = (View)bindable;
537 if (newValue != null)
539 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
542 defaultValueCreator: (bindable) =>
544 var view = (View)bindable;
545 Position temp = new Position(0.0f, 0.0f, 0.0f);
546 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
547 return new Position2D(temp);
551 /// PositionUsesPivotPointProperty
553 [EditorBrowsable(EditorBrowsableState.Never)]
554 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
556 var view = (View)bindable;
557 if (newValue != null)
559 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT, new Tizen.NUI.PropertyValue((bool)newValue));
562 defaultValueCreator: (bindable) =>
564 var view = (View)bindable;
566 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_USES_ANCHOR_POINT).Get(out temp);
571 /// SiblingOrderProperty
573 [EditorBrowsable(EditorBrowsableState.Never)]
574 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
576 var view = (View)bindable;
578 if (newValue != null)
580 value = (int)newValue;
583 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
586 var siblings = view.GetParent()?.Children;
587 if (siblings != null)
589 int currentOrder = siblings.IndexOf(view);
590 if (value != currentOrder)
592 if (value == 0) { view.LowerToBottom(); }
593 else if (value < siblings.Count - 1)
595 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
596 else { view.LowerBelow(siblings[value]); }
598 else { view.RaiseToTop(); }
603 defaultValueCreator: (bindable) =>
605 var view = (View)bindable;
606 var parentChildren = view.GetParent()?.Children;
607 int currentOrder = 0;
608 if (parentChildren != null)
610 currentOrder = parentChildren.IndexOf(view);
612 if (currentOrder < 0) { return 0; }
613 else if (currentOrder < parentChildren.Count) { return currentOrder; }
620 /// ParentOriginProperty
622 [EditorBrowsable(EditorBrowsableState.Never)]
623 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
625 var view = (View)bindable;
626 if (newValue != null)
628 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN, new Tizen.NUI.PropertyValue((Position)newValue));
631 defaultValueCreator: (bindable) =>
633 var view = (View)bindable;
634 Position temp = new Position(0.0f, 0.0f, 0.0f);
635 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PARENT_ORIGIN).Get(temp);
641 /// PivotPointProperty
643 [EditorBrowsable(EditorBrowsableState.Never)]
644 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
646 var view = (View)bindable;
647 if (newValue != null)
649 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ANCHOR_POINT, new Tizen.NUI.PropertyValue((Position)newValue));
652 defaultValueCreator: (bindable) =>
654 var view = (View)bindable;
655 Position temp = new Position(0.0f, 0.0f, 0.0f);
656 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ANCHOR_POINT).Get(temp);
661 /// SizeWidthProperty
663 [EditorBrowsable(EditorBrowsableState.Never)]
664 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
666 var view = (View)bindable;
667 if (newValue != null)
669 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_WIDTH, new Tizen.NUI.PropertyValue((float)newValue));
672 defaultValueCreator: (bindable) =>
674 var view = (View)bindable;
676 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_WIDTH).Get(out temp);
681 /// SizeHeightProperty
683 [EditorBrowsable(EditorBrowsableState.Never)]
684 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
686 var view = (View)bindable;
687 if (newValue != null)
689 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT, new Tizen.NUI.PropertyValue((float)newValue));
692 defaultValueCreator: (bindable) =>
694 var view = (View)bindable;
696 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_HEIGHT).Get(out temp);
703 [EditorBrowsable(EditorBrowsableState.Never)]
704 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
706 var view = (View)bindable;
707 if (newValue != null)
709 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
712 defaultValueCreator: (bindable) =>
714 var view = (View)bindable;
715 Position temp = new Position(0.0f, 0.0f, 0.0f);
716 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION).Get(temp);
721 /// PositionXProperty
723 [EditorBrowsable(EditorBrowsableState.Never)]
724 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
726 var view = (View)bindable;
727 if (newValue != null)
729 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_X, new Tizen.NUI.PropertyValue((float)newValue));
732 defaultValueCreator: (bindable) =>
734 var view = (View)bindable;
736 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_X).Get(out temp);
741 /// PositionYProperty
743 [EditorBrowsable(EditorBrowsableState.Never)]
744 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
746 var view = (View)bindable;
747 if (newValue != null)
749 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Y, new Tizen.NUI.PropertyValue((float)newValue));
752 defaultValueCreator: (bindable) =>
754 var view = (View)bindable;
756 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Y).Get(out temp);
761 /// PositionZProperty
763 [EditorBrowsable(EditorBrowsableState.Never)]
764 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
766 var view = (View)bindable;
767 if (newValue != null)
769 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.POSITION_Z, new Tizen.NUI.PropertyValue((float)newValue));
772 defaultValueCreator: (bindable) =>
774 var view = (View)bindable;
776 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.POSITION_Z).Get(out temp);
781 /// OrientationProperty
783 [EditorBrowsable(EditorBrowsableState.Never)]
784 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
786 var view = (View)bindable;
787 if (newValue != null)
789 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
792 defaultValueCreator: (bindable) =>
794 var view = (View)bindable;
795 Rotation temp = new Rotation();
796 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.ORIENTATION).Get(temp);
803 [EditorBrowsable(EditorBrowsableState.Never)]
804 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
806 var view = (View)bindable;
807 if (newValue != null)
809 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
812 defaultValueCreator: (bindable) =>
814 var view = (View)bindable;
815 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
816 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE).Get(temp);
823 [EditorBrowsable(EditorBrowsableState.Never)]
824 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
826 var view = (View)bindable;
827 if (newValue != null)
829 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_X, new Tizen.NUI.PropertyValue((float)newValue));
832 defaultValueCreator: (bindable) =>
834 var view = (View)bindable;
836 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_X).Get(out temp);
843 [EditorBrowsable(EditorBrowsableState.Never)]
844 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
846 var view = (View)bindable;
847 if (newValue != null)
849 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Y, new Tizen.NUI.PropertyValue((float)newValue));
852 defaultValueCreator: (bindable) =>
854 var view = (View)bindable;
856 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Y).Get(out temp);
863 [EditorBrowsable(EditorBrowsableState.Never)]
864 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
866 var view = (View)bindable;
867 if (newValue != null)
869 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SCALE_Z, new Tizen.NUI.PropertyValue((float)newValue));
872 defaultValueCreator: (bindable) =>
874 var view = (View)bindable;
876 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SCALE_Z).Get(out temp);
883 [EditorBrowsable(EditorBrowsableState.Never)]
884 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
886 var view = (View)bindable;
887 if (newValue != null)
889 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
892 defaultValueCreator: (bindable) =>
894 var view = (View)bindable;
896 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.NAME).Get(out temp);
901 /// SensitiveProperty
903 [EditorBrowsable(EditorBrowsableState.Never)]
904 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
906 var view = (View)bindable;
907 if (newValue != null)
909 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
912 defaultValueCreator: (bindable) =>
914 var view = (View)bindable;
916 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SENSITIVE).Get(out temp);
921 /// LeaveRequiredProperty
923 [EditorBrowsable(EditorBrowsableState.Never)]
924 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
926 var view = (View)bindable;
927 if (newValue != null)
929 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED, new Tizen.NUI.PropertyValue((bool)newValue));
932 defaultValueCreator: (bindable) =>
934 var view = (View)bindable;
936 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LEAVE_REQUIRED).Get(out temp);
941 /// InheritOrientationProperty
943 [EditorBrowsable(EditorBrowsableState.Never)]
944 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
946 var view = (View)bindable;
947 if (newValue != null)
949 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION, new Tizen.NUI.PropertyValue((bool)newValue));
952 defaultValueCreator: (bindable) =>
954 var view = (View)bindable;
956 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_ORIENTATION).Get(out temp);
961 /// InheritScaleProperty
963 [EditorBrowsable(EditorBrowsableState.Never)]
964 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
966 var view = (View)bindable;
967 if (newValue != null)
969 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_SCALE, new Tizen.NUI.PropertyValue((bool)newValue));
972 defaultValueCreator: (bindable) =>
974 var view = (View)bindable;
976 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_SCALE).Get(out temp);
983 [EditorBrowsable(EditorBrowsableState.Never)]
984 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (bindable, oldValue, newValue) =>
986 var view = (View)bindable;
987 if (newValue != null)
989 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.DRAW_MODE, new Tizen.NUI.PropertyValue((int)newValue));
992 defaultValueCreator: (bindable) =>
994 var view = (View)bindable;
996 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.DRAW_MODE).Get(out temp) == false)
998 NUILog.Error("DrawMode get error!");
1000 return temp.GetValueByDescription<DrawModeType>();
1004 /// SizeModeFactorProperty
1006 [EditorBrowsable(EditorBrowsableState.Never)]
1007 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1009 var view = (View)bindable;
1010 if (newValue != null)
1012 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR, new Tizen.NUI.PropertyValue((Vector3)newValue));
1015 defaultValueCreator: (bindable) =>
1017 var view = (View)bindable;
1018 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1019 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_MODE_FACTOR).Get(temp);
1024 /// WidthResizePolicyProperty
1026 [EditorBrowsable(EditorBrowsableState.Never)]
1027 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1029 var view = (View)bindable;
1030 if (newValue != null)
1032 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1035 defaultValueCreator: (bindable) =>
1037 var view = (View)bindable;
1039 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_RESIZE_POLICY).Get(out temp) == false)
1041 NUILog.Error("WidthResizePolicy get error!");
1043 return temp.GetValueByDescription<ResizePolicyType>();
1047 /// HeightResizePolicyProperty
1049 [EditorBrowsable(EditorBrowsableState.Never)]
1050 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (bindable, oldValue, newValue) =>
1052 var view = (View)bindable;
1053 if (newValue != null)
1055 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
1058 defaultValueCreator: (bindable) =>
1060 var view = (View)bindable;
1062 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_RESIZE_POLICY).Get(out temp) == false)
1064 NUILog.Error("HeightResizePolicy get error!");
1066 return temp.GetValueByDescription<ResizePolicyType>();
1070 /// SizeScalePolicyProperty
1072 [EditorBrowsable(EditorBrowsableState.Never)]
1073 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (bindable, oldValue, newValue) =>
1075 var view = (View)bindable;
1076 string valueToString = "";
1077 if (newValue != null)
1079 valueToString = ((SizeScalePolicyType)newValue).GetDescription<SizeScalePolicyType>();
1080 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY, new Tizen.NUI.PropertyValue(valueToString));
1083 defaultValueCreator: (bindable) =>
1085 var view = (View)bindable;
1087 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE_SCALE_POLICY).Get(out temp) == false)
1089 NUILog.Error("SizeScalePolicy get error!");
1091 return temp.GetValueByDescription<SizeScalePolicyType>();
1095 /// WidthForHeightProperty
1097 [EditorBrowsable(EditorBrowsableState.Never)]
1098 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1100 var view = (View)bindable;
1101 if (newValue != null)
1103 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT, new Tizen.NUI.PropertyValue((bool)newValue));
1106 defaultValueCreator: (bindable) =>
1108 var view = (View)bindable;
1110 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.WIDTH_FOR_HEIGHT).Get(out temp);
1115 /// HeightForWidthProperty
1117 [EditorBrowsable(EditorBrowsableState.Never)]
1118 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1120 var view = (View)bindable;
1121 if (newValue != null)
1123 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH, new Tizen.NUI.PropertyValue((bool)newValue));
1126 defaultValueCreator: (bindable) =>
1128 var view = (View)bindable;
1130 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.HEIGHT_FOR_WIDTH).Get(out temp);
1137 [EditorBrowsable(EditorBrowsableState.Never)]
1138 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1140 var view = (View)bindable;
1141 if (newValue != null)
1143 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1146 defaultValueCreator: (bindable) =>
1148 var view = (View)bindable;
1149 Extents temp = new Extents(0, 0, 0, 0);
1150 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.PADDING).Get(temp);
1157 [EditorBrowsable(EditorBrowsableState.Never)]
1158 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1160 var view = (View)bindable;
1161 if (newValue != null)
1163 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue((Size)newValue));
1166 defaultValueCreator: (bindable) =>
1168 var view = (View)bindable;
1169 Size temp = new Size(0, 0, 0);
1170 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.SIZE).Get(temp);
1175 /// MinimumSizeProperty
1177 [EditorBrowsable(EditorBrowsableState.Never)]
1178 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1180 var view = (View)bindable;
1181 Size2D temp = newValue as Size2D;
1184 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE, new Tizen.NUI.PropertyValue(temp));
1188 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MinimumSizeProperty!");
1191 defaultValueCreator: (bindable) =>
1193 var view = (View)bindable;
1194 Size2D temp = new Size2D(0, 0);
1195 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MINIMUM_SIZE).Get(temp);
1200 /// MaximumSizeProperty
1202 [EditorBrowsable(EditorBrowsableState.Never)]
1203 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1205 var view = (View)bindable;
1206 Size2D temp = newValue as Size2D;
1209 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE, new Tizen.NUI.PropertyValue(temp));
1213 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MaximumSizeProperty!");
1216 defaultValueCreator: (bindable) =>
1218 var view = (View)bindable;
1219 Size2D temp = new Size2D(0, 0);
1220 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MAXIMUM_SIZE).Get(temp);
1225 /// InheritPositionProperty
1227 [EditorBrowsable(EditorBrowsableState.Never)]
1228 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1230 var view = (View)bindable;
1231 if (newValue != null)
1233 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_POSITION, new Tizen.NUI.PropertyValue((bool)newValue));
1236 defaultValueCreator: (bindable) =>
1238 var view = (View)bindable;
1240 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_POSITION).Get(out temp);
1245 /// ClippingModeProperty
1247 [EditorBrowsable(EditorBrowsableState.Never)]
1248 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (bindable, oldValue, newValue) =>
1250 var view = (View)bindable;
1251 if (newValue != null)
1253 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.CLIPPING_MODE, new Tizen.NUI.PropertyValue((int)newValue));
1256 defaultValueCreator: (bindable) =>
1258 var view = (View)bindable;
1260 if (Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.CLIPPING_MODE).Get(out temp) == false)
1262 NUILog.Error("ClippingMode get error!");
1264 return (ClippingModeType)temp;
1268 /// InheritLayoutDirectionProperty
1270 [EditorBrowsable(EditorBrowsableState.Never)]
1271 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1273 var view = (View)bindable;
1274 if (newValue != null)
1276 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
1279 defaultValueCreator: (bindable) =>
1281 var view = (View)bindable;
1283 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.INHERIT_LAYOUT_DIRECTION).Get(out temp);
1288 /// LayoutDirectionProperty
1290 [EditorBrowsable(EditorBrowsableState.Never)]
1291 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (bindable, oldValue, newValue) =>
1293 var view = (View)bindable;
1294 if (newValue != null)
1296 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION, new Tizen.NUI.PropertyValue((int)newValue));
1299 defaultValueCreator: (bindable) =>
1301 var view = (View)bindable;
1303 if (false == Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.LAYOUT_DIRECTION).Get(out temp))
1305 NUILog.Error("LAYOUT_DIRECTION get error!");
1307 return (ViewLayoutDirectionType)temp;
1313 [EditorBrowsable(EditorBrowsableState.Never)]
1314 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1316 var view = (View)bindable;
1317 if (newValue != null)
1319 Tizen.NUI.Object.SetProperty(view.swigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1322 defaultValueCreator: (bindable) =>
1324 var view = (View)bindable;
1325 Extents temp = new Extents(0, 0, 0, 0);
1326 Tizen.NUI.Object.GetProperty(view.swigCPtr, View.Property.MARGIN).Get(temp);
1331 /// UpdateSizeHintProperty
1333 [EditorBrowsable(EditorBrowsableState.Never)]
1334 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create("UpdateSizeHint", typeof(Vector2), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1336 var view = (View)bindable;
1337 if (newValue != null)
1339 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1342 defaultValueCreator: (bindable) =>
1344 var view = (View)bindable;
1346 Vector2 temp = new Vector2(0.0f, 0.0f);
1347 Tizen.NUI.Object.GetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_UPDATE_SIZE_HINT_get()).Get(temp);
1352 /// ImageShadow Property
1354 [EditorBrowsable(EditorBrowsableState.Never)]
1355 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create("ImageShadow", typeof(ImageShadow), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1357 var view = (View)bindable;
1358 view.imageShadow = (ImageShadow)newValue;
1359 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), ImageShadow.ToPropertyValue(view.imageShadow));
1361 defaultValueCreator: (bindable) =>
1363 return ((View)bindable).imageShadow;
1369 [EditorBrowsable(EditorBrowsableState.Never)]
1370 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create("BoxShadow", typeof(Shadow), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1372 var view = (View)bindable;
1373 view.boxShadow = (Shadow)newValue;
1374 if (view.imageShadow == null)
1376 Tizen.NUI.Object.SetProperty(view.swigCPtr, Interop.ViewProperty.View_Property_SHADOW_get(), Shadow.ToPropertyValue(view.boxShadow));
1379 defaultValueCreator: (bindable) =>
1381 return ((View)bindable).boxShadow;
1385 /// XamlStyleProperty
1387 [EditorBrowsable(EditorBrowsableState.Never)]
1388 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create("XamlStyle", typeof(Style), typeof(View), default(Style), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable)._mergedStyle.Style = (Style)newvalue);