2 * Copyright(c) 2019-2022 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.
19 using System.ComponentModel;
20 using Tizen.NUI.Binding;
22 namespace Tizen.NUI.BaseComponents
25 /// View is the base class for all views.
27 /// <since_tizen> 3 </since_tizen>
28 public partial class View
30 private float userSizeWidth = 0.0f;
31 private float userSizeHeight = 0.0f;
34 /// StyleNameProperty (DALi json)
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(View), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
39 var view = (View)bindable;
42 string styleName = (string)newValue;
43 #if NUI_PROPERTY_CHANGE_1
44 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.StyleName, styleName);
46 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.StyleName, new Tizen.NUI.PropertyValue(styleName));
48 view.styleName = styleName;
50 if (string.IsNullOrEmpty(styleName)) return;
52 var style = ThemeManager.GetUpdateStyleWithoutClone(styleName);
54 if (style == null) return;
56 view.ApplyStyle(style);
57 view.SetThemeApplied();
60 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
62 var view = (View)bindable;
64 if (!string.IsNullOrEmpty(view.styleName)) return view.styleName;
66 #if NUI_PROPERTY_CHANGE_1
67 return Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.StyleName);
70 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.StyleName).Get(out temp);
76 /// KeyInputFocusProperty
78 [EditorBrowsable(EditorBrowsableState.Never)]
79 public static readonly BindableProperty KeyInputFocusProperty = BindableProperty.Create(nameof(KeyInputFocus), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
81 var view = (View)bindable;
84 #if NUI_PROPERTY_CHANGE_1
85 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.KeyInputFocus, (bool)newValue);
87 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.KeyInputFocus, new Tizen.NUI.PropertyValue((bool)newValue));
91 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
93 var view = (View)bindable;
94 #if NUI_PROPERTY_CHANGE_1
95 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.KeyInputFocus);
98 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.KeyInputFocus).Get(out temp);
104 /// BackgroundColorProperty
106 [EditorBrowsable(EditorBrowsableState.Never)]
107 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(View), null,
108 propertyChanged: (bindable, oldValue, newValue) =>
110 var view = (View)bindable;
112 view.themeData?.selectorData?.ClearBackground(view);
114 if (newValue is Selector<Color> selector)
116 if (selector.HasAll()) view.SetBackgroundColor(selector.All);
117 else view.EnsureSelectorData().BackgroundColor = new TriggerableSelector<Color>(view, selector, view.SetBackgroundColor, true);
121 view.SetBackgroundColor((Color)newValue);
124 defaultValueCreator: (bindable) =>
126 var view = (View)bindable;
128 if (view.internalBackgroundColor == null)
130 view.internalBackgroundColor = new Color(view.OnBackgroundColorChanged, 0, 0, 0, 0);
133 PropertyMap background = view.Background;
135 background.Find(Visual.Property.Type)?.Get(out visualType);
136 if (visualType == (int)Visual.Type.Color)
138 background.Find(ColorVisualProperty.MixColor)?.Get(view.internalBackgroundColor);
141 background?.Dispose();
144 return view.internalBackgroundColor;
151 [EditorBrowsable(EditorBrowsableState.Never)]
152 public static readonly BindableProperty ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(View), null,
153 propertyChanged: (bindable, oldValue, newValue) =>
155 var view = (View)bindable;
157 view.themeData?.selectorData?.Color?.Reset(view);
159 if (newValue is Selector<Color> selector)
161 if (selector.HasAll()) view.SetColor(selector.All);
162 else view.EnsureSelectorData().Color = new TriggerableSelector<Color>(view, selector, view.SetColor, true);
166 view.SetColor((Color)newValue);
169 defaultValueCreator: (bindable) =>
171 var view = (View)bindable;
172 #if NUI_PROPERTY_CHANGE_1
173 if (view.internalColor == null)
175 view.internalColor = new Color(view.OnColorChanged, 0, 0, 0, 0);
177 Interop.Actor.InternalRetrievingPropertyVector4(view.SwigCPtr, View.Property.COLOR, view.internalColor.SwigCPtr);
179 var tmpProperty = view.GetProperty(View.Property.COLOR);
181 if (view.internalColor == null)
183 view.internalColor = new Color(view.OnColorChanged, 0, 0, 0, 0);
186 tmpProperty?.Get(view.internalColor);
187 tmpProperty?.Dispose();
189 return view.internalColor;
196 [EditorBrowsable(EditorBrowsableState.Never)]
197 public static readonly BindableProperty ColorRedProperty = BindableProperty.Create(nameof(ColorRed), typeof(float), typeof(View), default(float),
198 propertyChanged: (bindable, oldValue, newValue) =>
200 var view = (View)bindable;
201 view.SetColorRed((float?)newValue);
203 defaultValueCreator: (bindable) =>
205 var view = (View)bindable;
206 #if NUI_PROPERTY_CHANGE_1
207 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ColorRed);
210 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ColorRed).Get(out temp);
217 /// ColorGreenProperty
219 [EditorBrowsable(EditorBrowsableState.Never)]
220 public static readonly BindableProperty ColorGreenProperty = BindableProperty.Create(nameof(ColorGreen), typeof(float), typeof(View), default(float),
221 propertyChanged: (bindable, oldValue, newValue) =>
223 var view = (View)bindable;
224 view.SetColorGreen((float?)newValue);
226 defaultValueCreator: (bindable) =>
228 var view = (View)bindable;
229 #if NUI_PROPERTY_CHANGE_1
230 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ColorGreen);
233 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ColorGreen).Get(out temp);
240 /// ColorBlueProperty
242 [EditorBrowsable(EditorBrowsableState.Never)]
243 public static readonly BindableProperty ColorBlueProperty = BindableProperty.Create(nameof(ColorBlue), typeof(float), typeof(View), default(float),
244 propertyChanged: (bindable, oldValue, newValue) =>
246 var view = (View)bindable;
247 view.SetColorBlue((float?)newValue);
249 defaultValueCreator: (bindable) =>
251 var view = (View)bindable;
252 #if NUI_PROPERTY_CHANGE_1
253 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ColorBlue);
256 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ColorBlue).Get(out temp);
262 /// <summary> BackgroundImageProperty </summary>
263 [EditorBrowsable(EditorBrowsableState.Never)]
264 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create(nameof(BackgroundImage), typeof(string), typeof(View), default(string),
265 propertyChanged: (bindable, oldValue, newValue) =>
267 var view = (View)bindable;
269 if (view.themeData?.selectorData != null)
271 view.themeData.selectorData.BackgroundColor?.Reset(view);
272 view.themeData.selectorData.BackgroundImage?.Reset(view);
275 if (newValue is Selector<string> selector)
277 if (selector.HasAll()) view.SetBackgroundImage(selector.All);
278 else view.EnsureSelectorData().BackgroundImage = new TriggerableSelector<string>(view, selector, view.SetBackgroundImage, true);
282 view.SetBackgroundImage((string)newValue);
285 defaultValueCreator: (bindable) =>
287 var view = (View)bindable;
288 string backgroundImage = "";
290 PropertyMap background = view.Background;
291 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
293 background.Dispose();
296 return backgroundImage;
301 /// <summary>BackgroundImageBorderProperty</summary>
302 [EditorBrowsable(EditorBrowsableState.Never)]
303 public static readonly BindableProperty BackgroundImageBorderProperty = BindableProperty.Create(nameof(BackgroundImageBorder), typeof(Rectangle), typeof(View), default(Rectangle), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
305 var view = (View)bindable;
307 view.themeData?.selectorData?.BackgroundImageBorder?.Reset(view);
309 if (newValue is Selector<Rectangle> selector)
311 if (selector.HasAll()) view.SetBackgroundImageBorder(selector.All);
312 else view.EnsureSelectorData().BackgroundImageBorder = new TriggerableSelector<Rectangle>(view, selector, view.SetBackgroundImageBorder, true);
316 view.SetBackgroundImageBorder((Rectangle)newValue);
319 defaultValueCreator: (bindable) =>
321 var view = (View)bindable;
323 return view.backgroundExtraData?.BackgroundImageBorder;
327 /// BackgroundProperty
329 [EditorBrowsable(EditorBrowsableState.Never)]
330 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(PropertyMap), typeof(View), null,
331 propertyChanged: (bindable, oldValue, newValue) =>
333 var view = (View)bindable;
334 if (newValue != null)
336 var propertyValue = new PropertyValue((PropertyMap)newValue);
337 Object.SetProperty(view.SwigCPtr, Property.BACKGROUND, propertyValue);
339 view.backgroundExtraData = null;
341 propertyValue.Dispose();
342 propertyValue = null;
345 defaultValueCreator: (bindable) =>
347 var view = (View)bindable;
348 PropertyMap tmp = new PropertyMap();
349 var propertyValue = Object.GetProperty(view.SwigCPtr, Property.BACKGROUND);
350 propertyValue.Get(tmp);
351 propertyValue.Dispose();
352 propertyValue = null;
360 [EditorBrowsable(EditorBrowsableState.Never)]
361 public static readonly BindableProperty StateProperty = BindableProperty.Create(nameof(State), typeof(States), typeof(View), States.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
363 var view = (View)bindable;
364 if (newValue != null)
366 #if NUI_PROPERTY_CHANGE_1
367 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.STATE, (int)newValue);
369 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
373 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
375 var view = (View)bindable;
377 #if NUI_PROPERTY_CHANGE_1
378 temp = Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, View.Property.STATE);
380 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.STATE).Get(out temp) == false)
382 NUILog.Error("State get error!");
387 case 0: return States.Normal;
388 case 1: return States.Focused;
389 case 2: return States.Disabled;
390 default: return States.Normal;
397 [EditorBrowsable(EditorBrowsableState.Never)]
398 public static readonly BindableProperty SubStateProperty = BindableProperty.Create(nameof(SubState), typeof(States), typeof(View), States.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
400 var view = (View)bindable;
401 string valueToString = "";
402 if (newValue != null)
404 valueToString = ((States)newValue).GetDescription();
405 #if NUI_PROPERTY_CHANGE_1
406 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.SubState, valueToString);
408 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SubState, new Tizen.NUI.PropertyValue(valueToString));
412 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
414 var view = (View)bindable;
416 #if NUI_PROPERTY_CHANGE_1
417 temp = Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.SubState);
419 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SubState).Get(out temp) == false)
421 NUILog.Error("subState get error!");
424 return temp.GetValueByDescription<States>();
430 [EditorBrowsable(EditorBrowsableState.Never)]
431 public static readonly BindableProperty TooltipProperty = BindableProperty.Create(nameof(Tooltip), typeof(PropertyMap), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
433 var view = (View)bindable;
434 if (newValue != null)
436 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
439 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
441 var view = (View)bindable;
442 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
443 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.TOOLTIP).Get(temp);
450 [EditorBrowsable(EditorBrowsableState.Never)]
451 public static readonly BindableProperty FlexProperty = BindableProperty.Create(nameof(Flex), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
453 var view = (View)bindable;
454 if (newValue != null)
456 #if NUI_PROPERTY_CHANGE_1
457 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, FlexContainer.ChildProperty.FLEX, (float)newValue);
459 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
463 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
465 var view = (View)bindable;
466 #if NUI_PROPERTY_CHANGE_1
467 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, FlexContainer.ChildProperty.FLEX);
470 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
476 /// AlignSelfProperty
478 [EditorBrowsable(EditorBrowsableState.Never)]
479 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create(nameof(AlignSelf), typeof(int), typeof(View), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
481 var view = (View)bindable;
482 if (newValue != null)
484 #if NUI_PROPERTY_CHANGE_1
485 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf, (int)newValue);
487 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf, new Tizen.NUI.PropertyValue((int)newValue));
491 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
493 var view = (View)bindable;
494 #if NUI_PROPERTY_CHANGE_1
495 return Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf);
498 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf).Get(out temp);
504 /// FlexMarginProperty
506 [EditorBrowsable(EditorBrowsableState.Never)]
507 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create(nameof(FlexMargin), typeof(Vector4), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
509 var view = (View)bindable;
510 if (newValue != null)
512 #if NUI_PROPERTY_CHANGE_1
513 Interop.Actor.InternalSetPropertyVector4(view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin, ((Vector4)newValue).SwigCPtr);
515 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin, new Tizen.NUI.PropertyValue((Vector4)newValue));
519 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
521 var view = (View)bindable;
522 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
523 #if NUI_PROPERTY_CHANGE_1
524 Interop.Actor.InternalRetrievingPropertyVector4(view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin, temp.SwigCPtr);
526 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin).Get(temp);
532 /// CellIndexProperty
534 [EditorBrowsable(EditorBrowsableState.Never)]
535 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(View), null,
536 propertyChanged: (bindable, oldValue, newValue) =>
538 var view = (View)bindable;
539 if (newValue != null)
541 #if NUI_PROPERTY_CHANGE_1
542 Interop.Actor.InternalSetPropertyVector2(view.SwigCPtr, TableView.ChildProperty.CellIndex, ((Vector2)newValue).SwigCPtr);
544 var tmp = new PropertyValue((Vector2)newValue);
545 Object.SetProperty(view.SwigCPtr, TableView.ChildProperty.CellIndex, tmp);
550 defaultValueCreator: (bindable) =>
552 var view = (View)bindable;
553 #if NUI_PROPERTY_CHANGE_1
554 if (view.internalCellIndex == null)
556 view.internalCellIndex = new Vector2(view.OnCellIndexChanged, 0, 0);
558 Interop.Actor.InternalRetrievingPropertyVector2(view.SwigCPtr, TableView.ChildProperty.CellIndex, view.internalCellIndex.SwigCPtr);
560 if (view.internalCellIndex == null)
562 view.internalCellIndex = new Vector2(view.OnCellIndexChanged, 0, 0);
565 var tmp = Object.GetProperty(view.SwigCPtr, TableView.ChildProperty.CellIndex);
566 tmp?.Get(view.internalCellIndex);
569 return view.internalCellIndex;
576 [EditorBrowsable(EditorBrowsableState.Never)]
577 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create(nameof(RowSpan), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
579 var view = (View)bindable;
580 if (newValue != null)
582 #if NUI_PROPERTY_CHANGE_1
583 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, TableView.ChildProperty.RowSpan, (float)newValue);
585 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.RowSpan, new Tizen.NUI.PropertyValue((float)newValue));
589 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
591 var view = (View)bindable;
592 #if NUI_PROPERTY_CHANGE_1
593 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, TableView.ChildProperty.RowSpan);
596 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.RowSpan).Get(out temp);
602 /// ColumnSpanProperty
604 [EditorBrowsable(EditorBrowsableState.Never)]
605 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create(nameof(ColumnSpan), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
607 var view = (View)bindable;
608 if (newValue != null)
610 #if NUI_PROPERTY_CHANGE_1
611 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, TableView.ChildProperty.ColumnSpan, (float)newValue);
613 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.ColumnSpan, new Tizen.NUI.PropertyValue((float)newValue));
617 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
619 var view = (View)bindable;
620 #if NUI_PROPERTY_CHANGE_1
621 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, TableView.ChildProperty.ColumnSpan);
624 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.ColumnSpan).Get(out temp);
630 /// CellHorizontalAlignmentProperty
632 [EditorBrowsable(EditorBrowsableState.Never)]
633 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create(nameof(CellHorizontalAlignment), typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
635 var view = (View)bindable;
636 string valueToString = "";
638 if (newValue != null)
640 valueToString = ((HorizontalAlignmentType)newValue).GetDescription();
641 #if NUI_PROPERTY_CHANGE_1
642 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment, valueToString);
644 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment, new Tizen.NUI.PropertyValue(valueToString));
648 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
650 var view = (View)bindable;
652 #if NUI_PROPERTY_CHANGE_1
653 temp = Interop.Actor.InternalGetPropertyString(view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment);
655 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment).Get(out temp) == false)
657 NUILog.Error("CellHorizontalAlignment get error!");
660 return temp.GetValueByDescription<HorizontalAlignmentType>();
664 /// CellVerticalAlignmentProperty
666 [EditorBrowsable(EditorBrowsableState.Never)]
667 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create(nameof(CellVerticalAlignment), typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
669 var view = (View)bindable;
670 string valueToString = "";
672 if (newValue != null)
674 valueToString = ((VerticalAlignmentType)newValue).GetDescription();
675 #if NUI_PROPERTY_CHANGE_1
676 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment, valueToString);
678 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment, new Tizen.NUI.PropertyValue(valueToString));
682 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
684 var view = (View)bindable;
686 #if NUI_PROPERTY_CHANGE_1
687 temp = Interop.Actor.InternalGetPropertyString(view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment);
689 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment).Get(out temp);
691 NUILog.Error("CellVerticalAlignment get error!");
694 return temp.GetValueByDescription<VerticalAlignmentType>();
698 /// "DO not use this, that will be deprecated. Use 'View Weight' instead of BindableProperty"
699 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
701 [EditorBrowsable(EditorBrowsableState.Never)]
702 public static readonly BindableProperty WeightProperty = BindableProperty.Create(nameof(Weight), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
704 var view = (View)bindable;
705 if (newValue != null)
707 view.Weight = (float)newValue;
711 defaultValueCreator: (bindable) =>
713 var view = (View)bindable;
718 /// LeftFocusableViewProperty
720 [EditorBrowsable(EditorBrowsableState.Never)]
721 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
723 var view = (View)bindable;
724 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
725 else { view.LeftFocusableViewId = -1; }
727 defaultValueCreator: (bindable) =>
729 var view = (View)bindable;
730 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
735 /// RightFocusableViewProperty
737 [EditorBrowsable(EditorBrowsableState.Never)]
738 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
740 var view = (View)bindable;
741 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
742 else { view.RightFocusableViewId = -1; }
744 defaultValueCreator: (bindable) =>
746 var view = (View)bindable;
747 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
752 /// UpFocusableViewProperty
754 [EditorBrowsable(EditorBrowsableState.Never)]
755 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
757 var view = (View)bindable;
758 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
759 else { view.UpFocusableViewId = -1; }
761 defaultValueCreator: (bindable) =>
763 var view = (View)bindable;
764 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
769 /// DownFocusableViewProperty
771 [EditorBrowsable(EditorBrowsableState.Never)]
772 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
774 var view = (View)bindable;
775 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
776 else { view.DownFocusableViewId = -1; }
778 defaultValueCreator: (bindable) =>
780 var view = (View)bindable;
781 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
786 /// ClockwiseFocusableViewProperty
788 [EditorBrowsable(EditorBrowsableState.Never)]
789 public static readonly BindableProperty ClockwiseFocusableViewProperty = BindableProperty.Create(nameof(View.ClockwiseFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
791 var view = (View)bindable;
792 if (newValue != null && (newValue is View)) { view.ClockwiseFocusableViewId = (int)(newValue as View)?.GetId(); }
793 else { view.ClockwiseFocusableViewId = -1; }
795 defaultValueCreator: (bindable) =>
797 var view = (View)bindable;
798 if (view.ClockwiseFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.ClockwiseFocusableViewId); }
803 /// CounterClockwiseFocusableViewProperty
805 [EditorBrowsable(EditorBrowsableState.Never)]
806 public static readonly BindableProperty CounterClockwiseFocusableViewProperty = BindableProperty.Create(nameof(View.CounterClockwiseFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
808 var view = (View)bindable;
809 if (newValue != null && (newValue is View)) { view.CounterClockwiseFocusableViewId = (int)(newValue as View)?.GetId(); }
810 else { view.CounterClockwiseFocusableViewId = -1; }
812 defaultValueCreator: (bindable) =>
814 var view = (View)bindable;
815 if (view.CounterClockwiseFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.CounterClockwiseFocusableViewId); }
820 /// FocusableProperty
822 [EditorBrowsable(EditorBrowsableState.Never)]
823 public static readonly BindableProperty FocusableProperty = BindableProperty.Create(nameof(Focusable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
825 var view = (View)bindable;
826 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
828 defaultValueCreator: (bindable) =>
830 var view = (View)bindable;
831 return view.IsKeyboardFocusable();
835 /// FocusableChildrenProperty
837 [EditorBrowsable(EditorBrowsableState.Never)]
838 public static readonly BindableProperty FocusableChildrenProperty = BindableProperty.Create(nameof(FocusableChildren), typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
840 var view = (View)bindable;
841 if (newValue != null) { view.SetKeyboardFocusableChildren((bool)newValue); }
843 defaultValueCreator: (bindable) =>
845 var view = (View)bindable;
846 return view.AreChildrenKeyBoardFocusable();
850 /// FocusableInTouchProperty
852 [EditorBrowsable(EditorBrowsableState.Never)]
853 public static readonly BindableProperty FocusableInTouchProperty = BindableProperty.Create(nameof(FocusableInTouch), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
855 var view = (View)bindable;
856 if (newValue != null) { view.SetFocusableInTouch((bool)newValue); }
858 defaultValueCreator: (bindable) =>
860 var view = (View)bindable;
861 return view.IsFocusableInTouch();
867 [EditorBrowsable(EditorBrowsableState.Never)]
868 public static readonly BindableProperty Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(View), null,
869 propertyChanged: (bindable, oldValue, newValue) =>
871 var view = (View)bindable;
872 if (newValue != null)
874 // Size property setter is only used by user.
875 // Framework code uses SetSize() instead of Size property setter.
876 // Size set by user is returned by GetUserSize2D() for SuggestedMinimumWidth/Height.
877 // SuggestedMinimumWidth/Height is used by Layout calculation.
878 view.userSizeWidth = ((Size2D)newValue).Width;
879 view.userSizeHeight = ((Size2D)newValue).Height;
881 #if NUI_PROPERTY_CHANGE_1
882 Interop.Actor.InternalSetPropertyVector2ActualVector3(view.SwigCPtr, View.Property.SIZE, ((Size2D)newValue).SwigCPtr);
884 view.SetSize(((Size2D)newValue).Width, ((Size2D)newValue).Height, 0);
886 view.widthPolicy = ((Size2D)newValue).Width;
887 view.heightPolicy = ((Size2D)newValue).Height;
889 view.layout?.RequestLayout();
892 defaultValueCreator: (bindable) =>
894 var view = (View)bindable;
895 #if NUI_PROPERTY_CHANGE_1
896 if (view.internalSize2D == null)
898 view.internalSize2D = new Size2D(view.OnSize2DChanged, 0, 0);
900 Interop.Actor.InternalRetrievingPropertyVector2ActualVector3(view.SwigCPtr, View.Property.SIZE, view.internalSize2D.SwigCPtr);
902 var tmp = new Size(0, 0, 0);
903 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.SIZE);
904 tmpProperty?.Get(tmp);
906 if (view.internalSize2D == null)
908 view.internalSize2D = new Size2D(view.OnSize2DChanged, (int)tmp?.Width, (int)tmp?.Height);
912 if (view.internalSize2D.SwigCPtr.Handle != global::System.IntPtr.Zero)
914 Interop.Vector2.WidthSet(view.internalSize2D.SwigCPtr, (float)tmp?.Width);
915 Interop.Vector2.HeightSet(view.internalSize2D.SwigCPtr, (float)tmp?.Height);
919 tmpProperty?.Dispose();
922 return view.internalSize2D;
929 [EditorBrowsable(EditorBrowsableState.Never)]
930 public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
932 var view = (View)bindable;
934 view.themeData?.selectorData?.Opacity?.Reset(view);
936 if (newValue is Selector<float?> selector)
938 if (selector.HasAll()) view.SetOpacity(selector.All);
939 else view.EnsureSelectorData().Opacity = new TriggerableSelector<float?>(view, selector, view.SetOpacity, true);
943 view.SetOpacity((float?)newValue);
946 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
948 var view = (View)bindable;
949 #if NUI_PROPERTY_CHANGE_1
950 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.OPACITY);
953 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.OPACITY).Get(out temp);
959 /// Position2DProperty
961 [EditorBrowsable(EditorBrowsableState.Never)]
962 public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(View), null,
963 propertyChanged: (bindable, oldValue, newValue) =>
965 var view = (View)bindable;
966 if (newValue != null)
968 #if NUI_PROPERTY_CHANGE_1
969 Interop.Actor.InternalSetPropertyVector2ActualVector3(view.SwigCPtr, View.Property.POSITION, ((Position2D)newValue).SwigCPtr);
971 view.SetPosition(((Position2D)newValue).X, ((Position2D)newValue).Y, 0);
975 defaultValueCreator: (bindable) =>
977 var view = (View)bindable;
978 #if NUI_PROPERTY_CHANGE_1
979 if (view.internalPosition2D == null)
981 view.internalPosition2D = new Position2D(view.OnPosition2DChanged, 0, 0);
983 Interop.Actor.InternalRetrievingPropertyVector2ActualVector3(view.SwigCPtr, View.Property.POSITION, view.internalPosition2D.SwigCPtr);
985 var tmp = new Position(0, 0, 0);
986 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.POSITION);
987 tmpProperty?.Get(tmp);
989 if (view.internalPosition2D == null)
991 view.internalPosition2D = new Position2D(view.OnPosition2DChanged, (int)tmp?.X, (int)tmp?.Y);
995 if (view.internalPosition2D.SwigCPtr.Handle != IntPtr.Zero)
997 Interop.Vector2.XSet(view.internalPosition2D.SwigCPtr, (float)tmp?.X);
998 Interop.Vector2.YSet(view.internalPosition2D.SwigCPtr, (float)tmp?.Y);
1002 tmpProperty?.Dispose();
1005 return view.internalPosition2D;
1010 /// PositionUsesPivotPointProperty
1012 [EditorBrowsable(EditorBrowsableState.Never)]
1013 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool), typeof(View), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1015 var view = (View)bindable;
1016 if (newValue != null)
1018 #if NUI_PROPERTY_CHANGE_1
1019 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.PositionUsesAnchorPoint, (bool)newValue);
1021 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint, new Tizen.NUI.PropertyValue((bool)newValue));
1025 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1027 var view = (View)bindable;
1028 #if NUI_PROPERTY_CHANGE_1
1029 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.PositionUsesAnchorPoint);
1032 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint).Get(out temp);
1038 /// SiblingOrderProperty
1040 [EditorBrowsable(EditorBrowsableState.Never)]
1041 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
1043 var view = (View)bindable;
1045 if (newValue != null)
1047 value = (int)newValue;
1050 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
1053 var siblings = view.GetParent()?.Children;
1054 if (siblings != null)
1056 int currentOrder = siblings.IndexOf(view);
1057 if (value != currentOrder)
1059 if (value == 0) { view.LowerToBottom(); }
1060 else if (value < siblings.Count - 1)
1062 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
1063 else { view.LowerBelow(siblings[value]); }
1065 else { view.RaiseToTop(); }
1070 defaultValueCreator: (bindable) =>
1072 var view = (View)bindable;
1073 var parentChildren = view.GetParent()?.Children;
1074 int currentOrder = 0;
1075 if (parentChildren != null)
1077 currentOrder = parentChildren.IndexOf(view);
1079 if (currentOrder < 0) { return 0; }
1080 else if (currentOrder < parentChildren.Count) { return currentOrder; }
1087 /// ParentOriginProperty
1089 [EditorBrowsable(EditorBrowsableState.Never)]
1090 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1092 var view = (View)bindable;
1093 if (newValue != null)
1095 #if NUI_PROPERTY_CHANGE_1
1096 Interop.Actor.InternalSetPropertyVector3(view.SwigCPtr, View.Property.ParentOrigin, ((Position)newValue).SwigCPtr);
1098 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin, new Tizen.NUI.PropertyValue((Position)newValue));
1102 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1104 var view = (View)bindable;
1105 Position temp = new Position(0.0f, 0.0f, 0.0f);
1106 #if NUI_PROPERTY_CHANGE_1
1107 Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.ParentOrigin, temp.SwigCPtr);
1110 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin).Get(temp);
1117 /// PivotPointProperty
1119 [EditorBrowsable(EditorBrowsableState.Never)]
1120 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(View), null,
1121 propertyChanged: (bindable, oldValue, newValue) =>
1123 var view = (View)bindable;
1124 if (newValue != null)
1126 view.SetAnchorPoint((Position)newValue);
1129 defaultValueCreator: (bindable) =>
1131 var view = (View)bindable;
1132 #if NUI_PROPERTY_CHANGE_1
1133 if (view.internalPivotPoint == null)
1135 view.internalPivotPoint = new Position(view.OnPivotPointChanged, 0, 0, 0);
1137 Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.AnchorPoint, view.internalPivotPoint.SwigCPtr);
1139 if (view.internalPivotPoint == null)
1141 view.internalPivotPoint = new Position(view.OnPivotPointChanged, 0, 0, 0);
1143 var tmp = Object.GetProperty(view.SwigCPtr, Property.AnchorPoint);
1144 tmp?.Get(view.internalPivotPoint);
1147 return view.internalPivotPoint;
1152 /// SizeWidthProperty
1154 [EditorBrowsable(EditorBrowsableState.Never)]
1155 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1157 var view = (View)bindable;
1158 if (newValue != null)
1160 // Size property setter is only used by user.
1161 // Framework code uses SetSize() instead of Size property setter.
1162 // Size set by user is returned by GetUserSize2D() for SuggestedMinimumWidth/Height.
1163 // SuggestedMinimumWidth/Height is used by Layout calculation.
1164 view.userSizeWidth = (float)newValue;
1165 #if NUI_PROPERTY_CHANGE_1
1166 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.SizeWidth, (float)newValue);
1168 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, new Tizen.NUI.PropertyValue((float)newValue));
1170 view.WidthSpecification = (int)System.Math.Ceiling((float)newValue);
1173 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1175 var view = (View)bindable;
1176 #if NUI_PROPERTY_CHANGE_1
1177 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.SizeWidth);
1180 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth).Get(out temp);
1186 /// SizeHeightProperty
1188 [EditorBrowsable(EditorBrowsableState.Never)]
1189 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1191 var view = (View)bindable;
1192 if (newValue != null)
1194 // Size property setter is only used by user.
1195 // Framework code uses SetSize() instead of Size property setter.
1196 // Size set by user is returned by GetUserSize2D() for SuggestedMinimumWidth/Height.
1197 // SuggestedMinimumWidth/Height is used by Layout calculation.
1198 view.userSizeHeight = (float)newValue;
1199 #if NUI_PROPERTY_CHANGE_1
1200 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.SizeHeight, (float)newValue);
1202 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, new Tizen.NUI.PropertyValue((float)newValue));
1204 view.HeightSpecification = (int)System.Math.Ceiling((float)newValue);
1207 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1209 var view = (View)bindable;
1210 #if NUI_PROPERTY_CHANGE_1
1211 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.SizeHeight);
1214 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight).Get(out temp);
1220 /// PositionProperty
1222 [EditorBrowsable(EditorBrowsableState.Never)]
1223 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(View), null,
1224 propertyChanged: (bindable, oldValue, newValue) =>
1226 var view = (View)bindable;
1227 if (newValue != null)
1229 #if NUI_PROPERTY_CHANGE_1
1230 Interop.Actor.InternalSetPropertyVector3(view.SwigCPtr, View.Property.POSITION, ((Position)newValue).SwigCPtr);
1232 view.SetPosition(((Position)newValue).X, ((Position)newValue).Y, ((Position)newValue).Z);
1236 defaultValueCreator: (bindable) =>
1238 var view = (View)bindable;
1239 #if NUI_PROPERTY_CHANGE_1
1240 if (view.internalPosition == null)
1242 view.internalPosition = new Position(view.OnPositionChanged, 0, 0, 0);
1244 Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.POSITION, view.internalPosition.SwigCPtr);
1246 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.POSITION);
1248 if (view.internalPosition == null)
1250 view.internalPosition = new Position(view.OnPositionChanged, 0, 0, 0);
1252 tmpProperty?.Get(view.internalPosition);
1253 tmpProperty?.Dispose();
1255 return view.internalPosition;
1260 /// PositionXProperty
1262 [EditorBrowsable(EditorBrowsableState.Never)]
1263 public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1265 var view = (View)bindable;
1266 if (newValue != null)
1268 #if NUI_PROPERTY_CHANGE_1
1269 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.PositionX, (float)newValue);
1271 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX, new Tizen.NUI.PropertyValue((float)newValue));
1275 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1277 var view = (View)bindable;
1278 #if NUI_PROPERTY_CHANGE_1
1279 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.PositionX);
1282 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX).Get(out temp);
1288 /// PositionYProperty
1290 [EditorBrowsable(EditorBrowsableState.Never)]
1291 public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1293 var view = (View)bindable;
1294 if (newValue != null)
1296 #if NUI_PROPERTY_CHANGE_1
1297 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.PositionY, (float)newValue);
1299 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY, new Tizen.NUI.PropertyValue((float)newValue));
1303 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1305 var view = (View)bindable;
1306 #if NUI_PROPERTY_CHANGE_1
1307 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.PositionY);
1310 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY).Get(out temp);
1316 /// PositionZProperty
1318 [EditorBrowsable(EditorBrowsableState.Never)]
1319 public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1321 var view = (View)bindable;
1322 if (newValue != null)
1324 #if NUI_PROPERTY_CHANGE_1
1325 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.PositionZ, (float)newValue);
1327 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ, new Tizen.NUI.PropertyValue((float)newValue));
1331 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1333 var view = (View)bindable;
1334 #if NUI_PROPERTY_CHANGE_1
1335 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.PositionZ);
1338 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ).Get(out temp);
1344 /// OrientationProperty
1346 [EditorBrowsable(EditorBrowsableState.Never)]
1347 public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1349 var view = (View)bindable;
1350 if (newValue != null)
1352 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
1355 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1357 var view = (View)bindable;
1358 Rotation temp = new Rotation();
1359 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION).Get(temp);
1366 [EditorBrowsable(EditorBrowsableState.Never)]
1367 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(View), null,
1368 propertyChanged: (bindable, oldValue, newValue) =>
1370 var view = (View)bindable;
1371 if (newValue != null)
1373 view.SetScale((Vector3)newValue);
1376 defaultValueCreator: (bindable) =>
1378 var view = (View)bindable;
1379 #if NUI_PROPERTY_CHANGE_1
1380 if (view.internalScale == null)
1382 view.internalScale = new Vector3(view.OnScaleChanged, 0, 0, 0);
1384 Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.SCALE, view.internalScale.SwigCPtr);
1386 if (view.internalScale == null)
1388 view.internalScale = new Vector3(view.OnScaleChanged, 0, 0, 0);
1391 var tmpPropery = Object.GetProperty(view.SwigCPtr, Property.SCALE);
1392 tmpPropery?.Get(view.internalScale);
1393 tmpPropery?.Dispose();
1395 return view.internalScale;
1402 [EditorBrowsable(EditorBrowsableState.Never)]
1403 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1405 var view = (View)bindable;
1406 if (newValue != null)
1408 #if NUI_PROPERTY_CHANGE_1
1409 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.ScaleX, (float)newValue);
1411 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX, new Tizen.NUI.PropertyValue((float)newValue));
1415 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1417 var view = (View)bindable;
1418 #if NUI_PROPERTY_CHANGE_1
1419 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ScaleX);
1422 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX).Get(out temp);
1430 [EditorBrowsable(EditorBrowsableState.Never)]
1431 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1433 var view = (View)bindable;
1434 if (newValue != null)
1436 #if NUI_PROPERTY_CHANGE_1
1437 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.ScaleY, (float)newValue);
1439 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY, new Tizen.NUI.PropertyValue((float)newValue));
1443 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1445 var view = (View)bindable;
1446 #if NUI_PROPERTY_CHANGE_1
1447 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ScaleY);
1450 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY).Get(out temp);
1458 [EditorBrowsable(EditorBrowsableState.Never)]
1459 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1461 var view = (View)bindable;
1462 if (newValue != null)
1464 #if NUI_PROPERTY_CHANGE_1
1465 Interop.Actor.InternalSetPropertyFloat(view.SwigCPtr, View.Property.ScaleZ, (float)newValue);
1467 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ, new Tizen.NUI.PropertyValue((float)newValue));
1471 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1473 var view = (View)bindable;
1474 #if NUI_PROPERTY_CHANGE_1
1475 return Interop.Actor.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ScaleZ);
1478 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ).Get(out temp);
1486 [EditorBrowsable(EditorBrowsableState.Never)]
1487 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(View), string.Empty,
1488 propertyChanged: (bindable, oldValue, newValue) =>
1490 var view = (View)bindable;
1491 if (newValue != null)
1493 #if NUI_PROPERTY_CHANGE_1
1494 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.NAME, (string)newValue);
1496 view.SetName((string)newValue);
1500 defaultValueCreator: (bindable) =>
1502 var view = (View)bindable;
1503 #if NUI_PROPERTY_CHANGE_1
1504 return Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.NAME);
1507 temp = view.GetName();
1514 /// SensitiveProperty
1516 [EditorBrowsable(EditorBrowsableState.Never)]
1517 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1519 var view = (View)bindable;
1520 if (newValue != null)
1522 #if NUI_PROPERTY_CHANGE_1
1523 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.SENSITIVE, (bool)newValue);
1525 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
1529 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1531 var view = (View)bindable;
1532 #if NUI_PROPERTY_CHANGE_1
1533 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.SENSITIVE);
1536 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE).Get(out temp);
1542 /// IsEnabledProperty
1544 [EditorBrowsable(EditorBrowsableState.Never)]
1545 public static readonly BindableProperty IsEnabledProperty = BindableProperty.Create(nameof(IsEnabled), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1547 var view = (View)bindable;
1548 if (newValue != null)
1550 #if NUI_PROPERTY_CHANGE_1
1551 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.UserInteractionEnabled, (bool)newValue);
1553 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.UserInteractionEnabled, new Tizen.NUI.PropertyValue((bool)newValue));
1555 view.OnEnabled((bool)newValue);
1558 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1560 var view = (View)bindable;
1561 #if NUI_PROPERTY_CHANGE_1
1562 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.UserInteractionEnabled);
1565 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.UserInteractionEnabled).Get(out temp);
1571 /// DispatchKeyEventsProperty
1573 [EditorBrowsable(EditorBrowsableState.Never)]
1574 public static readonly BindableProperty DispatchKeyEventsProperty = BindableProperty.Create(nameof(DispatchKeyEvents), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1576 var view = (View)bindable;
1577 if (newValue != null)
1579 #if NUI_PROPERTY_CHANGE_1
1580 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.DispatchKeyEvents, (bool)newValue);
1582 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents, new Tizen.NUI.PropertyValue((bool)newValue));
1586 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1588 var view = (View)bindable;
1589 #if NUI_PROPERTY_CHANGE_1
1590 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.DispatchKeyEvents);
1593 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents).Get(out temp);
1599 /// LeaveRequiredProperty
1601 [EditorBrowsable(EditorBrowsableState.Never)]
1602 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1604 var view = (View)bindable;
1605 if (newValue != null)
1607 #if NUI_PROPERTY_CHANGE_1
1608 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.LeaveRequired, (bool)newValue);
1610 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired, new Tizen.NUI.PropertyValue((bool)newValue));
1614 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1616 var view = (View)bindable;
1617 #if NUI_PROPERTY_CHANGE_1
1618 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.LeaveRequired);
1621 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired).Get(out temp);
1627 /// InheritOrientationProperty
1629 [EditorBrowsable(EditorBrowsableState.Never)]
1630 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1632 var view = (View)bindable;
1633 if (newValue != null)
1635 #if NUI_PROPERTY_CHANGE_1
1636 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.InheritOrientation, (bool)newValue);
1638 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation, new Tizen.NUI.PropertyValue((bool)newValue));
1642 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1644 var view = (View)bindable;
1645 #if NUI_PROPERTY_CHANGE_1
1646 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.InheritOrientation);
1649 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation).Get(out temp);
1655 /// InheritScaleProperty
1657 [EditorBrowsable(EditorBrowsableState.Never)]
1658 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1660 var view = (View)bindable;
1661 if (newValue != null)
1663 #if NUI_PROPERTY_CHANGE_1
1664 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.InheritScale, (bool)newValue);
1666 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale, new Tizen.NUI.PropertyValue((bool)newValue));
1670 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1672 var view = (View)bindable;
1673 #if NUI_PROPERTY_CHANGE_1
1674 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.InheritScale);
1677 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale).Get(out temp);
1683 /// DrawModeProperty
1685 [EditorBrowsable(EditorBrowsableState.Never)]
1686 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1688 var view = (View)bindable;
1689 if (newValue != null)
1691 #if NUI_PROPERTY_CHANGE_1
1692 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.DrawMode, (int)newValue);
1694 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode, new Tizen.NUI.PropertyValue((int)newValue));
1698 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1700 var view = (View)bindable;
1701 #if NUI_PROPERTY_CHANGE_1
1702 return (DrawModeType)Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, View.Property.DrawMode);
1705 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode).Get(out temp) == false)
1707 NUILog.Error("DrawMode get error!");
1709 return (DrawModeType)temp;
1714 /// SizeModeFactorProperty
1716 [EditorBrowsable(EditorBrowsableState.Never)]
1717 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(View), null,
1718 propertyChanged: (bindable, oldValue, newValue) =>
1720 var view = (View)bindable;
1721 if (newValue != null)
1723 #if NUI_PROPERTY_CHANGE_1
1724 Interop.Actor.InternalSetPropertyVector3(view.SwigCPtr, View.Property.SizeModeFactor, ((Vector3)newValue).SwigCPtr);
1726 var tmp = new PropertyValue((Vector3)newValue);
1727 Object.SetProperty(view.SwigCPtr, Property.SizeModeFactor, tmp);
1732 defaultValueCreator: (bindable) =>
1734 var view = (View)bindable;
1735 #if NUI_PROPERTY_CHANGE_1
1736 if (view.internalSizeModeFactor == null)
1738 view.internalSizeModeFactor = new Vector3(view.OnSizeModeFactorChanged, 0, 0, 0);
1740 Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.SizeModeFactor, view.internalSizeModeFactor.SwigCPtr);
1742 if (view.internalSizeModeFactor == null)
1744 view.internalSizeModeFactor = new Vector3(view.OnSizeModeFactorChanged, 0, 0, 0);
1746 var tmp = Object.GetProperty(view.SwigCPtr, Property.SizeModeFactor);
1747 tmp?.Get(view.internalSizeModeFactor);
1750 return view.internalSizeModeFactor;
1755 /// WidthResizePolicyProperty
1757 [EditorBrowsable(EditorBrowsableState.Never)]
1758 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1760 var view = (View)bindable;
1761 if (newValue != null)
1763 if ((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1765 if (view.widthConstraint == null)
1767 view.widthConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, View.Property.SizeWidth);
1768 view.widthConstraint.Apply();
1770 #if NUI_PROPERTY_CHANGE_1
1771 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.WidthResizePolicy, (int)ResizePolicyType.FillToParent);
1773 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1778 view.widthConstraint?.Remove();
1779 view.widthConstraint?.Dispose();
1780 view.widthConstraint = null;
1781 #if NUI_PROPERTY_CHANGE_1
1782 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.WidthResizePolicy, (int)newValue);
1784 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1787 // Match ResizePolicy to new Layouting.
1788 // Parent relative policies can not be mapped at this point as parent size unknown.
1789 switch ((ResizePolicyType)newValue)
1791 case ResizePolicyType.UseNaturalSize:
1793 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1796 case ResizePolicyType.FillToParent:
1798 view.WidthSpecification = LayoutParamPolicies.MatchParent;
1801 case ResizePolicyType.FitToChildren:
1803 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1811 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1813 var view = (View)bindable;
1815 #if NUI_PROPERTY_CHANGE_1
1816 temp = Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.WidthResizePolicy);
1818 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy).Get(out temp) == false)
1820 NUILog.Error("WidthResizePolicy get error!");
1823 return temp.GetValueByDescription<ResizePolicyType>();
1827 /// HeightResizePolicyProperty
1829 [EditorBrowsable(EditorBrowsableState.Never)]
1830 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1832 var view = (View)bindable;
1833 if (newValue != null)
1835 if ((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1837 if (view.heightConstraint == null)
1839 view.heightConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, View.Property.SizeHeight);
1840 view.heightConstraint.Apply();
1842 #if NUI_PROPERTY_CHANGE_1
1843 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.HeightResizePolicy, (int)ResizePolicyType.FillToParent);
1845 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1850 view.heightConstraint?.Remove();
1851 view.heightConstraint?.Dispose();
1852 view.heightConstraint = null;
1853 #if NUI_PROPERTY_CHANGE_1
1854 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.HeightResizePolicy, (int)newValue);
1856 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1859 // Match ResizePolicy to new Layouting.
1860 // Parent relative policies can not be mapped at this point as parent size unknown.
1861 switch ((ResizePolicyType)newValue)
1863 case ResizePolicyType.UseNaturalSize:
1865 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1868 case ResizePolicyType.FillToParent:
1870 view.HeightSpecification = LayoutParamPolicies.MatchParent;
1873 case ResizePolicyType.FitToChildren:
1875 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1883 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1885 var view = (View)bindable;
1887 #if NUI_PROPERTY_CHANGE_1
1888 temp = Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.HeightResizePolicy);
1890 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy).Get(out temp) == false)
1892 NUILog.Error("HeightResizePolicy get error!");
1895 return temp.GetValueByDescription<ResizePolicyType>();
1899 /// SizeScalePolicyProperty
1901 [EditorBrowsable(EditorBrowsableState.Never)]
1902 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1904 var view = (View)bindable;
1905 string valueToString = "";
1906 if (newValue != null)
1908 valueToString = ((SizeScalePolicyType)newValue).GetDescription();
1909 #if NUI_PROPERTY_CHANGE_1
1910 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.SizeScalePolicy, valueToString);
1912 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy, new Tizen.NUI.PropertyValue(valueToString));
1916 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1918 var view = (View)bindable;
1919 #if NUI_PROPERTY_CHANGE_1
1920 return (SizeScalePolicyType)Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, View.Property.SizeScalePolicy);
1923 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy).Get(out temp) == false)
1925 NUILog.Error("SizeScalePolicy get error!");
1927 return (SizeScalePolicyType)temp;
1932 /// WidthForHeightProperty
1934 [EditorBrowsable(EditorBrowsableState.Never)]
1935 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1937 var view = (View)bindable;
1938 if (newValue != null)
1940 #if NUI_PROPERTY_CHANGE_1
1941 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.WidthForHeight, (bool)newValue);
1943 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight, new Tizen.NUI.PropertyValue((bool)newValue));
1947 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1949 var view = (View)bindable;
1950 #if NUI_PROPERTY_CHANGE_1
1951 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.WidthForHeight);
1954 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight).Get(out temp);
1960 /// HeightForWidthProperty
1962 [EditorBrowsable(EditorBrowsableState.Never)]
1963 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1965 var view = (View)bindable;
1966 if (newValue != null)
1968 #if NUI_PROPERTY_CHANGE_1
1969 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.HeightForWidth, (bool)newValue);
1971 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth, new Tizen.NUI.PropertyValue((bool)newValue));
1975 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1977 var view = (View)bindable;
1978 #if NUI_PROPERTY_CHANGE_1
1979 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.HeightForWidth);
1982 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth).Get(out temp);
1990 [EditorBrowsable(EditorBrowsableState.Never)]
1991 public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(View), null,
1992 propertyChanged: (bindable, oldValue, newValue) =>
1994 var view = (View)bindable;
1995 if (newValue != null)
1997 if (view.Layout != null)
1999 view.Layout.Padding = new Extents((Extents)newValue);
2000 if ((view.Padding.Start != 0) || (view.Padding.End != 0) || (view.Padding.Top != 0) || (view.Padding.Bottom != 0))
2002 var tmp = new PropertyValue(new Extents(0, 0, 0, 0));
2003 Object.SetProperty(view.SwigCPtr, Property.PADDING, tmp);
2006 view.Layout.RequestLayout();
2010 var tmp = new PropertyValue((Extents)newValue);
2011 Object.SetProperty(view.SwigCPtr, Property.PADDING, tmp);
2016 defaultValueCreator: (bindable) =>
2018 var view = (View)bindable;
2019 if ((view.internalPadding == null) || (view.Layout != null))
2021 ushort start = 0, end = 0, top = 0, bottom = 0;
2022 if (view.Layout != null)
2024 if (view.Layout.Padding != null)
2026 start = view.Layout.Padding.Start;
2027 end = view.Layout.Padding.End;
2028 top = view.Layout.Padding.Top;
2029 bottom = view.Layout.Padding.Bottom;
2032 view.internalPadding = new Extents(view.OnPaddingChanged, start, end, top, bottom);
2035 if (view.Layout == null)
2037 var tmp = Object.GetProperty(view.SwigCPtr, Property.PADDING);
2038 tmp?.Get(view.internalPadding);
2042 return view.internalPadding;
2049 [EditorBrowsable(EditorBrowsableState.Never)]
2050 public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(View), null,
2051 propertyChanged: (bindable, oldValue, newValue) =>
2053 var view = (View)bindable;
2054 if (newValue != null)
2056 // Size property setter is only used by user.
2057 // Framework code uses SetSize() instead of Size property setter.
2058 // Size set by user is returned by GetUserSize2D() for SuggestedMinimumWidth/Height.
2059 // SuggestedMinimumWidth/Height is used by Layout calculation.
2060 view.userSizeWidth = ((Size)newValue).Width;
2061 view.userSizeHeight = ((Size)newValue).Height;
2063 // Set Specification so when layouts measure this View it matches the value set here.
2064 // All Views are currently Layouts.
2065 view.WidthSpecification = (int)System.Math.Ceiling(((Size)newValue).Width);
2066 view.HeightSpecification = (int)System.Math.Ceiling(((Size)newValue).Height);
2068 view.SetSize(((Size)newValue).Width, ((Size)newValue).Height, ((Size)newValue).Depth);
2071 defaultValueCreator: (bindable) =>
2073 var view = (View)bindable;
2074 #if NUI_PROPERTY_CHANGE_1
2075 if (view.internalSize == null)
2077 view.internalSize = new Size(view.OnSizeChanged, 0, 0, 0);
2079 Interop.Actor.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.SIZE, view.internalSize.SwigCPtr);
2081 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.SIZE);
2082 if (view.internalSize == null)
2084 view.internalSize = new Size(view.OnSizeChanged, 0, 0, 0);
2086 tmpProperty?.Get(view.internalSize);
2087 tmpProperty?.Dispose();
2089 return view.internalSize;
2094 /// MinimumSizeProperty
2096 [EditorBrowsable(EditorBrowsableState.Never)]
2097 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(View), null,
2098 propertyChanged: (bindable, oldValue, newValue) =>
2100 var view = (View)bindable;
2101 if (newValue != null)
2103 #if NUI_PROPERTY_CHANGE_1
2104 Interop.Actor.InternalSetPropertyVector2(view.SwigCPtr, View.Property.MinimumSize, ((Size2D)newValue).SwigCPtr);
2106 view.SetMinimumSize((Size2D)newValue);
2110 defaultValueCreator: (bindable) =>
2112 #if NUI_PROPERTY_CHANGE_1
2113 var view = (View)bindable;
2114 if (view.internalMinimumSize == null)
2116 view.internalMinimumSize = new Size2D(view.OnMinimumSizeChanged, 0, 0);
2118 Interop.Actor.InternalRetrievingPropertyVector2(view.SwigCPtr, View.Property.MinimumSize, view.internalMinimumSize.SwigCPtr);
2120 var view = (View)bindable;
2121 if (view.internalMinimumSize == null)
2123 view.internalMinimumSize = new Size2D(view.OnMinimumSizeChanged, 0, 0);
2125 var tmp = Object.GetProperty(view.SwigCPtr, Property.MinimumSize);
2126 tmp?.Get(view.internalMinimumSize);
2129 return view.internalMinimumSize;
2134 /// MaximumSizeProperty
2136 [EditorBrowsable(EditorBrowsableState.Never)]
2137 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(View), null,
2138 propertyChanged: (bindable, oldValue, newValue) =>
2140 var view = (View)bindable;
2141 if (newValue != null)
2143 #if NUI_PROPERTY_CHANGE_1
2144 Interop.Actor.InternalSetPropertyVector2(view.SwigCPtr, View.Property.MaximumSize, ((Size2D)newValue).SwigCPtr);
2146 view.SetMaximumSize((Size2D)newValue);
2150 defaultValueCreator: (bindable) =>
2152 var view = (View)bindable;
2153 #if NUI_PROPERTY_CHANGE_1
2154 if (view.internalMaximumSize == null)
2156 view.internalMaximumSize = new Size2D(view.OnMaximumSizeChanged, 0, 0);
2158 Interop.Actor.InternalRetrievingPropertyVector2(view.SwigCPtr, View.Property.MaximumSize, view.internalMaximumSize.SwigCPtr);
2160 if (view.internalMaximumSize == null)
2162 view.internalMaximumSize = new Size2D(view.OnMaximumSizeChanged, 0, 0);
2165 var tmp = Object.GetProperty(view.SwigCPtr, Property.MaximumSize);
2166 tmp?.Get(view.internalMaximumSize);
2169 return view.internalMaximumSize;
2174 /// InheritPositionProperty
2176 [EditorBrowsable(EditorBrowsableState.Never)]
2177 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2179 var view = (View)bindable;
2180 if (newValue != null)
2182 #if NUI_PROPERTY_CHANGE_1
2183 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.InheritPosition, (bool)newValue);
2185 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition, new Tizen.NUI.PropertyValue((bool)newValue));
2189 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2191 var view = (View)bindable;
2192 #if NUI_PROPERTY_CHANGE_1
2193 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.InheritPosition);
2196 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition).Get(out temp);
2202 /// ClippingModeProperty
2204 [EditorBrowsable(EditorBrowsableState.Never)]
2205 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2207 var view = (View)bindable;
2208 if (newValue != null)
2210 #if NUI_PROPERTY_CHANGE_1
2211 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.ClippingMode, (int)newValue);
2213 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode, new Tizen.NUI.PropertyValue((int)newValue));
2217 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2219 var view = (View)bindable;
2220 #if NUI_PROPERTY_CHANGE_1
2221 return (ClippingModeType)Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, View.Property.ClippingMode);
2224 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode).Get(out temp) == false)
2226 NUILog.Error("ClippingMode get error!");
2228 return (ClippingModeType)temp;
2233 /// InheritLayoutDirectionProperty
2235 [EditorBrowsable(EditorBrowsableState.Never)]
2236 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2238 var view = (View)bindable;
2239 if (newValue != null)
2241 #if NUI_PROPERTY_CHANGE_1
2242 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.InheritLayoutDirection, (bool)newValue);
2244 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection, new Tizen.NUI.PropertyValue((bool)newValue));
2248 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2250 var view = (View)bindable;
2251 #if NUI_PROPERTY_CHANGE_1
2252 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.InheritLayoutDirection);
2255 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection).Get(out temp);
2261 /// LayoutDirectionProperty
2263 [EditorBrowsable(EditorBrowsableState.Never)]
2264 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2266 var view = (View)bindable;
2267 if (newValue != null)
2269 #if NUI_PROPERTY_CHANGE_1
2270 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.LayoutDirection, (int)newValue);
2272 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection, new Tizen.NUI.PropertyValue((int)newValue));
2276 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2278 var view = (View)bindable;
2279 #if NUI_PROPERTY_CHANGE_1
2280 return (ViewLayoutDirectionType)Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, View.Property.LayoutDirection);
2283 if (false == Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection).Get(out temp))
2285 NUILog.Error("LAYOUT_DIRECTION get error!");
2287 return (ViewLayoutDirectionType)temp;
2294 [EditorBrowsable(EditorBrowsableState.Never)]
2295 public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(View), null,
2296 propertyChanged: (bindable, oldValue, newValue) =>
2298 var view = (View)bindable;
2299 if (newValue != null)
2301 if (view.Layout != null)
2303 view.Layout.Margin = new Extents((Extents)newValue);
2304 if ((view.Margin.Start != 0) || (view.Margin.End != 0) || (view.Margin.Top != 0) || (view.Margin.Bottom != 0))
2306 var tmp = new PropertyValue(new Extents(0, 0, 0, 0));
2307 Object.SetProperty(view.SwigCPtr, Property.MARGIN, tmp);
2310 view.Layout.RequestLayout();
2314 var tmp = new PropertyValue((Extents)newValue);
2315 Object.SetProperty(view.SwigCPtr, Property.MARGIN, tmp);
2320 defaultValueCreator: (bindable) =>
2322 var view = (View)bindable;
2323 if ((view.internalMargin == null) || (view.Layout != null))
2325 ushort start = 0, end = 0, top = 0, bottom = 0;
2326 if (view.Layout != null)
2328 if (view.Layout.Margin != null)
2330 start = view.Layout.Margin.Start;
2331 end = view.Layout.Margin.End;
2332 top = view.Layout.Margin.Top;
2333 bottom = view.Layout.Margin.Bottom;
2336 view.internalMargin = new Extents(view.OnMarginChanged, start, end, top, bottom);
2339 if (view.Layout == null)
2342 var tmp = Object.GetProperty(view.SwigCPtr, Property.MARGIN);
2343 tmp?.Get(view.internalMargin);
2347 return view.internalMargin;
2352 /// UpdateAreaHintProperty
2354 [EditorBrowsable(EditorBrowsableState.Never)]
2355 public static readonly BindableProperty UpdateAreaHintProperty = BindableProperty.Create(nameof(UpdateAreaHint), typeof(Vector4), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2357 var view = (View)bindable;
2358 if (newValue != null)
2360 #if NUI_PROPERTY_CHANGE_1
2361 Interop.Actor.InternalSetPropertyVector4(view.SwigCPtr, Interop.ActorProperty.UpdateAreaHintGet(), ((Vector4)newValue).SwigCPtr);
2363 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ActorProperty.UpdateAreaHintGet(), new Tizen.NUI.PropertyValue((Vector4)newValue));
2367 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2369 var view = (View)bindable;
2370 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
2371 #if NUI_PROPERTY_CHANGE_1
2372 Interop.Actor.InternalRetrievingPropertyVector4(view.SwigCPtr, Interop.ActorProperty.UpdateAreaHintGet(), temp.SwigCPtr);
2374 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ActorProperty.UpdateAreaHintGet()).Get(temp);
2380 /// ImageShadow Property
2382 [EditorBrowsable(EditorBrowsableState.Never)]
2383 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(ImageShadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2385 var view = (View)bindable;
2387 view.themeData?.selectorData?.ClearShadow(view);
2389 if (newValue is Selector<ImageShadow> selector)
2391 if (selector.HasAll()) view.SetShadow(selector.All);
2392 else view.EnsureSelectorData().ImageShadow = new TriggerableSelector<ImageShadow>(view, selector, view.SetShadow, true);
2396 view.SetShadow((ImageShadow)newValue);
2399 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2401 var view = (View)bindable;
2403 PropertyMap map = new PropertyMap();
2404 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
2406 var shadow = new ImageShadow(map);
2407 return shadow.IsEmpty() ? null : shadow;
2413 [EditorBrowsable(EditorBrowsableState.Never)]
2414 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Shadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
2416 var view = (View)bindable;
2418 view.themeData?.selectorData?.ClearShadow(view);
2420 if (newValue is Selector<Shadow> selector)
2422 if (selector.HasAll()) view.SetShadow(selector.All);
2423 else view.EnsureSelectorData().BoxShadow = new TriggerableSelector<Shadow>(view, selector, view.SetShadow, true);
2427 view.SetShadow((Shadow)newValue);
2430 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
2432 var view = (View)bindable;
2434 PropertyMap map = new PropertyMap();
2435 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
2437 var shadow = new Shadow(map);
2438 return shadow.IsEmpty() ? null : shadow;
2442 /// CornerRadius Property
2444 [EditorBrowsable(EditorBrowsableState.Never)]
2445 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2447 var view = (View)bindable;
2448 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadius = (Vector4)newValue;
2449 view.ApplyCornerRadius();
2451 defaultValueCreator: (bindable) =>
2453 var view = (View)bindable;
2454 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.CornerRadius;
2458 /// CornerRadiusPolicy Property
2460 [EditorBrowsable(EditorBrowsableState.Never)]
2461 public static readonly BindableProperty CornerRadiusPolicyProperty = BindableProperty.Create(nameof(CornerRadiusPolicy), typeof(VisualTransformPolicyType), typeof(View), VisualTransformPolicyType.Absolute, propertyChanged: (bindable, oldValue, newValue) =>
2463 var view = (View)bindable;
2464 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadiusPolicy = (VisualTransformPolicyType)newValue;
2466 if (view.backgroundExtraData.CornerRadius != null)
2468 view.ApplyCornerRadius();
2471 defaultValueCreator: (bindable) =>
2473 var view = (View)bindable;
2474 return view.backgroundExtraData == null ? VisualTransformPolicyType.Absolute : view.backgroundExtraData.CornerRadiusPolicy;
2478 /// BorderlineWidth Property
2480 [EditorBrowsable(EditorBrowsableState.Never)]
2481 public static readonly BindableProperty BorderlineWidthProperty = BindableProperty.Create(nameof(BorderlineWidth), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
2483 var view = (View)bindable;
2484 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineWidth = (float)newValue;
2485 view.ApplyBorderline();
2487 defaultValueCreator: (bindable) =>
2489 var view = (View)bindable;
2490 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineWidth;
2494 /// BorderlineColor Property
2496 [EditorBrowsable(EditorBrowsableState.Never)]
2497 public static readonly BindableProperty BorderlineColorProperty = BindableProperty.Create(nameof(BorderlineColor), typeof(Color), typeof(View), null,
2498 propertyChanged: (bindable, oldValue, newValue) =>
2500 var view = (View)bindable;
2502 view.themeData?.selectorData?.BorderlineColor?.Reset(view);
2504 if (newValue is Selector<Color> selector)
2506 if (selector.HasAll()) view.SetBorderlineColor(selector.All);
2507 else view.EnsureSelectorData().BorderlineColor = new TriggerableSelector<Color>(view, selector, view.SetBorderlineColor, true);
2511 view.SetBorderlineColor((Color)newValue);
2514 defaultValueCreator: (bindable) =>
2516 var view = (View)bindable;
2517 return view.backgroundExtraData == null ? Color.Black : view.backgroundExtraData.BorderlineColor;
2522 /// BorderlineColorSelector Property
2523 /// Like BackgroundColor, color selector typed BorderlineColor should be used in ViewStyle only.
2524 /// So this API is internally used only.
2526 internal static readonly BindableProperty BorderlineColorSelectorProperty = BindableProperty.Create(nameof(BorderlineColorSelector), typeof(Selector<Color>), typeof(View), null,
2527 propertyChanged: (bindable, oldValue, newValue) =>
2529 var view = (View)bindable;
2531 view.themeData?.selectorData?.BorderlineColor?.Reset(view);
2533 if (newValue is Selector<Color> selector)
2535 if (selector.HasAll()) view.SetBorderlineColor(selector.All);
2536 else view.EnsureSelectorData().BorderlineColor = new TriggerableSelector<Color>(view, selector, view.SetBorderlineColor, true);
2540 view.SetBorderlineColor((Color)newValue);
2543 defaultValueCreator: (bindable) =>
2545 var view = (View)bindable;
2546 var selector = view.themeData?.selectorData?.BorderlineColor?.Get();
2547 return (null != selector) ? selector : new Selector<Color>();
2552 /// BorderlineOffset Property
2554 [EditorBrowsable(EditorBrowsableState.Never)]
2555 public static readonly BindableProperty BorderlineOffsetProperty = BindableProperty.Create(nameof(BorderlineOffset), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
2557 var view = (View)bindable;
2558 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineOffset = (float)newValue;
2559 view.ApplyBorderline();
2561 defaultValueCreator: (bindable) =>
2563 var view = (View)bindable;
2564 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineOffset;
2568 /// EnableControlState property
2570 [EditorBrowsable(EditorBrowsableState.Never)]
2571 public static readonly BindableProperty EnableControlStateProperty = BindableProperty.Create(nameof(EnableControlState), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2573 var view = (View)bindable;
2574 bool prev = view.enableControlState;
2575 view.enableControlState = (bool)newValue;
2577 if (prev != view.enableControlState)
2581 view.TouchEvent -= view.EmptyOnTouch;
2585 view.TouchEvent += view.EmptyOnTouch;
2589 defaultValueCreator: (bindable) =>
2591 return ((View)bindable).enableControlState;
2595 /// ThemeChangeSensitive property
2597 [EditorBrowsable(EditorBrowsableState.Never)]
2598 public static readonly BindableProperty ThemeChangeSensitiveProperty = BindableProperty.Create(nameof(ThemeChangeSensitive), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2600 var view = (View)bindable;
2602 if (view.ThemeChangeSensitive == (bool)newValue) return;
2604 if (view.themeData == null) view.themeData = new ThemeData();
2606 view.themeData.ThemeChangeSensitive = (bool)newValue;
2608 if (!view.themeData.ThemeApplied) return;
2610 if (view.themeData.ThemeChangeSensitive && !view.themeData.ListeningThemeChangeEvent)
2612 view.themeData.ListeningThemeChangeEvent = true;
2613 ThemeManager.ThemeChangedInternal.Add(view.OnThemeChanged);
2615 else if (!view.themeData.ThemeChangeSensitive && view.themeData.ListeningThemeChangeEvent)
2617 view.themeData.ListeningThemeChangeEvent = false;
2618 ThemeManager.ThemeChangedInternal.Remove(view.OnThemeChanged);
2621 defaultValueCreator: (bindable) =>
2623 return ((View)bindable).themeData?.ThemeChangeSensitive ?? ThemeManager.ApplicationThemeChangeSensitive;
2627 /// AccessibilityNameProperty
2629 [EditorBrowsable(EditorBrowsableState.Never)]
2630 public static readonly BindableProperty AccessibilityNameProperty = BindableProperty.Create(nameof(AccessibilityName), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2632 var view = (View)bindable;
2633 if (newValue != null)
2635 #if NUI_PROPERTY_CHANGE_1
2636 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.AccessibilityName, (string)newValue);
2638 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName, new Tizen.NUI.PropertyValue((string)newValue));
2642 defaultValueCreator: (bindable) =>
2644 var view = (View)bindable;
2645 #if NUI_PROPERTY_CHANGE_1
2646 return Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.AccessibilityName);
2649 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName).Get(out temp);
2655 /// AccessibilityDescriptionProperty
2657 [EditorBrowsable(EditorBrowsableState.Never)]
2658 public static readonly BindableProperty AccessibilityDescriptionProperty = BindableProperty.Create(nameof(AccessibilityDescription), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2660 var view = (View)bindable;
2661 if (newValue != null)
2663 #if NUI_PROPERTY_CHANGE_1
2664 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.AccessibilityDescription, (string)newValue);
2666 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription, new Tizen.NUI.PropertyValue((string)newValue));
2670 defaultValueCreator: (bindable) =>
2672 var view = (View)bindable;
2673 #if NUI_PROPERTY_CHANGE_1
2674 return Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.AccessibilityDescription);
2677 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription).Get(out temp);
2683 /// AccessibilityTranslationDomainProperty
2685 [EditorBrowsable(EditorBrowsableState.Never)]
2686 public static readonly BindableProperty AccessibilityTranslationDomainProperty = BindableProperty.Create(nameof(AccessibilityTranslationDomain), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2688 var view = (View)bindable;
2689 if (newValue != null)
2691 #if NUI_PROPERTY_CHANGE_1
2692 Interop.Actor.InternalSetPropertyString(view.SwigCPtr, View.Property.AccessibilityTranslationDomain, (string)newValue);
2694 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain, new Tizen.NUI.PropertyValue((string)newValue));
2698 defaultValueCreator: (bindable) =>
2700 var view = (View)bindable;
2701 #if NUI_PROPERTY_CHANGE_1
2702 return Interop.Actor.InternalGetPropertyString(view.SwigCPtr, View.Property.AccessibilityTranslationDomain);
2705 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain).Get(out temp);
2711 /// AccessibilityRoleProperty
2713 [EditorBrowsable(EditorBrowsableState.Never)]
2714 public static readonly BindableProperty AccessibilityRoleProperty = BindableProperty.Create(nameof(AccessibilityRole), typeof(Role), typeof(View), default(Role), propertyChanged: (bindable, oldValue, newValue) =>
2716 var view = (View)bindable;
2717 if (newValue != null)
2719 #if NUI_PROPERTY_CHANGE_1
2720 Interop.Actor.InternalSetPropertyInt(view.SwigCPtr, View.Property.AccessibilityRole, (int)newValue);
2722 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole, new Tizen.NUI.PropertyValue((int)newValue));
2726 defaultValueCreator: (bindable) =>
2728 var view = (View)bindable;
2729 #if NUI_PROPERTY_CHANGE_1
2730 return (Role)Interop.Actor.InternalGetPropertyInt(view.SwigCPtr, View.Property.AccessibilityRole);
2733 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole).Get(out temp);
2739 /// AccessibilityHighlightableProperty
2741 [EditorBrowsable(EditorBrowsableState.Never)]
2742 public static readonly BindableProperty AccessibilityHighlightableProperty = BindableProperty.Create(nameof(AccessibilityHighlightable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2744 var view = (View)bindable;
2745 if (newValue != null)
2747 #if NUI_PROPERTY_CHANGE_1
2748 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.AccessibilityHighlightable, (bool)newValue);
2750 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable, new Tizen.NUI.PropertyValue((bool)newValue));
2754 defaultValueCreator: (bindable) =>
2756 var view = (View)bindable;
2757 #if NUI_PROPERTY_CHANGE_1
2758 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.AccessibilityHighlightable);
2761 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable).Get(out temp);
2767 /// AccessibilityHiddenProperty
2769 [EditorBrowsable(EditorBrowsableState.Never)]
2770 public static readonly BindableProperty AccessibilityHiddenProperty = BindableProperty.Create(nameof(AccessibilityHidden), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2772 var view = (View)bindable;
2773 if (newValue != null)
2775 #if NUI_PROPERTY_CHANGE_1
2776 Interop.Actor.InternalSetPropertyBool(view.SwigCPtr, View.Property.AccessibilityHidden, (bool)newValue);
2778 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHidden, new Tizen.NUI.PropertyValue((bool)newValue));
2782 defaultValueCreator: (bindable) =>
2784 var view = (View)bindable;
2785 #if NUI_PROPERTY_CHANGE_1
2786 return Interop.Actor.InternalGetPropertyBool(view.SwigCPtr, View.Property.AccessibilityHidden);
2789 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHidden).Get(out temp);
2795 /// ExcludeLayoutingProperty
2797 [EditorBrowsable(EditorBrowsableState.Never)]
2798 public static readonly BindableProperty ExcludeLayoutingProperty = BindableProperty.Create(nameof(ExcludeLayouting), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2800 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2801 if (newValue != null)
2803 instance.InternalExcludeLayouting = (bool)newValue;
2806 defaultValueCreator: (bindable) =>
2808 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2809 return instance.InternalExcludeLayouting;
2813 /// TooltipTextProperty
2815 [EditorBrowsable(EditorBrowsableState.Never)]
2816 public static readonly BindableProperty TooltipTextProperty = BindableProperty.Create(nameof(TooltipText), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2818 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2819 if (newValue != null)
2821 instance.InternalTooltipText = (string)newValue;
2824 defaultValueCreator: (bindable) =>
2826 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2827 return instance.InternalTooltipText;
2831 /// PositionUsesAnchorPointProperty
2833 [EditorBrowsable(EditorBrowsableState.Never)]
2834 public static readonly BindableProperty PositionUsesAnchorPointProperty = BindableProperty.Create(nameof(PositionUsesAnchorPoint), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2836 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2837 if (newValue != null)
2839 instance.InternalPositionUsesAnchorPoint = (bool)newValue;
2842 defaultValueCreator: (bindable) =>
2844 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2845 return instance.InternalPositionUsesAnchorPoint;
2849 /// AnchorPointProperty
2851 [EditorBrowsable(EditorBrowsableState.Never)]
2852 public static readonly BindableProperty AnchorPointProperty = BindableProperty.Create(nameof(AnchorPoint), typeof(Tizen.NUI.Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2854 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2855 if (newValue != null)
2857 instance.InternalAnchorPoint = (Tizen.NUI.Position)newValue;
2860 defaultValueCreator: (bindable) =>
2862 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2863 return instance.InternalAnchorPoint;
2867 /// WidthSpecificationProperty
2869 [EditorBrowsable(EditorBrowsableState.Never)]
2870 public static readonly BindableProperty WidthSpecificationProperty = BindableProperty.Create(nameof(WidthSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
2872 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2873 if (newValue != null)
2875 instance.InternalWidthSpecification = (int)newValue;
2878 defaultValueCreator: (bindable) =>
2880 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2881 return instance.InternalWidthSpecification;
2885 /// HeightSpecificationProperty
2887 [EditorBrowsable(EditorBrowsableState.Never)]
2888 public static readonly BindableProperty HeightSpecificationProperty = BindableProperty.Create(nameof(HeightSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
2890 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2891 if (newValue != null)
2893 instance.InternalHeightSpecification = (int)newValue;
2896 defaultValueCreator: (bindable) =>
2898 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2899 return instance.InternalHeightSpecification;
2903 /// LayoutTransitionProperty
2905 [EditorBrowsable(EditorBrowsableState.Never)]
2906 public static readonly BindableProperty LayoutTransitionProperty = BindableProperty.Create(nameof(LayoutTransition), typeof(Tizen.NUI.LayoutTransition), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2908 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2909 if (newValue != null)
2911 instance.InternalLayoutTransition = (Tizen.NUI.LayoutTransition)newValue;
2914 defaultValueCreator: (bindable) =>
2916 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2917 return instance.InternalLayoutTransition;
2921 /// PaddingEXProperty
2923 [EditorBrowsable(EditorBrowsableState.Never)]
2924 public static readonly BindableProperty PaddingEXProperty = BindableProperty.Create(nameof(PaddingEX), typeof(Tizen.NUI.Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2926 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2927 if (newValue != null)
2929 instance.InternalPaddingEX = (Tizen.NUI.Extents)newValue;
2932 defaultValueCreator: (bindable) =>
2934 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2935 return instance.InternalPaddingEX;
2941 [EditorBrowsable(EditorBrowsableState.Never)]
2942 public static readonly BindableProperty LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.LayoutItem), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2944 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2945 if (newValue != null)
2947 instance.InternalLayout = (Tizen.NUI.LayoutItem)newValue;
2950 defaultValueCreator: (bindable) =>
2952 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2953 return instance.InternalLayout;
2957 /// BackgroundImageSynchronosLoadingProperty
2959 [EditorBrowsable(EditorBrowsableState.Never)]
2960 public static readonly BindableProperty BackgroundImageSynchronosLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronosLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2962 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2963 if (newValue != null)
2965 instance.InternalBackgroundImageSynchronosLoading = (bool)newValue;
2968 defaultValueCreator: (bindable) =>
2970 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2971 return instance.InternalBackgroundImageSynchronosLoading;
2975 /// BackgroundImageSynchronousLoadingProperty
2977 [EditorBrowsable(EditorBrowsableState.Never)]
2978 public static readonly BindableProperty BackgroundImageSynchronousLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronousLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2980 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2981 if (newValue != null)
2983 instance.InternalBackgroundImageSynchronousLoading = (bool)newValue;
2986 defaultValueCreator: (bindable) =>
2988 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2989 return instance.InternalBackgroundImageSynchronousLoading;
2993 /// EnableControlStatePropagationProperty
2995 [EditorBrowsable(EditorBrowsableState.Never)]
2996 public static readonly BindableProperty EnableControlStatePropagationProperty = BindableProperty.Create(nameof(EnableControlStatePropagation), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2998 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2999 if (newValue != null)
3001 instance.InternalEnableControlStatePropagation = (bool)newValue;
3004 defaultValueCreator: (bindable) =>
3006 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3007 return instance.InternalEnableControlStatePropagation;
3011 /// PropagatableControlStatesProperty
3013 [EditorBrowsable(EditorBrowsableState.Never)]
3014 public static readonly BindableProperty PropagatableControlStatesProperty = BindableProperty.Create(nameof(PropagatableControlStates), typeof(ControlState), typeof(View), ControlState.All, propertyChanged: (bindable, oldValue, newValue) =>
3016 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3017 if (newValue != null)
3019 instance.InternalPropagatableControlStates = (ControlState)newValue;
3022 defaultValueCreator: (bindable) =>
3024 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3025 return instance.InternalPropagatableControlStates;
3029 /// GrabTouchAfterLeaveProperty
3031 [EditorBrowsable(EditorBrowsableState.Never)]
3032 public static readonly BindableProperty GrabTouchAfterLeaveProperty = BindableProperty.Create(nameof(GrabTouchAfterLeave), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
3034 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3035 if (newValue != null)
3037 instance.InternalGrabTouchAfterLeave = (bool)newValue;
3040 defaultValueCreator: (bindable) =>
3042 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3043 return instance.InternalGrabTouchAfterLeave;
3047 /// AllowOnlyOwnTouchProperty
3049 [EditorBrowsable(EditorBrowsableState.Never)]
3050 public static readonly BindableProperty AllowOnlyOwnTouchProperty = BindableProperty.Create(nameof(AllowOnlyOwnTouch), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
3052 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3053 if (newValue != null)
3055 instance.InternalAllowOnlyOwnTouch = (bool)newValue;
3058 defaultValueCreator: (bindable) =>
3060 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3061 return instance.InternalAllowOnlyOwnTouch;
3066 /// BlendEquationProperty
3068 [EditorBrowsable(EditorBrowsableState.Never)]
3069 public static readonly BindableProperty BlendEquationProperty = BindableProperty.Create(nameof(BlendEquation), typeof(BlendEquationType), typeof(View), default(BlendEquationType), propertyChanged: (bindable, oldValue, newValue) =>
3071 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3072 if (newValue != null)
3074 instance.InternalBlendEquation = (Tizen.NUI.BlendEquationType)newValue;
3077 defaultValueCreator: (bindable) =>
3079 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3080 return instance.InternalBlendEquation;
3084 /// TransitionOptionsProperty
3086 [EditorBrowsable(EditorBrowsableState.Never)]
3087 public static readonly BindableProperty TransitionOptionsProperty = BindableProperty.Create(nameof(TransitionOptions), typeof(TransitionOptions), typeof(View), default(TransitionOptions), propertyChanged: (bindable, oldValue, newValue) =>
3089 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3090 if (newValue != null)
3092 instance.InternalTransitionOptions = (Tizen.NUI.TransitionOptions)newValue;
3095 defaultValueCreator: (bindable) =>
3097 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3098 return instance.InternalTransitionOptions;
3102 /// AutomationIdProperty
3104 [EditorBrowsable(EditorBrowsableState.Never)]
3105 public static readonly BindableProperty AutomationIdProperty = BindableProperty.Create(nameof(AutomationId), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
3107 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3108 if (newValue != null)
3110 #if NUI_PROPERTY_CHANGE_1
3111 Interop.Actor.InternalSetPropertyString(instance.SwigCPtr, View.Property.AutomationId, (string)newValue);
3113 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)instance.SwigCPtr, View.Property.AutomationId, new Tizen.NUI.PropertyValue((string)newValue));
3117 defaultValueCreator: (bindable) =>
3119 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3120 #if NUI_PROPERTY_CHANGE_1
3121 return Interop.Actor.InternalGetPropertyString(instance.SwigCPtr, View.Property.AutomationId);
3124 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)instance.SwigCPtr, View.Property.AutomationId).Get(out temp);
3130 /// TouchAreaOffsetProperty
3132 [EditorBrowsable(EditorBrowsableState.Never)]
3133 public static readonly BindableProperty TouchAreaOffsetProperty = BindableProperty.Create(nameof(TouchAreaOffset), typeof(Offset), typeof(View), default(Offset), propertyChanged: (bindable, oldValue, newValue) =>
3135 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3136 if (newValue != null)
3138 instance.InternalTouchAreaOffset = (Tizen.NUI.Offset)newValue;
3141 defaultValueCreator: (bindable) =>
3143 var instance = (Tizen.NUI.BaseComponents.View)bindable;
3144 return instance.InternalTouchAreaOffset;
3148 /// Gets View's Size2D set by user.
3150 internal Size2D GetUserSize2D()
3152 return new Size2D((int)userSizeWidth, (int)userSizeHeight);
3155 private void SetBackgroundImage(string value)
3157 if (string.IsNullOrEmpty(value))
3159 var empty = new PropertyValue();
3161 Object.SetProperty(SwigCPtr, Property.BACKGROUND, empty);
3166 if (value.StartsWith("*Resource*"))
3168 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
3169 value = value.Replace("*Resource*", resource);
3172 if (backgroundExtraData == null)
3174 #if NUI_PROPERTY_CHANGE_1
3175 Interop.Actor.InternalSetPropertyString(SwigCPtr, View.Property.BACKGROUND, value);
3176 BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
3178 var propertyValue = new PropertyValue(value);
3179 Object.SetProperty(SwigCPtr, Property.BACKGROUND, propertyValue);
3180 BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
3181 propertyValue?.Dispose();
3186 var map = new PropertyMap();
3187 var url = new PropertyValue(value);
3188 var cornerRadiusValue = backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius);
3189 var cornerRadius = new PropertyValue(cornerRadiusValue);
3190 var cornerRadiusPolicy = new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy));
3191 var borderlineWidth = new PropertyValue(backgroundExtraData.BorderlineWidth);
3192 var borderlineColorValue = backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor);
3193 var borderlineColor = new PropertyValue(borderlineColorValue);
3194 var borderlineOffset = new PropertyValue(backgroundExtraData.BorderlineOffset);
3195 var synchronousLoading = new PropertyValue(backgroundImageSynchronousLoading);
3196 var npatchType = new PropertyValue((int)Visual.Type.NPatch);
3197 var border = (backgroundExtraData.BackgroundImageBorder != null) ? new PropertyValue(backgroundExtraData.BackgroundImageBorder) : null;
3198 var imageType = new PropertyValue((int)Visual.Type.Image);
3200 map.Add(ImageVisualProperty.URL, url)
3201 .Add(Visual.Property.CornerRadius, cornerRadius)
3202 .Add(Visual.Property.CornerRadiusPolicy, cornerRadiusPolicy)
3203 .Add(Visual.Property.BorderlineWidth, borderlineWidth)
3204 .Add(Visual.Property.BorderlineColor, borderlineColor)
3205 .Add(Visual.Property.BorderlineOffset, borderlineOffset)
3206 .Add(ImageVisualProperty.SynchronousLoading, synchronousLoading);
3208 if (backgroundExtraData.BackgroundImageBorder != null)
3210 map.Add(Visual.Property.Type, npatchType)
3211 .Add(NpatchImageVisualProperty.Border, border);
3215 map.Add(Visual.Property.Type, imageType);
3218 var mapValue = new PropertyValue(map);
3219 Object.SetProperty(SwigCPtr, Property.BACKGROUND, mapValue);
3221 imageType?.Dispose();
3223 npatchType?.Dispose();
3224 synchronousLoading?.Dispose();
3225 borderlineOffset?.Dispose();
3226 borderlineColor?.Dispose();
3227 borderlineColorValue?.Dispose();
3228 borderlineWidth?.Dispose();
3229 cornerRadiusPolicy?.Dispose();
3230 cornerRadius?.Dispose();
3231 cornerRadiusValue?.Dispose();
3234 mapValue?.Dispose();
3237 private void SetBackgroundImageBorder(Rectangle value)
3239 bool isEmptyValue = Rectangle.IsNullOrZero(value);
3241 var backgroundImageBorder = isEmptyValue ? null : value;
3243 (backgroundExtraData ?? (backgroundExtraData = new BackgroundExtraData())).BackgroundImageBorder = backgroundImageBorder;
3250 PropertyMap map = Background;
3257 map[NpatchImageVisualProperty.Border] = new PropertyValue(backgroundImageBorder);
3261 map.Find(Visual.Property.Type)?.Get(out visualType);
3263 if (visualType == (int)Visual.Type.Image)
3265 map[Visual.Property.Type] = new PropertyValue((int)Visual.Type.NPatch);
3268 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
3271 private void SetBorderlineColor(Color value)
3278 (backgroundExtraData ?? (backgroundExtraData = new BackgroundExtraData())).BorderlineColor = value;
3283 private void SetBackgroundColor(Color value)
3290 if (backgroundExtraData == null)
3292 #if NUI_PROPERTY_CHANGE_1
3293 Interop.Actor.InternalSetPropertyVector4(SwigCPtr, View.Property.BACKGROUND, ((Color)value).SwigCPtr);
3295 var background = new PropertyValue(value);
3296 Object.SetProperty(SwigCPtr, Property.BACKGROUND, background);
3297 background?.Dispose();
3302 var map = new PropertyMap();
3303 var colorType = new PropertyValue((int)Visual.Type.Color);
3304 var mixColor = new PropertyValue(value);
3305 var cornerRadiusValue = backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius);
3306 var cornerRadius = new PropertyValue(cornerRadiusValue);
3307 var cornerRadiusPolicy = new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy));
3308 var borderlineWidth = new PropertyValue(backgroundExtraData.BorderlineWidth);
3309 var borderlineColorValue = backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor);
3310 var borderlineColor = new PropertyValue(borderlineColorValue);
3311 var borderlineOffset = new PropertyValue(backgroundExtraData.BorderlineOffset);
3313 map.Add(Visual.Property.Type, colorType)
3314 .Add(ColorVisualProperty.MixColor, mixColor)
3315 .Add(Visual.Property.CornerRadius, cornerRadius)
3316 .Add(Visual.Property.CornerRadiusPolicy, cornerRadiusPolicy)
3317 .Add(Visual.Property.BorderlineWidth, borderlineWidth)
3318 .Add(Visual.Property.BorderlineColor, borderlineColor)
3319 .Add(Visual.Property.BorderlineOffset, borderlineOffset);
3321 var mapValue = new PropertyValue(map);
3322 Object.SetProperty(SwigCPtr, Property.BACKGROUND, mapValue);
3324 borderlineOffset?.Dispose();
3325 borderlineColor?.Dispose();
3326 borderlineColorValue?.Dispose();
3327 borderlineWidth?.Dispose();
3328 cornerRadiusPolicy?.Dispose();
3329 cornerRadius?.Dispose();
3330 cornerRadiusValue?.Dispose();
3331 mixColor?.Dispose();
3332 colorType?.Dispose();
3334 mapValue?.Dispose();
3337 private void SetColor(Color value)
3344 Interop.ActorInternal.SetColor(SwigCPtr, value.SwigCPtr);
3345 if (NDalicPINVOKE.SWIGPendingException.Pending)
3346 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3349 private void SetColorRed(float? value)
3355 #if NUI_PROPERTY_CHANGE_1
3356 Interop.Actor.InternalSetPropertyFloat(SwigCPtr, View.Property.ColorRed, (float)value);
3358 using var propertyValue = new Tizen.NUI.PropertyValue((float)value);
3359 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.ColorRed, propertyValue);
3361 if (NDalicPINVOKE.SWIGPendingException.Pending)
3362 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3365 private void SetColorGreen(float? value)
3371 #if NUI_PROPERTY_CHANGE_1
3372 Interop.Actor.InternalSetPropertyFloat(SwigCPtr, View.Property.ColorGreen, (float)value);
3374 using var propertyValue = new Tizen.NUI.PropertyValue((float)value);
3375 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.ColorGreen, propertyValue);
3377 if (NDalicPINVOKE.SWIGPendingException.Pending)
3378 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3381 private void SetColorBlue(float? value)
3387 #if NUI_PROPERTY_CHANGE_1
3388 Interop.Actor.InternalSetPropertyFloat(SwigCPtr, View.Property.ColorBlue, (float)value);
3390 using var propertyValue = new Tizen.NUI.PropertyValue((float)value);
3391 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.ColorBlue, propertyValue);
3393 if (NDalicPINVOKE.SWIGPendingException.Pending)
3394 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
3397 private void SetOpacity(float? value)
3403 #if NUI_PROPERTY_CHANGE_1
3404 Interop.Actor.InternalSetPropertyFloat(SwigCPtr, View.Property.OPACITY, (float)value);
3406 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)value));
3410 private void SetShadow(ShadowBase value)
3412 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.SHADOW, value == null ? new PropertyValue() : value.ToPropertyValue(this));