2 * Copyright(c) 2019-2021 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
31 /// StyleNameProperty (DALi json)
33 [EditorBrowsable(EditorBrowsableState.Never)]
34 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(View), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
36 var view = (View)bindable;
39 string styleName = (string)newValue;
40 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.StyleName, new Tizen.NUI.PropertyValue(styleName));
42 view.styleName = styleName;
44 if (string.IsNullOrEmpty(styleName)) return;
46 var style = ThemeManager.GetUpdateStyleWithoutClone(styleName);
48 if (style == null) return;
50 view.ApplyStyle(style);
51 view.SetThemeApplied();
54 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
56 var view = (View)bindable;
58 if (!string.IsNullOrEmpty(view.styleName)) return view.styleName;
61 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.StyleName).Get(out temp);
66 /// KeyInputFocusProperty
68 [EditorBrowsable(EditorBrowsableState.Never)]
69 public static readonly BindableProperty KeyInputFocusProperty = BindableProperty.Create(nameof(KeyInputFocus), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
71 var view = (View)bindable;
74 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.KeyInputFocus, new Tizen.NUI.PropertyValue((bool)newValue));
77 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
79 var view = (View)bindable;
81 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.KeyInputFocus).Get(out temp);
86 /// BackgroundColorProperty
88 [EditorBrowsable(EditorBrowsableState.Never)]
89 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(View), null,
90 propertyChanged: (bindable, oldValue, newValue) =>
92 var view = (View)bindable;
94 view.themeData?.selectorData?.ClearBackground(view);
96 if (newValue is Selector<Color> selector)
98 if (selector.HasAll()) view.SetBackgroundColor(selector.All);
99 else view.EnsureSelectorData().BackgroundColor = new TriggerableSelector<Color>(view, selector, view.SetBackgroundColor, true);
103 view.SetBackgroundColor((Color)newValue);
106 defaultValueCreator: (bindable) =>
108 var view = (View)bindable;
110 if (view.internalBackgroundColor == null)
112 view.internalBackgroundColor = new Color(view.OnBackgroundColorChanged, 0, 0, 0, 0);
115 PropertyMap background = view.Background;
117 background.Find(Visual.Property.Type)?.Get(out visualType);
118 if (visualType == (int)Visual.Type.Color)
120 background.Find(ColorVisualProperty.MixColor)?.Get(view.internalBackgroundColor);
123 background?.Dispose();
126 return view.internalBackgroundColor;
133 [EditorBrowsable(EditorBrowsableState.Never)]
134 public static readonly BindableProperty ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(View), null,
135 propertyChanged: (bindable, oldValue, newValue) =>
137 var view = (View)bindable;
139 view.themeData?.selectorData?.Color?.Reset(view);
141 if (newValue is Selector<Color> selector)
143 if (selector.HasAll()) view.SetColor(selector.All);
144 else view.EnsureSelectorData().Color = new TriggerableSelector<Color>(view, selector, view.SetColor, true);
148 view.SetColor((Color)newValue);
151 defaultValueCreator: (bindable) =>
153 var view = (View)bindable;
154 var tmpProperty = view.GetProperty(Interop.ActorProperty.ColorGet());
156 if (view.internalColor == null)
158 view.internalColor = new Color(view.OnColorChanged, 0, 0, 0, 0);
161 tmpProperty?.Get(view.internalColor);
162 tmpProperty?.Dispose();
164 return view.internalColor;
168 /// <summary> BackgroundImageProperty </summary>
169 [EditorBrowsable(EditorBrowsableState.Never)]
170 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create(nameof(BackgroundImage), typeof(string), typeof(View), default(string),
171 propertyChanged: (bindable, oldValue, newValue) =>
173 var view = (View)bindable;
175 if (view.themeData?.selectorData != null)
177 view.themeData.selectorData.BackgroundColor?.Reset(view);
178 view.themeData.selectorData.BackgroundImage?.Reset(view);
181 if (newValue is Selector<string> selector)
183 if (selector.HasAll()) view.SetBackgroundImage(selector.All);
184 else view.EnsureSelectorData().BackgroundImage = new TriggerableSelector<string>(view, selector, view.SetBackgroundImage, true);
188 view.SetBackgroundImage((string)newValue);
191 defaultValueCreator: (bindable) =>
193 var view = (View)bindable;
194 string backgroundImage = "";
196 PropertyMap background = view.Background;
197 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
199 background?.Dispose();
202 return backgroundImage;
207 /// <summary>BackgroundImageBorderProperty</summary>
208 [EditorBrowsable(EditorBrowsableState.Never)]
209 public static readonly BindableProperty BackgroundImageBorderProperty = BindableProperty.Create(nameof(BackgroundImageBorder), typeof(Rectangle), typeof(View), default(Rectangle), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
211 var view = (View)bindable;
213 view.themeData?.selectorData?.BackgroundImageBorder?.Reset(view);
215 if (newValue is Selector<Rectangle> selector)
217 if (selector.HasAll()) view.SetBackgroundImageBorder(selector.All);
218 else view.EnsureSelectorData().BackgroundImageBorder = new TriggerableSelector<Rectangle>(view, selector, view.SetBackgroundImageBorder, true);
222 view.SetBackgroundImageBorder((Rectangle)newValue);
225 defaultValueCreator: (bindable) =>
227 var view = (View)bindable;
229 return view.backgroundExtraData?.BackgroundImageBorder;
233 /// BackgroundProperty
235 [EditorBrowsable(EditorBrowsableState.Never)]
236 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(PropertyMap), typeof(View), null,
237 propertyChanged: (bindable, oldValue, newValue) =>
239 var view = (View)bindable;
240 if (newValue != null)
242 var propertyValue = new PropertyValue((PropertyMap)newValue);
243 Object.SetProperty(view.SwigCPtr, Property.BACKGROUND, propertyValue);
245 view.backgroundExtraData = null;
247 propertyValue.Dispose();
248 propertyValue = null;
251 defaultValueCreator: (bindable) =>
253 var view = (View)bindable;
254 PropertyMap tmp = new PropertyMap();
255 var propertyValue = Object.GetProperty(view.SwigCPtr, Property.BACKGROUND);
256 propertyValue.Get(tmp);
257 propertyValue.Dispose();
258 propertyValue = null;
266 [EditorBrowsable(EditorBrowsableState.Never)]
267 public static readonly BindableProperty StateProperty = BindableProperty.Create(nameof(State), typeof(States), typeof(View), States.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
269 var view = (View)bindable;
270 if (newValue != null)
272 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
275 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
277 var view = (View)bindable;
279 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.STATE).Get(out temp) == false)
281 NUILog.Error("State get error!");
285 case 0: return States.Normal;
286 case 1: return States.Focused;
287 case 2: return States.Disabled;
288 default: return States.Normal;
295 [EditorBrowsable(EditorBrowsableState.Never)]
296 public static readonly BindableProperty SubStateProperty = BindableProperty.Create(nameof(SubState), typeof(States), typeof(View), States.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
298 var view = (View)bindable;
299 string valueToString = "";
300 if (newValue != null)
302 valueToString = ((States)newValue).GetDescription();
303 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SubState, new Tizen.NUI.PropertyValue(valueToString));
306 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
308 var view = (View)bindable;
310 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SubState).Get(out temp) == false)
312 NUILog.Error("subState get error!");
314 return temp.GetValueByDescription<States>();
320 [EditorBrowsable(EditorBrowsableState.Never)]
321 public static readonly BindableProperty TooltipProperty = BindableProperty.Create(nameof(Tooltip), typeof(PropertyMap), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
323 var view = (View)bindable;
324 if (newValue != null)
326 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
329 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
331 var view = (View)bindable;
332 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
333 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.TOOLTIP).Get(temp);
340 [EditorBrowsable(EditorBrowsableState.Never)]
341 public static readonly BindableProperty FlexProperty = BindableProperty.Create(nameof(Flex), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
343 var view = (View)bindable;
344 if (newValue != null)
346 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
349 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
351 var view = (View)bindable;
353 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
358 /// AlignSelfProperty
360 [EditorBrowsable(EditorBrowsableState.Never)]
361 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create(nameof(AlignSelf), typeof(int), typeof(View), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
363 var view = (View)bindable;
364 if (newValue != null)
366 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf, new Tizen.NUI.PropertyValue((int)newValue));
369 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
371 var view = (View)bindable;
373 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf).Get(out temp);
378 /// FlexMarginProperty
380 [EditorBrowsable(EditorBrowsableState.Never)]
381 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create(nameof(FlexMargin), typeof(Vector4), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
383 var view = (View)bindable;
384 if (newValue != null)
386 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin, new Tizen.NUI.PropertyValue((Vector4)newValue));
389 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
391 var view = (View)bindable;
392 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
393 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin).Get(temp);
398 /// CellIndexProperty
400 [EditorBrowsable(EditorBrowsableState.Never)]
401 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(View), null,
402 propertyChanged: (bindable, oldValue, newValue) =>
404 var view = (View)bindable;
405 if (newValue != null)
407 var tmp = new PropertyValue((Vector2)newValue);
408 Object.SetProperty(view.SwigCPtr, TableView.ChildProperty.CellIndex, tmp);
412 defaultValueCreator: (bindable) =>
414 var view = (View)bindable;
415 if (view.internalCellIndex == null)
417 view.internalCellIndex = new Vector2(view.OnCellIndexChanged, 0, 0);
420 var tmp = Object.GetProperty(view.SwigCPtr, TableView.ChildProperty.CellIndex);
421 tmp?.Get(view.internalCellIndex);
424 return view.internalCellIndex;
431 [EditorBrowsable(EditorBrowsableState.Never)]
432 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create(nameof(RowSpan), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
434 var view = (View)bindable;
435 if (newValue != null)
437 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.RowSpan, new Tizen.NUI.PropertyValue((float)newValue));
440 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
442 var view = (View)bindable;
444 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.RowSpan).Get(out temp);
449 /// ColumnSpanProperty
451 [EditorBrowsable(EditorBrowsableState.Never)]
452 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create(nameof(ColumnSpan), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
454 var view = (View)bindable;
455 if (newValue != null)
457 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.ColumnSpan, new Tizen.NUI.PropertyValue((float)newValue));
460 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
462 var view = (View)bindable;
464 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.ColumnSpan).Get(out temp);
469 /// CellHorizontalAlignmentProperty
471 [EditorBrowsable(EditorBrowsableState.Never)]
472 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create(nameof(CellHorizontalAlignment), typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
474 var view = (View)bindable;
475 string valueToString = "";
477 if (newValue != null)
479 valueToString = ((HorizontalAlignmentType)newValue).GetDescription();
480 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment, new Tizen.NUI.PropertyValue(valueToString));
483 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
485 var view = (View)bindable;
487 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment).Get(out temp) == false)
489 NUILog.Error("CellHorizontalAlignment get error!");
492 return temp.GetValueByDescription<HorizontalAlignmentType>();
496 /// CellVerticalAlignmentProperty
498 [EditorBrowsable(EditorBrowsableState.Never)]
499 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create(nameof(CellVerticalAlignment), typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
501 var view = (View)bindable;
502 string valueToString = "";
504 if (newValue != null)
506 valueToString = ((VerticalAlignmentType)newValue).GetDescription();
507 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment, new Tizen.NUI.PropertyValue(valueToString));
510 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
512 var view = (View)bindable;
514 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment).Get(out temp);
516 NUILog.Error("CellVerticalAlignment get error!");
519 return temp.GetValueByDescription<VerticalAlignmentType>();
523 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
524 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly BindableProperty WeightProperty = BindableProperty.Create(nameof(Weight), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
529 var view = (View)bindable;
530 if (newValue != null)
532 view.Weight = (float)newValue;
536 defaultValueCreator: (bindable) =>
538 var view = (View)bindable;
543 /// LeftFocusableViewProperty
545 [EditorBrowsable(EditorBrowsableState.Never)]
546 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
548 var view = (View)bindable;
549 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
550 else { view.LeftFocusableViewId = -1; }
552 defaultValueCreator: (bindable) =>
554 var view = (View)bindable;
555 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
560 /// RightFocusableViewProperty
562 [EditorBrowsable(EditorBrowsableState.Never)]
563 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
565 var view = (View)bindable;
566 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
567 else { view.RightFocusableViewId = -1; }
569 defaultValueCreator: (bindable) =>
571 var view = (View)bindable;
572 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
577 /// UpFocusableViewProperty
579 [EditorBrowsable(EditorBrowsableState.Never)]
580 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
582 var view = (View)bindable;
583 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
584 else { view.UpFocusableViewId = -1; }
586 defaultValueCreator: (bindable) =>
588 var view = (View)bindable;
589 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
594 /// DownFocusableViewProperty
596 [EditorBrowsable(EditorBrowsableState.Never)]
597 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
599 var view = (View)bindable;
600 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
601 else { view.DownFocusableViewId = -1; }
603 defaultValueCreator: (bindable) =>
605 var view = (View)bindable;
606 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
611 /// FocusableProperty
613 [EditorBrowsable(EditorBrowsableState.Never)]
614 public static readonly BindableProperty FocusableProperty = BindableProperty.Create(nameof(Focusable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
616 var view = (View)bindable;
617 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
619 defaultValueCreator: (bindable) =>
621 var view = (View)bindable;
622 return view.IsKeyboardFocusable();
626 /// FocusableChildrenProperty
628 [EditorBrowsable(EditorBrowsableState.Never)]
629 public static readonly BindableProperty FocusableChildrenProperty = BindableProperty.Create(nameof(FocusableChildren), typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
631 var view = (View)bindable;
632 if (newValue != null) { view.SetKeyboardFocusableChildren((bool)newValue); }
634 defaultValueCreator: (bindable) =>
636 var view = (View)bindable;
637 return view.AreChildrenKeyBoardFocusable();
641 /// FocusableInTouchProperty
643 [EditorBrowsable(EditorBrowsableState.Never)]
644 public static readonly BindableProperty FocusableInTouchProperty = BindableProperty.Create(nameof(FocusableInTouch), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
646 var view = (View)bindable;
647 if (newValue != null) { view.SetFocusableInTouch((bool)newValue); }
649 defaultValueCreator: (bindable) =>
651 var view = (View)bindable;
652 return view.IsFocusableInTouch();
658 [EditorBrowsable(EditorBrowsableState.Never)]
659 public static readonly BindableProperty Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(View), null,
660 propertyChanged: (bindable, oldValue, newValue) =>
662 var view = (View)bindable;
663 if (newValue != null)
665 view.SetSize(((Size2D)newValue).Width, ((Size2D)newValue).Height, 0);
667 view.widthPolicy = ((Size2D)newValue).Width;
668 view.heightPolicy = ((Size2D)newValue).Height;
670 view.layout?.RequestLayout();
673 defaultValueCreator: (bindable) =>
675 var view = (View)bindable;
676 var tmp = new Size(0, 0, 0);
677 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.SIZE);
678 tmpProperty?.Get(tmp);
680 if (view.internalSize2D == null)
682 view.internalSize2D = new Size2D(view.OnSize2DChanged, (int)tmp?.Width, (int)tmp?.Height);
686 if (view.internalSize2D.SwigCPtr.Handle != global::System.IntPtr.Zero)
688 Interop.Vector2.WidthSet(view.internalSize2D.SwigCPtr, (float)tmp?.Width);
689 Interop.Vector2.HeightSet(view.internalSize2D.SwigCPtr, (float)tmp?.Height);
693 tmpProperty?.Dispose();
696 return view.internalSize2D;
703 [EditorBrowsable(EditorBrowsableState.Never)]
704 public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
706 var view = (View)bindable;
708 view.themeData?.selectorData?.Opacity?.Reset(view);
710 if (newValue is Selector<float?> selector)
712 if (selector.HasAll()) view.SetOpacity(selector.All);
713 else view.EnsureSelectorData().Opacity = new TriggerableSelector<float?>(view, selector, view.SetOpacity, true);
717 view.SetOpacity((float?)newValue);
720 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
722 var view = (View)bindable;
724 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.OPACITY).Get(out temp);
729 /// Position2DProperty
731 [EditorBrowsable(EditorBrowsableState.Never)]
732 public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(View), null,
733 propertyChanged: (bindable, oldValue, newValue) =>
735 var view = (View)bindable;
736 if (newValue != null)
738 view.SetPosition(((Position2D)newValue).X, ((Position2D)newValue).Y, 0);
741 defaultValueCreator: (bindable) =>
743 var view = (View)bindable;
744 var tmp = new Position(0, 0, 0);
745 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.POSITION);
746 tmpProperty?.Get(tmp);
748 if (view.internalPosition2D == null)
750 view.internalPosition2D = new Position2D(view.OnPosition2DChanged, (int)tmp?.X, (int)tmp?.Y);
754 if (view.internalPosition2D.SwigCPtr.Handle != IntPtr.Zero)
756 Interop.Vector2.XSet(view.internalPosition2D.SwigCPtr, (float)tmp?.X);
757 Interop.Vector2.YSet(view.internalPosition2D.SwigCPtr, (float)tmp?.Y);
761 tmpProperty?.Dispose();
764 return view.internalPosition2D;
769 /// PositionUsesPivotPointProperty
771 [EditorBrowsable(EditorBrowsableState.Never)]
772 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool), typeof(View), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
774 var view = (View)bindable;
775 if (newValue != null)
777 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint, new Tizen.NUI.PropertyValue((bool)newValue));
780 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
782 var view = (View)bindable;
784 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint).Get(out temp);
789 /// SiblingOrderProperty
791 [EditorBrowsable(EditorBrowsableState.Never)]
792 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
794 var view = (View)bindable;
796 if (newValue != null)
798 value = (int)newValue;
801 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
804 var siblings = view.GetParent()?.Children;
805 if (siblings != null)
807 int currentOrder = siblings.IndexOf(view);
808 if (value != currentOrder)
810 if (value == 0) { view.LowerToBottom(); }
811 else if (value < siblings.Count - 1)
813 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
814 else { view.LowerBelow(siblings[value]); }
816 else { view.RaiseToTop(); }
821 defaultValueCreator: (bindable) =>
823 var view = (View)bindable;
824 var parentChildren = view.GetParent()?.Children;
825 int currentOrder = 0;
826 if (parentChildren != null)
828 currentOrder = parentChildren.IndexOf(view);
830 if (currentOrder < 0) { return 0; }
831 else if (currentOrder < parentChildren.Count) { return currentOrder; }
838 /// ParentOriginProperty
840 [EditorBrowsable(EditorBrowsableState.Never)]
841 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
843 var view = (View)bindable;
844 if (newValue != null)
846 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin, new Tizen.NUI.PropertyValue((Position)newValue));
849 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
851 var view = (View)bindable;
852 Position temp = new Position(0.0f, 0.0f, 0.0f);
853 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin).Get(temp);
859 /// PivotPointProperty
861 [EditorBrowsable(EditorBrowsableState.Never)]
862 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(View), null,
863 propertyChanged: (bindable, oldValue, newValue) =>
865 var view = (View)bindable;
866 if (newValue != null)
868 view.SetAnchorPoint((Position)newValue);
871 defaultValueCreator: (bindable) =>
873 var view = (View)bindable;
874 if (view.internalPivotPoint == null)
876 view.internalPivotPoint = new Position(view.OnPivotPointChanged, 0, 0, 0);
878 var tmp = Object.GetProperty(view.SwigCPtr, Property.AnchorPoint);
879 tmp?.Get(view.internalPivotPoint);
882 return view.internalPivotPoint;
887 /// SizeWidthProperty
889 [EditorBrowsable(EditorBrowsableState.Never)]
890 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
892 var view = (View)bindable;
893 if (newValue != null)
895 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, new Tizen.NUI.PropertyValue((float)newValue));
896 view.WidthSpecification = (int)System.Math.Ceiling((float)newValue);
899 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
901 var view = (View)bindable;
903 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth).Get(out temp);
908 /// SizeHeightProperty
910 [EditorBrowsable(EditorBrowsableState.Never)]
911 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
913 var view = (View)bindable;
914 if (newValue != null)
916 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, new Tizen.NUI.PropertyValue((float)newValue));
917 view.HeightSpecification = (int)System.Math.Ceiling((float)newValue);
920 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
922 var view = (View)bindable;
924 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight).Get(out temp);
931 [EditorBrowsable(EditorBrowsableState.Never)]
932 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(View), null,
933 propertyChanged: (bindable, oldValue, newValue) =>
935 var view = (View)bindable;
936 if (newValue != null)
938 view.SetPosition(((Position)newValue).X, ((Position)newValue).Y, ((Position)newValue).Z);
941 defaultValueCreator: (bindable) =>
943 var view = (View)bindable;
944 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.POSITION);
946 if (view.internalPosition == null)
948 view.internalPosition = new Position(view.OnPositionChanged, 0, 0, 0);
950 tmpProperty?.Get(view.internalPosition);
951 tmpProperty?.Dispose();
953 return view.internalPosition;
958 /// PositionXProperty
960 [EditorBrowsable(EditorBrowsableState.Never)]
961 public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
963 var view = (View)bindable;
964 if (newValue != null)
966 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX, new Tizen.NUI.PropertyValue((float)newValue));
969 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
971 var view = (View)bindable;
973 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX).Get(out temp);
978 /// PositionYProperty
980 [EditorBrowsable(EditorBrowsableState.Never)]
981 public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
983 var view = (View)bindable;
984 if (newValue != null)
986 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY, new Tizen.NUI.PropertyValue((float)newValue));
989 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
991 var view = (View)bindable;
993 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY).Get(out temp);
998 /// PositionZProperty
1000 [EditorBrowsable(EditorBrowsableState.Never)]
1001 public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1003 var view = (View)bindable;
1004 if (newValue != null)
1006 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ, new Tizen.NUI.PropertyValue((float)newValue));
1009 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1011 var view = (View)bindable;
1013 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ).Get(out temp);
1018 /// OrientationProperty
1020 [EditorBrowsable(EditorBrowsableState.Never)]
1021 public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1023 var view = (View)bindable;
1024 if (newValue != null)
1026 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
1029 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1031 var view = (View)bindable;
1032 Rotation temp = new Rotation();
1033 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION).Get(temp);
1040 [EditorBrowsable(EditorBrowsableState.Never)]
1041 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(View), null,
1042 propertyChanged: (bindable, oldValue, newValue) =>
1044 var view = (View)bindable;
1045 if (newValue != null)
1047 view.SetScale((Vector3)newValue);
1050 defaultValueCreator: (bindable) =>
1052 var view = (View)bindable;
1053 if (view.internalScale == null)
1055 view.internalScale = new Vector3(view.OnScaleChanged, 0, 0, 0);
1058 var tmpPropery = Object.GetProperty(view.SwigCPtr, Property.SCALE);
1059 tmpPropery?.Get(view.internalScale);
1060 tmpPropery?.Dispose();
1062 return view.internalScale;
1069 [EditorBrowsable(EditorBrowsableState.Never)]
1070 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1072 var view = (View)bindable;
1073 if (newValue != null)
1075 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX, new Tizen.NUI.PropertyValue((float)newValue));
1078 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1080 var view = (View)bindable;
1082 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX).Get(out temp);
1089 [EditorBrowsable(EditorBrowsableState.Never)]
1090 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1092 var view = (View)bindable;
1093 if (newValue != null)
1095 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY, new Tizen.NUI.PropertyValue((float)newValue));
1098 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1100 var view = (View)bindable;
1102 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY).Get(out temp);
1109 [EditorBrowsable(EditorBrowsableState.Never)]
1110 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1112 var view = (View)bindable;
1113 if (newValue != null)
1115 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ, new Tizen.NUI.PropertyValue((float)newValue));
1118 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1120 var view = (View)bindable;
1122 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ).Get(out temp);
1129 [EditorBrowsable(EditorBrowsableState.Never)]
1130 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(View), string.Empty,
1131 propertyChanged: (bindable, oldValue, newValue) =>
1133 var view = (View)bindable;
1134 if (newValue != null)
1136 view.SetName((string)newValue);
1139 defaultValueCreator: (bindable) =>
1141 var view = (View)bindable;
1143 temp = view.GetName();
1149 /// SensitiveProperty
1151 [EditorBrowsable(EditorBrowsableState.Never)]
1152 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1154 var view = (View)bindable;
1155 if (newValue != null)
1157 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
1160 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1162 var view = (View)bindable;
1164 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE).Get(out temp);
1169 /// DispatchKeyEventsProperty
1171 [EditorBrowsable(EditorBrowsableState.Never)]
1172 public static readonly BindableProperty DispatchKeyEventsProperty = BindableProperty.Create(nameof(DispatchKeyEvents), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1174 var view = (View)bindable;
1175 if (newValue != null)
1177 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents, new Tizen.NUI.PropertyValue((bool)newValue));
1180 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1182 var view = (View)bindable;
1184 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents).Get(out temp);
1189 /// LeaveRequiredProperty
1191 [EditorBrowsable(EditorBrowsableState.Never)]
1192 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1194 var view = (View)bindable;
1195 if (newValue != null)
1197 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired, new Tizen.NUI.PropertyValue((bool)newValue));
1200 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1202 var view = (View)bindable;
1204 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired).Get(out temp);
1209 /// InheritOrientationProperty
1211 [EditorBrowsable(EditorBrowsableState.Never)]
1212 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1214 var view = (View)bindable;
1215 if (newValue != null)
1217 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation, new Tizen.NUI.PropertyValue((bool)newValue));
1220 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1222 var view = (View)bindable;
1224 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation).Get(out temp);
1229 /// InheritScaleProperty
1231 [EditorBrowsable(EditorBrowsableState.Never)]
1232 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1234 var view = (View)bindable;
1235 if (newValue != null)
1237 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale, new Tizen.NUI.PropertyValue((bool)newValue));
1240 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1242 var view = (View)bindable;
1244 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale).Get(out temp);
1249 /// DrawModeProperty
1251 [EditorBrowsable(EditorBrowsableState.Never)]
1252 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1254 var view = (View)bindable;
1255 if (newValue != null)
1257 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode, new Tizen.NUI.PropertyValue((int)newValue));
1260 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1262 var view = (View)bindable;
1264 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode).Get(out temp) == false)
1266 NUILog.Error("DrawMode get error!");
1268 return (DrawModeType)temp;
1272 /// SizeModeFactorProperty
1274 [EditorBrowsable(EditorBrowsableState.Never)]
1275 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(View), null,
1276 propertyChanged: (bindable, oldValue, newValue) =>
1278 var view = (View)bindable;
1279 if (newValue != null)
1281 var tmp = new PropertyValue((Vector3)newValue);
1282 Object.SetProperty(view.SwigCPtr, Property.SizeModeFactor, tmp);
1286 defaultValueCreator: (bindable) =>
1288 var view = (View)bindable;
1289 if (view.internalSizeModeFactor == null)
1291 view.internalSizeModeFactor = new Vector3(view.OnSizeModeFactorChanged, 0, 0, 0);
1293 var tmp = Object.GetProperty(view.SwigCPtr, Property.SizeModeFactor);
1294 tmp?.Get(view.internalSizeModeFactor);
1297 return view.internalSizeModeFactor;
1302 /// WidthResizePolicyProperty
1304 [EditorBrowsable(EditorBrowsableState.Never)]
1305 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1307 var view = (View)bindable;
1308 if (newValue != null)
1310 if ((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1312 if (view.widthConstraint == null)
1314 view.widthConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, View.Property.SizeWidth);
1315 view.widthConstraint.Apply();
1317 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1321 view.widthConstraint?.Remove();
1322 view.widthConstraint?.Dispose();
1323 view.widthConstraint = null;
1324 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1326 // Match ResizePolicy to new Layouting.
1327 // Parent relative policies can not be mapped at this point as parent size unknown.
1328 switch ((ResizePolicyType)newValue)
1330 case ResizePolicyType.UseNaturalSize:
1332 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1335 case ResizePolicyType.FillToParent:
1337 view.WidthSpecification = LayoutParamPolicies.MatchParent;
1340 case ResizePolicyType.FitToChildren:
1342 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1350 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1352 var view = (View)bindable;
1354 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy).Get(out temp) == false)
1356 NUILog.Error("WidthResizePolicy get error!");
1358 return temp.GetValueByDescription<ResizePolicyType>();
1362 /// HeightResizePolicyProperty
1364 [EditorBrowsable(EditorBrowsableState.Never)]
1365 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1367 var view = (View)bindable;
1368 if (newValue != null)
1370 if ((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1372 if (view.heightConstraint == null)
1374 view.heightConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, View.Property.SizeHeight);
1375 view.heightConstraint.Apply();
1377 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1381 view.heightConstraint?.Remove();
1382 view.heightConstraint?.Dispose();
1383 view.heightConstraint = null;
1384 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1386 // Match ResizePolicy to new Layouting.
1387 // Parent relative policies can not be mapped at this point as parent size unknown.
1388 switch ((ResizePolicyType)newValue)
1390 case ResizePolicyType.UseNaturalSize:
1392 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1395 case ResizePolicyType.FillToParent:
1397 view.HeightSpecification = LayoutParamPolicies.MatchParent;
1400 case ResizePolicyType.FitToChildren:
1402 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1410 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1412 var view = (View)bindable;
1414 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy).Get(out temp) == false)
1416 NUILog.Error("HeightResizePolicy get error!");
1418 return temp.GetValueByDescription<ResizePolicyType>();
1422 /// SizeScalePolicyProperty
1424 [EditorBrowsable(EditorBrowsableState.Never)]
1425 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1427 var view = (View)bindable;
1428 string valueToString = "";
1429 if (newValue != null)
1431 valueToString = ((SizeScalePolicyType)newValue).GetDescription();
1432 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy, new Tizen.NUI.PropertyValue(valueToString));
1435 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1437 var view = (View)bindable;
1439 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy).Get(out temp) == false)
1441 NUILog.Error("SizeScalePolicy get error!");
1443 return (SizeScalePolicyType)temp;
1447 /// WidthForHeightProperty
1449 [EditorBrowsable(EditorBrowsableState.Never)]
1450 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1452 var view = (View)bindable;
1453 if (newValue != null)
1455 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight, new Tizen.NUI.PropertyValue((bool)newValue));
1458 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1460 var view = (View)bindable;
1462 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight).Get(out temp);
1467 /// HeightForWidthProperty
1469 [EditorBrowsable(EditorBrowsableState.Never)]
1470 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1472 var view = (View)bindable;
1473 if (newValue != null)
1475 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth, new Tizen.NUI.PropertyValue((bool)newValue));
1478 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1480 var view = (View)bindable;
1482 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth).Get(out temp);
1489 [EditorBrowsable(EditorBrowsableState.Never)]
1490 public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(View), null,
1491 propertyChanged: (bindable, oldValue, newValue) =>
1493 var view = (View)bindable;
1494 if (newValue != null)
1496 var tmp = new PropertyValue((Extents)newValue);
1497 Object.SetProperty(view.SwigCPtr, View.Property.PADDING, tmp);
1501 defaultValueCreator: (bindable) =>
1503 var view = (View)bindable;
1504 if (view.internalPadding == null)
1506 view.internalPadding = new Extents(view.OnPaddingChanged, 0, 0, 0, 0);
1509 var tmp = Object.GetProperty(view.SwigCPtr, Property.PADDING);
1510 tmp?.Get(view.internalPadding);
1513 return view.internalPadding;
1520 [EditorBrowsable(EditorBrowsableState.Never)]
1521 public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(View), null,
1522 propertyChanged: (bindable, oldValue, newValue) =>
1524 var view = (View)bindable;
1525 if (newValue != null)
1527 // Set Specification so when layouts measure this View it matches the value set here.
1528 // All Views are currently Layouts.
1529 view.WidthSpecification = (int)System.Math.Ceiling(((Size)newValue).Width);
1530 view.HeightSpecification = (int)System.Math.Ceiling(((Size)newValue).Height);
1532 view.SetSize(((Size)newValue).Width, ((Size)newValue).Height, ((Size)newValue).Depth);
1535 defaultValueCreator: (bindable) =>
1537 var view = (View)bindable;
1539 var tmpProperty = Object.GetProperty(view.SwigCPtr, Property.SIZE);
1540 if (view.internalSize == null)
1542 view.internalSize = new Size(view.OnSizeChanged, 0, 0, 0);
1544 tmpProperty?.Get(view.internalSize);
1545 tmpProperty?.Dispose();
1547 return view.internalSize;
1552 /// MinimumSizeProperty
1554 [EditorBrowsable(EditorBrowsableState.Never)]
1555 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(View), null,
1556 propertyChanged: (bindable, oldValue, newValue) =>
1558 var view = (View)bindable;
1559 if (newValue != null)
1561 view.SetMinimumSize((Size2D)newValue);
1564 defaultValueCreator: (bindable) =>
1566 var view = (View)bindable;
1567 if (view.internalMinimumSize == null)
1569 view.internalMinimumSize = new Size2D(view.OnMinimumSizeChanged, 0, 0);
1571 var tmp = Object.GetProperty(view.SwigCPtr, Property.MinimumSize);
1572 tmp?.Get(view.internalMinimumSize);
1575 return view.internalMinimumSize;
1580 /// MaximumSizeProperty
1582 [EditorBrowsable(EditorBrowsableState.Never)]
1583 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(View), null,
1584 propertyChanged: (bindable, oldValue, newValue) =>
1586 var view = (View)bindable;
1587 if (newValue != null)
1589 view.SetMaximumSize((Size2D)newValue);
1592 defaultValueCreator: (bindable) =>
1594 var view = (View)bindable;
1595 if (view.internalMaximumSize == null)
1597 view.internalMaximumSize = new Size2D(view.OnMaximumSizeChanged, 0, 0);
1599 var tmp = Object.GetProperty(view.SwigCPtr, Property.MaximumSize);
1600 tmp?.Get(view.internalMaximumSize);
1603 return view.internalMaximumSize;
1608 /// InheritPositionProperty
1610 [EditorBrowsable(EditorBrowsableState.Never)]
1611 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1613 var view = (View)bindable;
1614 if (newValue != null)
1616 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition, new Tizen.NUI.PropertyValue((bool)newValue));
1619 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1621 var view = (View)bindable;
1623 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition).Get(out temp);
1628 /// ClippingModeProperty
1630 [EditorBrowsable(EditorBrowsableState.Never)]
1631 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1633 var view = (View)bindable;
1634 if (newValue != null)
1636 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode, new Tizen.NUI.PropertyValue((int)newValue));
1639 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1641 var view = (View)bindable;
1643 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode).Get(out temp) == false)
1645 NUILog.Error("ClippingMode get error!");
1647 return (ClippingModeType)temp;
1651 /// InheritLayoutDirectionProperty
1653 [EditorBrowsable(EditorBrowsableState.Never)]
1654 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1656 var view = (View)bindable;
1657 if (newValue != null)
1659 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection, new Tizen.NUI.PropertyValue((bool)newValue));
1662 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1664 var view = (View)bindable;
1666 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection).Get(out temp);
1671 /// LayoutDirectionProperty
1673 [EditorBrowsable(EditorBrowsableState.Never)]
1674 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1676 var view = (View)bindable;
1677 if (newValue != null)
1679 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection, new Tizen.NUI.PropertyValue((int)newValue));
1682 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1684 var view = (View)bindable;
1686 if (false == Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection).Get(out temp))
1688 NUILog.Error("LAYOUT_DIRECTION get error!");
1690 return (ViewLayoutDirectionType)temp;
1696 [EditorBrowsable(EditorBrowsableState.Never)]
1697 public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(View), null,
1698 propertyChanged: (bindable, oldValue, newValue) =>
1700 var view = (View)bindable;
1701 if (newValue != null)
1703 var tmp = new PropertyValue((Extents)newValue);
1704 Object.SetProperty(view.SwigCPtr, Property.MARGIN, tmp);
1708 defaultValueCreator: (bindable) =>
1710 var view = (View)bindable;
1711 if (view.internalMargin == null)
1713 view.internalMargin = new Extents(view.OnMarginChanged, 0, 0, 0, 0);
1715 var tmp = Object.GetProperty(view.SwigCPtr, Property.MARGIN);
1716 tmp?.Get(view.internalMargin);
1719 return view.internalMargin;
1724 /// UpdateSizeHintProperty
1726 [EditorBrowsable(EditorBrowsableState.Never)]
1727 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create(nameof(UpdateSizeHint), typeof(Vector2), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1729 var view = (View)bindable;
1730 if (newValue != null)
1732 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ViewProperty.UpdateSizeHintGet(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1735 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1737 var view = (View)bindable;
1739 Vector2 temp = new Vector2(0.0f, 0.0f);
1740 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ViewProperty.UpdateSizeHintGet()).Get(temp);
1745 /// ImageShadow Property
1747 [EditorBrowsable(EditorBrowsableState.Never)]
1748 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(ImageShadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1750 var view = (View)bindable;
1752 view.themeData?.selectorData?.ClearShadow(view);
1754 if (newValue is Selector<ImageShadow> selector)
1756 if (selector.HasAll()) view.SetShadow(selector.All);
1757 else view.EnsureSelectorData().ImageShadow = new TriggerableSelector<ImageShadow>(view, selector, view.SetShadow, true);
1761 view.SetShadow((ImageShadow)newValue);
1764 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1766 var view = (View)bindable;
1768 PropertyMap map = new PropertyMap();
1769 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
1771 var shadow = new ImageShadow(map);
1772 return shadow.IsEmpty() ? null : shadow;
1778 [EditorBrowsable(EditorBrowsableState.Never)]
1779 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Shadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1781 var view = (View)bindable;
1783 view.themeData?.selectorData?.ClearShadow(view);
1785 if (newValue is Selector<Shadow> selector)
1787 if (selector.HasAll()) view.SetShadow(selector.All);
1788 else view.EnsureSelectorData().BoxShadow = new TriggerableSelector<Shadow>(view, selector, view.SetShadow, true);
1792 view.SetShadow((Shadow)newValue);
1795 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1797 var view = (View)bindable;
1799 PropertyMap map = new PropertyMap();
1800 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
1802 var shadow = new Shadow(map);
1803 return shadow.IsEmpty() ? null : shadow;
1807 /// CornerRadius Property
1809 [EditorBrowsable(EditorBrowsableState.Never)]
1810 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1812 var view = (View)bindable;
1813 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadius = (Vector4)newValue;
1814 view.ApplyCornerRadius();
1816 defaultValueCreator: (bindable) =>
1818 var view = (View)bindable;
1819 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.CornerRadius;
1823 /// CornerRadiusPolicy Property
1825 [EditorBrowsable(EditorBrowsableState.Never)]
1826 public static readonly BindableProperty CornerRadiusPolicyProperty = BindableProperty.Create(nameof(CornerRadiusPolicy), typeof(VisualTransformPolicyType), typeof(View), VisualTransformPolicyType.Absolute, propertyChanged: (bindable, oldValue, newValue) =>
1828 var view = (View)bindable;
1829 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadiusPolicy = (VisualTransformPolicyType)newValue;
1831 if (view.backgroundExtraData.CornerRadius != null)
1833 view.ApplyCornerRadius();
1836 defaultValueCreator: (bindable) =>
1838 var view = (View)bindable;
1839 return view.backgroundExtraData == null ? VisualTransformPolicyType.Absolute : view.backgroundExtraData.CornerRadiusPolicy;
1843 /// BorderlineWidth Property
1845 [EditorBrowsable(EditorBrowsableState.Never)]
1846 public static readonly BindableProperty BorderlineWidthProperty = BindableProperty.Create(nameof(BorderlineWidth), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1848 var view = (View)bindable;
1849 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineWidth = (float)newValue;
1850 view.ApplyBorderline();
1852 defaultValueCreator: (bindable) =>
1854 var view = (View)bindable;
1855 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineWidth;
1859 /// BorderlineColor Property
1861 [EditorBrowsable(EditorBrowsableState.Never)]
1862 public static readonly BindableProperty BorderlineColorProperty = BindableProperty.Create(nameof(BorderlineColor), typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1864 var view = (View)bindable;
1865 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineColor = (Color)newValue;
1866 view.ApplyBorderline();
1868 defaultValueCreator: (bindable) =>
1870 var view = (View)bindable;
1871 return view.backgroundExtraData == null ? Color.Black : view.backgroundExtraData.BorderlineColor;
1875 /// BorderlineOffset Property
1877 [EditorBrowsable(EditorBrowsableState.Never)]
1878 public static readonly BindableProperty BorderlineOffsetProperty = BindableProperty.Create(nameof(BorderlineOffset), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1880 var view = (View)bindable;
1881 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineOffset = (float)newValue;
1882 view.ApplyBorderline();
1884 defaultValueCreator: (bindable) =>
1886 var view = (View)bindable;
1887 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineOffset;
1891 /// XamlStyleProperty
1893 [EditorBrowsable(EditorBrowsableState.Never)]
1894 public static readonly BindableProperty XamlStyleProperty = BindableProperty.Create(nameof(XamlStyle), typeof(XamlStyle), typeof(View), default(XamlStyle), propertyChanged: (bindable, oldvalue, newvalue) => ((View)bindable).MergedStyle.Style = (XamlStyle)newvalue);
1897 /// EnableControlState property
1899 [EditorBrowsable(EditorBrowsableState.Never)]
1900 public static readonly BindableProperty EnableControlStateProperty = BindableProperty.Create(nameof(EnableControlState), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1902 var view = (View)bindable;
1903 bool prev = view.enableControlState;
1904 view.enableControlState = (bool)newValue;
1906 if (prev != view.enableControlState)
1910 view.TouchEvent -= view.EmptyOnTouch;
1914 view.TouchEvent += view.EmptyOnTouch;
1918 defaultValueCreator: (bindable) =>
1920 return ((View)bindable).enableControlState;
1924 /// ThemeChangeSensitive property
1926 [EditorBrowsable(EditorBrowsableState.Never)]
1927 public static readonly BindableProperty ThemeChangeSensitiveProperty = BindableProperty.Create(nameof(ThemeChangeSensitive), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1929 var view = (View)bindable;
1931 if (view.ThemeChangeSensitive == (bool)newValue) return;
1933 if (view.themeData == null) view.themeData = new ThemeData();
1935 view.themeData.ThemeChangeSensitive = (bool)newValue;
1937 if (!view.themeData.ThemeApplied) return;
1939 if (view.themeData.ThemeChangeSensitive && !view.themeData.ListeningThemeChangeEvent)
1941 view.themeData.ListeningThemeChangeEvent = true;
1942 ThemeManager.ThemeChangedInternal.Add(view.OnThemeChanged);
1944 else if (!view.themeData.ThemeChangeSensitive && view.themeData.ListeningThemeChangeEvent)
1946 view.themeData.ListeningThemeChangeEvent = false;
1947 ThemeManager.ThemeChangedInternal.Remove(view.OnThemeChanged);
1950 defaultValueCreator: (bindable) =>
1952 return ((View)bindable).themeData?.ThemeChangeSensitive ?? ThemeManager.ApplicationThemeChangeSensitive;
1956 /// AccessibilityNameProperty
1958 [EditorBrowsable(EditorBrowsableState.Never)]
1959 public static readonly BindableProperty AccessibilityNameProperty = BindableProperty.Create(nameof(AccessibilityName), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1961 var view = (View)bindable;
1962 if (newValue != null)
1964 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName, new Tizen.NUI.PropertyValue((string)newValue));
1967 defaultValueCreator: (bindable) =>
1969 var view = (View)bindable;
1972 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName).Get(out temp);
1977 /// AccessibilityDescriptionProperty
1979 [EditorBrowsable(EditorBrowsableState.Never)]
1980 public static readonly BindableProperty AccessibilityDescriptionProperty = BindableProperty.Create(nameof(AccessibilityDescription), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1982 var view = (View)bindable;
1983 if (newValue != null)
1985 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription, new Tizen.NUI.PropertyValue((string)newValue));
1988 defaultValueCreator: (bindable) =>
1990 var view = (View)bindable;
1993 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription).Get(out temp);
1998 /// AccessibilityTranslationDomainProperty
2000 [EditorBrowsable(EditorBrowsableState.Never)]
2001 public static readonly BindableProperty AccessibilityTranslationDomainProperty = BindableProperty.Create(nameof(AccessibilityTranslationDomain), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2003 var view = (View)bindable;
2004 if (newValue != null)
2006 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain, new Tizen.NUI.PropertyValue((string)newValue));
2009 defaultValueCreator: (bindable) =>
2011 var view = (View)bindable;
2014 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain).Get(out temp);
2019 /// AccessibilityRoleProperty
2021 [EditorBrowsable(EditorBrowsableState.Never)]
2022 public static readonly BindableProperty AccessibilityRoleProperty = BindableProperty.Create(nameof(AccessibilityRole), typeof(Role), typeof(View), default(Role), propertyChanged: (bindable, oldValue, newValue) =>
2024 var view = (View)bindable;
2025 if (newValue != null)
2027 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole, new Tizen.NUI.PropertyValue((int)newValue));
2030 defaultValueCreator: (bindable) =>
2032 var view = (View)bindable;
2035 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole).Get(out temp);
2040 /// AccessibilityHighlightableProperty
2042 [EditorBrowsable(EditorBrowsableState.Never)]
2043 public static readonly BindableProperty AccessibilityHighlightableProperty = BindableProperty.Create(nameof(AccessibilityHighlightable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2045 var view = (View)bindable;
2046 if (newValue != null)
2048 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable, new Tizen.NUI.PropertyValue((bool)newValue));
2051 defaultValueCreator: (bindable) =>
2053 var view = (View)bindable;
2055 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable).Get(out temp);
2060 /// ExcludeLayoutingProperty
2062 [EditorBrowsable(EditorBrowsableState.Never)]
2063 public static readonly BindableProperty ExcludeLayoutingProperty = BindableProperty.Create(nameof(ExcludeLayouting), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2065 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2066 if (newValue != null)
2068 instance.InternalExcludeLayouting = (bool)newValue;
2071 defaultValueCreator: (bindable) =>
2073 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2074 return instance.InternalExcludeLayouting;
2078 /// TooltipTextProperty
2080 [EditorBrowsable(EditorBrowsableState.Never)]
2081 public static readonly BindableProperty TooltipTextProperty = BindableProperty.Create(nameof(TooltipText), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2083 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2084 if (newValue != null)
2086 instance.InternalTooltipText = (string)newValue;
2089 defaultValueCreator: (bindable) =>
2091 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2092 return instance.InternalTooltipText;
2096 /// PositionUsesAnchorPointProperty
2098 [EditorBrowsable(EditorBrowsableState.Never)]
2099 public static readonly BindableProperty PositionUsesAnchorPointProperty = BindableProperty.Create(nameof(PositionUsesAnchorPoint), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2101 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2102 if (newValue != null)
2104 instance.InternalPositionUsesAnchorPoint = (bool)newValue;
2107 defaultValueCreator: (bindable) =>
2109 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2110 return instance.InternalPositionUsesAnchorPoint;
2114 /// AnchorPointProperty
2116 [EditorBrowsable(EditorBrowsableState.Never)]
2117 public static readonly BindableProperty AnchorPointProperty = BindableProperty.Create(nameof(AnchorPoint), typeof(Tizen.NUI.Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2119 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2120 if (newValue != null)
2122 instance.InternalAnchorPoint = (Tizen.NUI.Position)newValue;
2125 defaultValueCreator: (bindable) =>
2127 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2128 return instance.InternalAnchorPoint;
2132 /// WidthSpecificationProperty
2134 [EditorBrowsable(EditorBrowsableState.Never)]
2135 public static readonly BindableProperty WidthSpecificationProperty = BindableProperty.Create(nameof(WidthSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
2137 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2138 if (newValue != null)
2140 instance.InternalWidthSpecification = (int)newValue;
2143 defaultValueCreator: (bindable) =>
2145 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2146 return instance.InternalWidthSpecification;
2150 /// HeightSpecificationProperty
2152 [EditorBrowsable(EditorBrowsableState.Never)]
2153 public static readonly BindableProperty HeightSpecificationProperty = BindableProperty.Create(nameof(HeightSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
2155 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2156 if (newValue != null)
2158 instance.InternalHeightSpecification = (int)newValue;
2161 defaultValueCreator: (bindable) =>
2163 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2164 return instance.InternalHeightSpecification;
2168 /// LayoutTransitionProperty
2170 [EditorBrowsable(EditorBrowsableState.Never)]
2171 public static readonly BindableProperty LayoutTransitionProperty = BindableProperty.Create(nameof(LayoutTransition), typeof(Tizen.NUI.LayoutTransition), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2173 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2174 if (newValue != null)
2176 instance.InternalLayoutTransition = (Tizen.NUI.LayoutTransition)newValue;
2179 defaultValueCreator: (bindable) =>
2181 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2182 return instance.InternalLayoutTransition;
2186 /// PaddingEXProperty
2188 [EditorBrowsable(EditorBrowsableState.Never)]
2189 public static readonly BindableProperty PaddingEXProperty = BindableProperty.Create(nameof(PaddingEX), typeof(Tizen.NUI.Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2191 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2192 if (newValue != null)
2194 instance.InternalPaddingEX = (Tizen.NUI.Extents)newValue;
2197 defaultValueCreator: (bindable) =>
2199 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2200 return instance.InternalPaddingEX;
2206 [EditorBrowsable(EditorBrowsableState.Never)]
2207 public static readonly BindableProperty LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.LayoutItem), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2209 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2210 if (newValue != null)
2212 instance.InternalLayout = (Tizen.NUI.LayoutItem)newValue;
2215 defaultValueCreator: (bindable) =>
2217 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2218 return instance.InternalLayout;
2222 /// BackgroundImageSynchronosLoadingProperty
2224 [EditorBrowsable(EditorBrowsableState.Never)]
2225 public static readonly BindableProperty BackgroundImageSynchronosLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronosLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2227 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2228 if (newValue != null)
2230 instance.InternalBackgroundImageSynchronosLoading = (bool)newValue;
2233 defaultValueCreator: (bindable) =>
2235 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2236 return instance.InternalBackgroundImageSynchronosLoading;
2240 /// BackgroundImageSynchronousLoadingProperty
2242 [EditorBrowsable(EditorBrowsableState.Never)]
2243 public static readonly BindableProperty BackgroundImageSynchronousLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronousLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2245 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2246 if (newValue != null)
2248 instance.InternalBackgroundImageSynchronousLoading = (bool)newValue;
2251 defaultValueCreator: (bindable) =>
2253 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2254 return instance.InternalBackgroundImageSynchronousLoading;
2258 /// EnableControlStatePropagationProperty
2260 [EditorBrowsable(EditorBrowsableState.Never)]
2261 public static readonly BindableProperty EnableControlStatePropagationProperty = BindableProperty.Create(nameof(EnableControlStatePropagation), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2263 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2264 if (newValue != null)
2266 instance.InternalEnableControlStatePropagation = (bool)newValue;
2269 defaultValueCreator: (bindable) =>
2271 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2272 return instance.InternalEnableControlStatePropagation;
2276 /// GrabTouchAfterLeaveProperty
2278 [EditorBrowsable(EditorBrowsableState.Never)]
2279 public static readonly BindableProperty GrabTouchAfterLeaveProperty = BindableProperty.Create(nameof(GrabTouchAfterLeave), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2281 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2282 if (newValue != null)
2284 instance.InternalGrabTouchAfterLeave = (bool)newValue;
2287 defaultValueCreator: (bindable) =>
2289 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2290 return instance.InternalGrabTouchAfterLeave;
2294 /// BlendEquationProperty
2296 [EditorBrowsable(EditorBrowsableState.Never)]
2297 public static readonly BindableProperty BlendEquationProperty = BindableProperty.Create(nameof(BlendEquation), typeof(BlendEquationType), typeof(View), default(BlendEquationType), propertyChanged: (bindable, oldValue, newValue) =>
2299 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2300 if (newValue != null)
2302 instance.InternalBlendEquation = (Tizen.NUI.BlendEquationType)newValue;
2305 defaultValueCreator: (bindable) =>
2307 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2308 return instance.InternalBlendEquation;
2312 /// TransitionOptionsProperty
2314 [EditorBrowsable(EditorBrowsableState.Never)]
2315 public static readonly BindableProperty TransitionOptionsProperty = BindableProperty.Create(nameof(TransitionOptions), typeof(TransitionOptions), typeof(View), default(TransitionOptions), propertyChanged: (bindable, oldValue, newValue) =>
2317 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2318 if (newValue != null)
2320 instance.InternalTransitionOptions = (Tizen.NUI.TransitionOptions)newValue;
2323 defaultValueCreator: (bindable) =>
2325 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2326 return instance.InternalTransitionOptions;
2330 /// AutomationIdProperty
2332 [EditorBrowsable(EditorBrowsableState.Never)]
2333 public static readonly BindableProperty AutomationIdProperty = BindableProperty.Create(nameof(AutomationId), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2335 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2336 if (newValue != null)
2338 instance.InternalAutomationId = (string)newValue;
2341 defaultValueCreator: (bindable) =>
2343 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2344 return instance.InternalAutomationId;
2348 /// TouchAreaOffsetProperty
2350 [EditorBrowsable(EditorBrowsableState.Never)]
2351 public static readonly BindableProperty TouchAreaOffsetProperty = BindableProperty.Create(nameof(TouchAreaOffset), typeof(Offset), typeof(View), default(Offset), propertyChanged: (bindable, oldValue, newValue) =>
2353 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2354 if (newValue != null)
2356 instance.InternalTouchAreaOffset = (Tizen.NUI.Offset)newValue;
2359 defaultValueCreator: (bindable) =>
2361 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2362 return instance.InternalTouchAreaOffset;
2365 private void SetBackgroundImage(string value)
2367 if (string.IsNullOrEmpty(value))
2369 var empty = new PropertyValue();
2371 Object.SetProperty(SwigCPtr, Property.BACKGROUND, empty);
2376 if (value.StartsWith("*Resource*"))
2378 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
2379 value = value.Replace("*Resource*", resource);
2382 if (backgroundExtraData == null)
2384 var propertyValue = new PropertyValue(value);
2385 Object.SetProperty(SwigCPtr, Property.BACKGROUND, propertyValue);
2386 BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
2387 propertyValue?.Dispose();
2391 var map = new PropertyMap();
2392 var url = new PropertyValue(value);
2393 var cornerRadiusValue = backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius);
2394 var cornerRadius = new PropertyValue(cornerRadiusValue);
2395 var cornerRadiusPolicy = new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy));
2396 var borderlineWidth = new PropertyValue(backgroundExtraData.BorderlineWidth);
2397 var borderlineColorValue = backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor);
2398 var borderlineColor = new PropertyValue(borderlineColorValue);
2399 var borderlineOffset = new PropertyValue(backgroundExtraData.BorderlineOffset);
2400 var synchronousLoading = new PropertyValue(backgroundImageSynchronousLoading);
2401 var npatchType = new PropertyValue((int)Visual.Type.NPatch);
2402 var border = new PropertyValue(backgroundExtraData.BackgroundImageBorder);
2403 var imageType = new PropertyValue((int)Visual.Type.Image);
2405 map.Add(ImageVisualProperty.URL, url)
2406 .Add(Visual.Property.CornerRadius, cornerRadius)
2407 .Add(Visual.Property.CornerRadiusPolicy, cornerRadiusPolicy)
2408 .Add(Visual.Property.BorderlineWidth, borderlineWidth)
2409 .Add(Visual.Property.BorderlineColor, borderlineColor)
2410 .Add(Visual.Property.BorderlineOffset, borderlineOffset)
2411 .Add(ImageVisualProperty.SynchronousLoading, synchronousLoading);
2413 if (backgroundExtraData.BackgroundImageBorder != null)
2415 map.Add(Visual.Property.Type, npatchType)
2416 .Add(NpatchImageVisualProperty.Border, border);
2420 map.Add(Visual.Property.Type, imageType);
2423 var mapValue = new PropertyValue(map);
2424 Object.SetProperty(SwigCPtr, Property.BACKGROUND, mapValue);
2426 imageType?.Dispose();
2428 npatchType?.Dispose();
2429 synchronousLoading?.Dispose();
2430 borderlineOffset?.Dispose();
2431 borderlineColor?.Dispose();
2432 borderlineColorValue?.Dispose();
2433 borderlineWidth?.Dispose();
2434 cornerRadiusPolicy?.Dispose();
2435 cornerRadius?.Dispose();
2436 cornerRadiusValue?.Dispose();
2439 mapValue?.Dispose();
2442 private void SetBackgroundImageBorder(Rectangle value)
2444 bool isEmptyValue = Rectangle.IsNullOrZero(value);
2446 var backgroundImageBorder = isEmptyValue ? null : value;
2448 (backgroundExtraData ?? (backgroundExtraData = new BackgroundExtraData())).BackgroundImageBorder = backgroundImageBorder;
2455 PropertyMap map = Background;
2462 map[NpatchImageVisualProperty.Border] = new PropertyValue(backgroundImageBorder);
2466 map.Find(Visual.Property.Type)?.Get(out visualType);
2468 if (visualType == (int)Visual.Type.Image)
2470 map[Visual.Property.Type] = new PropertyValue((int)Visual.Type.NPatch);
2473 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2476 private void SetBackgroundColor(Color value)
2483 if (backgroundExtraData == null)
2485 var background = new PropertyValue(value);
2486 Object.SetProperty(SwigCPtr, Property.BACKGROUND, background);
2487 background?.Dispose();
2491 var map = new PropertyMap();
2492 var colorType = new PropertyValue((int)Visual.Type.Color);
2493 var mixColor = new PropertyValue(value);
2494 var cornerRadiusValue = backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius);
2495 var cornerRadius = new PropertyValue(cornerRadiusValue);
2496 var cornerRadiusPolicy = new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy));
2497 var borderlineWidth = new PropertyValue(backgroundExtraData.BorderlineWidth);
2498 var borderlineColorValue = backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor);
2499 var borderlineColor = new PropertyValue(borderlineColorValue);
2500 var borderlineOffset = new PropertyValue(backgroundExtraData.BorderlineOffset);
2502 map.Add(Visual.Property.Type, colorType)
2503 .Add(ColorVisualProperty.MixColor, mixColor)
2504 .Add(Visual.Property.CornerRadius, cornerRadius)
2505 .Add(Visual.Property.CornerRadiusPolicy, cornerRadiusPolicy)
2506 .Add(Visual.Property.BorderlineWidth, borderlineWidth)
2507 .Add(Visual.Property.BorderlineColor, borderlineColor)
2508 .Add(Visual.Property.BorderlineOffset, borderlineOffset);
2510 var mapValue = new PropertyValue(map);
2511 Object.SetProperty(SwigCPtr, Property.BACKGROUND, mapValue);
2513 borderlineOffset?.Dispose();
2514 borderlineColor?.Dispose();
2515 borderlineColorValue?.Dispose();
2516 borderlineWidth?.Dispose();
2517 cornerRadiusPolicy?.Dispose();
2518 cornerRadius?.Dispose();
2519 cornerRadiusValue?.Dispose();
2520 mixColor?.Dispose();
2521 colorType?.Dispose();
2523 mapValue?.Dispose();
2526 private void SetColor(Color value)
2533 Interop.ActorInternal.SetColor(SwigCPtr, value.SwigCPtr);
2534 if (NDalicPINVOKE.SWIGPendingException.Pending)
2535 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2538 private void SetOpacity(float? value)
2545 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)value));
2548 private void SetShadow(ShadowBase value)
2550 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.SHADOW, value == null ? new PropertyValue() : value.ToPropertyValue(this));