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.
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.BaseComponents
24 /// View is the base class for all views.
26 /// <since_tizen> 3 </since_tizen>
27 public partial class View
30 /// StyleNameProperty (DALi json)
32 [EditorBrowsable(EditorBrowsableState.Never)]
33 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(View), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
35 var view = (View)bindable;
38 string styleName = (string)newValue;
39 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.StyleName, new Tizen.NUI.PropertyValue(styleName));
41 view.styleName = styleName;
43 if (string.IsNullOrEmpty(styleName)) return;
45 var style = ThemeManager.GetUpdateStyleWithoutClone(styleName);
47 if (style == null) return;
49 view.ApplyStyle(style);
50 view.SetThemeApplied();
53 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
55 var view = (View)bindable;
57 if (!string.IsNullOrEmpty(view.styleName)) return view.styleName;
60 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.StyleName).Get(out temp);
65 /// KeyInputFocusProperty
67 [EditorBrowsable(EditorBrowsableState.Never)]
68 public static readonly BindableProperty KeyInputFocusProperty = BindableProperty.Create(nameof(KeyInputFocus), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
70 var view = (View)bindable;
73 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.KeyInputFocus, new Tizen.NUI.PropertyValue((bool)newValue));
76 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
78 var view = (View)bindable;
80 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.KeyInputFocus).Get(out temp);
85 /// BackgroundColorProperty
87 [EditorBrowsable(EditorBrowsableState.Never)]
88 public static readonly BindableProperty BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
90 var view = (View)bindable;
92 view.themeData?.selectorData?.ClearBackground(view);
94 if (newValue is Selector<Color> selector)
96 if (selector.HasAll()) view.SetBackgroundColor(selector.All);
97 else view.EnsureSelectorData().BackgroundColor = new TriggerableSelector<Color>(view, selector, view.SetBackgroundColor, true);
101 view.SetBackgroundColor((Color)newValue);
104 defaultValueCreator: (bindable) =>
106 var view = (View)bindable;
107 Color backgroundColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
109 Tizen.NUI.PropertyMap background = view.Background;
111 background.Find(Visual.Property.Type)?.Get(out visualType);
112 if (visualType == (int)Visual.Type.Color)
114 background.Find(ColorVisualProperty.MixColor)?.Get(backgroundColor);
117 return backgroundColor;
123 [EditorBrowsable(EditorBrowsableState.Never)]
124 public static readonly BindableProperty ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
126 var view = (View)bindable;
128 view.themeData?.selectorData?.Color?.Reset(view);
130 if (newValue is Selector<Color> selector)
132 if (selector.HasAll()) view.SetColor(selector.All);
133 else view.EnsureSelectorData().Color = new TriggerableSelector<Color>(view, selector, view.SetColor, true);
137 view.SetColor((Color)newValue);
140 defaultValueCreator: (bindable) =>
142 var view = (View)bindable;
143 Color color = new Color(0.0f, 0.0f, 0.0f, 0.0f);
144 view.GetProperty(Interop.ActorProperty.ColorGet()).Get(color);
147 /// <summary> BackgroundImageProperty </summary>
148 [EditorBrowsable(EditorBrowsableState.Never)]
149 public static readonly BindableProperty BackgroundImageProperty = BindableProperty.Create(nameof(BackgroundImage), typeof(string), typeof(View), default(string), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
151 var view = (View)bindable;
153 if (view.themeData?.selectorData != null)
155 view.themeData.selectorData.BackgroundColor?.Reset(view);
156 view.themeData.selectorData.BackgroundImage?.Reset(view);
159 if (newValue is Selector<string> selector)
161 if (selector.HasAll()) view.SetBackgroundImage(selector.All);
162 else view.EnsureSelectorData().BackgroundImage = new TriggerableSelector<string>(view, selector, view.SetBackgroundImage, true);
166 view.SetBackgroundImage((string)newValue);
169 defaultValueCreator: (bindable) =>
171 var view = (View)bindable;
172 string backgroundImage = "";
174 Tizen.NUI.PropertyMap background = view.Background;
175 background.Find(ImageVisualProperty.URL)?.Get(out backgroundImage);
177 return backgroundImage;
179 /// <summary>BackgroundImageBorderProperty</summary>
180 [EditorBrowsable(EditorBrowsableState.Never)]
181 public static readonly BindableProperty BackgroundImageBorderProperty = BindableProperty.Create(nameof(BackgroundImageBorder), typeof(Rectangle), typeof(View), default(Rectangle), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
183 var view = (View)bindable;
185 view.themeData?.selectorData?.BackgroundImageBorder?.Reset(view);
187 if (newValue is Selector<Rectangle> selector)
189 if (selector.HasAll()) view.SetBackgroundImageBorder(selector.All);
190 else view.EnsureSelectorData().BackgroundImageBorder = new TriggerableSelector<Rectangle>(view, selector, view.SetBackgroundImageBorder, true);
194 view.SetBackgroundImageBorder((Rectangle)newValue);
197 defaultValueCreator: (bindable) =>
199 var view = (View)bindable;
201 return view.backgroundExtraData?.BackgroundImageBorder;
204 /// BackgroundProperty
206 [EditorBrowsable(EditorBrowsableState.Never)]
207 public static readonly BindableProperty BackgroundProperty = BindableProperty.Create(nameof(Background), typeof(PropertyMap), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
209 var view = (View)bindable;
210 if (newValue != null)
212 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
214 view.backgroundExtraData = null;
217 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
219 var view = (View)bindable;
220 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
221 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.BACKGROUND).Get(temp);
228 [EditorBrowsable(EditorBrowsableState.Never)]
229 public static readonly BindableProperty StateProperty = BindableProperty.Create(nameof(State), typeof(States), typeof(View), States.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
231 var view = (View)bindable;
232 if (newValue != null)
234 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.STATE, new Tizen.NUI.PropertyValue((int)newValue));
237 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
239 var view = (View)bindable;
241 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.STATE).Get(out temp) == false)
243 NUILog.Error("State get error!");
247 case 0: return States.Normal;
248 case 1: return States.Focused;
249 case 2: return States.Disabled;
250 default: return States.Normal;
257 [EditorBrowsable(EditorBrowsableState.Never)]
258 public static readonly BindableProperty SubStateProperty = BindableProperty.Create(nameof(SubState), typeof(States), typeof(View), States.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
260 var view = (View)bindable;
261 string valueToString = "";
262 if (newValue != null)
264 valueToString = ((States)newValue).GetDescription();
265 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SubState, new Tizen.NUI.PropertyValue(valueToString));
268 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
270 var view = (View)bindable;
272 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SubState).Get(out temp) == false)
274 NUILog.Error("subState get error!");
276 return temp.GetValueByDescription<States>();
282 [EditorBrowsable(EditorBrowsableState.Never)]
283 public static readonly BindableProperty TooltipProperty = BindableProperty.Create(nameof(Tooltip), typeof(PropertyMap), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
285 var view = (View)bindable;
286 if (newValue != null)
288 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.TOOLTIP, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
291 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
293 var view = (View)bindable;
294 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
295 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.TOOLTIP).Get(temp);
302 [EditorBrowsable(EditorBrowsableState.Never)]
303 public static readonly BindableProperty FlexProperty = BindableProperty.Create(nameof(Flex), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
305 var view = (View)bindable;
306 if (newValue != null)
308 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FLEX, new Tizen.NUI.PropertyValue((float)newValue));
311 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
313 var view = (View)bindable;
315 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FLEX).Get(out temp);
320 /// AlignSelfProperty
322 [EditorBrowsable(EditorBrowsableState.Never)]
323 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create(nameof(AlignSelf), typeof(int), typeof(View), default(int), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
325 var view = (View)bindable;
326 if (newValue != null)
328 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf, new Tizen.NUI.PropertyValue((int)newValue));
331 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
333 var view = (View)bindable;
335 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.AlignSelf).Get(out temp);
340 /// FlexMarginProperty
342 [EditorBrowsable(EditorBrowsableState.Never)]
343 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create(nameof(FlexMargin), typeof(Vector4), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
345 var view = (View)bindable;
346 if (newValue != null)
348 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin, new Tizen.NUI.PropertyValue((Vector4)newValue));
351 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
353 var view = (View)bindable;
354 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
355 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, FlexContainer.ChildProperty.FlexMargin).Get(temp);
360 /// CellIndexProperty
362 [EditorBrowsable(EditorBrowsableState.Never)]
363 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
365 var view = (View)bindable;
366 if (newValue != null)
368 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellIndex, new Tizen.NUI.PropertyValue((Vector2)newValue));
371 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
373 var view = (View)bindable;
374 Vector2 temp = new Vector2(0.0f, 0.0f);
375 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellIndex).Get(temp);
382 [EditorBrowsable(EditorBrowsableState.Never)]
383 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create(nameof(RowSpan), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
385 var view = (View)bindable;
386 if (newValue != null)
388 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.RowSpan, new Tizen.NUI.PropertyValue((float)newValue));
391 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
393 var view = (View)bindable;
395 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.RowSpan).Get(out temp);
400 /// ColumnSpanProperty
402 [EditorBrowsable(EditorBrowsableState.Never)]
403 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create(nameof(ColumnSpan), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
405 var view = (View)bindable;
406 if (newValue != null)
408 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.ColumnSpan, new Tizen.NUI.PropertyValue((float)newValue));
411 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
413 var view = (View)bindable;
415 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.ColumnSpan).Get(out temp);
420 /// CellHorizontalAlignmentProperty
422 [EditorBrowsable(EditorBrowsableState.Never)]
423 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create(nameof(CellHorizontalAlignment), typeof(HorizontalAlignmentType), typeof(View), HorizontalAlignmentType.Left, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
425 var view = (View)bindable;
426 string valueToString = "";
428 if (newValue != null)
430 valueToString = ((HorizontalAlignmentType)newValue).GetDescription();
431 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment, new Tizen.NUI.PropertyValue(valueToString));
434 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
436 var view = (View)bindable;
438 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellHorizontalAlignment).Get(out temp) == false)
440 NUILog.Error("CellHorizontalAlignment get error!");
443 return temp.GetValueByDescription<HorizontalAlignmentType>();
447 /// CellVerticalAlignmentProperty
449 [EditorBrowsable(EditorBrowsableState.Never)]
450 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create(nameof(CellVerticalAlignment), typeof(VerticalAlignmentType), typeof(View), VerticalAlignmentType.Top, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
452 var view = (View)bindable;
453 string valueToString = "";
455 if (newValue != null)
457 valueToString = ((VerticalAlignmentType)newValue).GetDescription();
458 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment, new Tizen.NUI.PropertyValue(valueToString));
461 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
463 var view = (View)bindable;
465 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, TableView.ChildProperty.CellVerticalAlignment).Get(out temp);
467 NUILog.Error("CellVerticalAlignment get error!");
470 return temp.GetValueByDescription<VerticalAlignmentType>();
474 /// "Please DO NOT use! This will be deprecated! Please use 'View Weight' instead of BindableProperty"
475 /// This needs to be hidden as inhouse API until all applications using it have been updated. Do not make public.
477 [EditorBrowsable(EditorBrowsableState.Never)]
478 public static readonly BindableProperty WeightProperty = BindableProperty.Create(nameof(Weight), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
480 var view = (View)bindable;
481 if (newValue != null)
483 view.Weight = (float)newValue;
487 defaultValueCreator: (bindable) =>
489 var view = (View)bindable;
494 /// LeftFocusableViewProperty
496 [EditorBrowsable(EditorBrowsableState.Never)]
497 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(View.LeftFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
499 var view = (View)bindable;
500 if (newValue != null) { view.LeftFocusableViewId = (int)(newValue as View)?.GetId(); }
501 else { view.LeftFocusableViewId = -1; }
503 defaultValueCreator: (bindable) =>
505 var view = (View)bindable;
506 if (view.LeftFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.LeftFocusableViewId); }
511 /// RightFocusableViewProperty
513 [EditorBrowsable(EditorBrowsableState.Never)]
514 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(View.RightFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
516 var view = (View)bindable;
517 if (newValue != null) { view.RightFocusableViewId = (int)(newValue as View)?.GetId(); }
518 else { view.RightFocusableViewId = -1; }
520 defaultValueCreator: (bindable) =>
522 var view = (View)bindable;
523 if (view.RightFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.RightFocusableViewId); }
528 /// UpFocusableViewProperty
530 [EditorBrowsable(EditorBrowsableState.Never)]
531 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(View.UpFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
533 var view = (View)bindable;
534 if (newValue != null) { view.UpFocusableViewId = (int)(newValue as View)?.GetId(); }
535 else { view.UpFocusableViewId = -1; }
537 defaultValueCreator: (bindable) =>
539 var view = (View)bindable;
540 if (view.UpFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.UpFocusableViewId); }
545 /// DownFocusableViewProperty
547 [EditorBrowsable(EditorBrowsableState.Never)]
548 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(View.DownFocusableView), typeof(View), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
550 var view = (View)bindable;
551 if (newValue != null) { view.DownFocusableViewId = (int)(newValue as View)?.GetId(); }
552 else { view.DownFocusableViewId = -1; }
554 defaultValueCreator: (bindable) =>
556 var view = (View)bindable;
557 if (view.DownFocusableViewId >= 0) { return view.ConvertIdToView((uint)view.DownFocusableViewId); }
562 /// FocusableProperty
564 [EditorBrowsable(EditorBrowsableState.Never)]
565 public static readonly BindableProperty FocusableProperty = BindableProperty.Create(nameof(Focusable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
567 var view = (View)bindable;
568 if (newValue != null) { view.SetKeyboardFocusable((bool)newValue); }
570 defaultValueCreator: (bindable) =>
572 var view = (View)bindable;
573 return view.IsKeyboardFocusable();
577 /// FocusableChildrenProperty
579 [EditorBrowsable(EditorBrowsableState.Never)]
580 public static readonly BindableProperty FocusableChildrenProperty = BindableProperty.Create(nameof(FocusableChildren), typeof(bool), typeof(View), true, propertyChanged: (bindable, oldValue, newValue) =>
582 var view = (View)bindable;
583 if (newValue != null) { view.SetKeyboardFocusableChildren((bool)newValue); }
585 defaultValueCreator: (bindable) =>
587 var view = (View)bindable;
588 return view.AreChildrenKeyBoardFocusable();
592 /// FocusableInTouchProperty
594 [EditorBrowsable(EditorBrowsableState.Never)]
595 public static readonly BindableProperty FocusableInTouchProperty = BindableProperty.Create(nameof(FocusableInTouch), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
597 var view = (View)bindable;
598 if (newValue != null) { view.SetFocusableInTouch((bool)newValue); }
600 defaultValueCreator: (bindable) =>
602 var view = (View)bindable;
603 return view.IsFocusableInTouch();
609 [EditorBrowsable(EditorBrowsableState.Never)]
610 public static readonly BindableProperty Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(View), null,
611 propertyChanged: ((bindable, oldValue, newValue) =>
613 View view = (View)bindable;
614 if (newValue != null)
616 view.SetSize(((Size2D)newValue).Width, ((Size2D)newValue).Height, 0);
618 view.widthPolicy = ((Size2D)newValue).Width;
619 view.heightPolicy = ((Size2D)newValue).Height;
621 view.layout?.RequestLayout();
624 defaultValueCreator: ((bindable) =>
626 View view = (View)bindable;
627 var tmp = new Size(0, 0, 0);
628 Object.GetProperty(view.SwigCPtr, Property.SIZE).Get(tmp);
630 int tmpWidth = (int)tmp?.Width;
631 int tmpHeight = (int)tmp?.Height;
635 if (view.internalSize2D == null)
637 view.internalSize2D = new Size2D(view.OnSize2DChanged, tmpWidth, tmpHeight);
641 if (view.internalSize2D.Width != tmpWidth) { view.internalSize2D.Width = tmpWidth; }
642 if (view.internalSize2D.Height != tmpHeight) { view.internalSize2D.Height = tmpHeight; }
644 return view.internalSize2D;
651 [EditorBrowsable(EditorBrowsableState.Never)]
652 public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
654 var view = (View)bindable;
656 view.themeData?.selectorData?.Opacity?.Reset(view);
658 if (newValue is Selector<float?> selector)
660 if (selector.HasAll()) view.SetOpacity(selector.All);
661 else view.EnsureSelectorData().Opacity = new TriggerableSelector<float?>(view, selector, view.SetOpacity, true);
665 view.SetOpacity((float?)newValue);
668 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
670 var view = (View)bindable;
672 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.OPACITY).Get(out temp);
677 /// Position2DProperty
679 [EditorBrowsable(EditorBrowsableState.Never)]
680 public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
682 var view = (View)bindable;
683 if (newValue != null)
685 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
688 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
690 var view = (View)bindable;
691 Position temp = new Position(0.0f, 0.0f, 0.0f);
692 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION).Get(temp);
693 return new Position2D(temp);
697 /// PositionUsesPivotPointProperty
699 [EditorBrowsable(EditorBrowsableState.Never)]
700 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool), typeof(View), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
702 var view = (View)bindable;
703 if (newValue != null)
705 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint, new Tizen.NUI.PropertyValue((bool)newValue));
708 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
710 var view = (View)bindable;
712 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint).Get(out temp);
717 /// SiblingOrderProperty
719 [EditorBrowsable(EditorBrowsableState.Never)]
720 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
722 var view = (View)bindable;
724 if (newValue != null)
726 value = (int)newValue;
729 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
732 var siblings = view.GetParent()?.Children;
733 if (siblings != null)
735 int currentOrder = siblings.IndexOf(view);
736 if (value != currentOrder)
738 if (value == 0) { view.LowerToBottom(); }
739 else if (value < siblings.Count - 1)
741 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
742 else { view.LowerBelow(siblings[value]); }
744 else { view.RaiseToTop(); }
749 defaultValueCreator: (bindable) =>
751 var view = (View)bindable;
752 var parentChildren = view.GetParent()?.Children;
753 int currentOrder = 0;
754 if (parentChildren != null)
756 currentOrder = parentChildren.IndexOf(view);
758 if (currentOrder < 0) { return 0; }
759 else if (currentOrder < parentChildren.Count) { return currentOrder; }
766 /// ParentOriginProperty
768 [EditorBrowsable(EditorBrowsableState.Never)]
769 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
771 var view = (View)bindable;
772 if (newValue != null)
774 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin, new Tizen.NUI.PropertyValue((Position)newValue));
777 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
779 var view = (View)bindable;
780 Position temp = new Position(0.0f, 0.0f, 0.0f);
781 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin).Get(temp);
787 /// PivotPointProperty
789 [EditorBrowsable(EditorBrowsableState.Never)]
790 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
792 var view = (View)bindable;
793 if (newValue != null)
795 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AnchorPoint, new Tizen.NUI.PropertyValue((Position)newValue));
798 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
800 var view = (View)bindable;
801 Position temp = new Position(0.0f, 0.0f, 0.0f);
802 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AnchorPoint).Get(temp);
807 /// SizeWidthProperty
809 [EditorBrowsable(EditorBrowsableState.Never)]
810 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
812 var view = (View)bindable;
813 if (newValue != null)
815 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, new Tizen.NUI.PropertyValue((float)newValue));
816 view.WidthSpecification = (int)System.Math.Ceiling((float)newValue);
819 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
821 var view = (View)bindable;
823 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth).Get(out temp);
828 /// SizeHeightProperty
830 [EditorBrowsable(EditorBrowsableState.Never)]
831 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
833 var view = (View)bindable;
834 if (newValue != null)
836 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, new Tizen.NUI.PropertyValue((float)newValue));
837 view.HeightSpecification = (int)System.Math.Ceiling((float)newValue);
840 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
842 var view = (View)bindable;
844 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight).Get(out temp);
851 [EditorBrowsable(EditorBrowsableState.Never)]
852 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
854 var view = (View)bindable;
855 if (newValue != null)
857 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
860 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
862 var view = (View)bindable;
863 Position temp = new Position(0.0f, 0.0f, 0.0f);
864 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION).Get(temp);
869 /// PositionXProperty
871 [EditorBrowsable(EditorBrowsableState.Never)]
872 public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
874 var view = (View)bindable;
875 if (newValue != null)
877 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX, new Tizen.NUI.PropertyValue((float)newValue));
880 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
882 var view = (View)bindable;
884 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX).Get(out temp);
889 /// PositionYProperty
891 [EditorBrowsable(EditorBrowsableState.Never)]
892 public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
894 var view = (View)bindable;
895 if (newValue != null)
897 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY, new Tizen.NUI.PropertyValue((float)newValue));
900 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
902 var view = (View)bindable;
904 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY).Get(out temp);
909 /// PositionZProperty
911 [EditorBrowsable(EditorBrowsableState.Never)]
912 public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
914 var view = (View)bindable;
915 if (newValue != null)
917 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ, new Tizen.NUI.PropertyValue((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.PositionZ).Get(out temp);
929 /// OrientationProperty
931 [EditorBrowsable(EditorBrowsableState.Never)]
932 public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
934 var view = (View)bindable;
935 if (newValue != null)
937 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
940 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
942 var view = (View)bindable;
943 Rotation temp = new Rotation();
944 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION).Get(temp);
951 [EditorBrowsable(EditorBrowsableState.Never)]
952 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
954 var view = (View)bindable;
955 if (newValue != null)
957 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
960 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
962 var view = (View)bindable;
963 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
964 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SCALE).Get(temp);
971 [EditorBrowsable(EditorBrowsableState.Never)]
972 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
974 var view = (View)bindable;
975 if (newValue != null)
977 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX, new Tizen.NUI.PropertyValue((float)newValue));
980 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
982 var view = (View)bindable;
984 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX).Get(out temp);
991 [EditorBrowsable(EditorBrowsableState.Never)]
992 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
994 var view = (View)bindable;
995 if (newValue != null)
997 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY, new Tizen.NUI.PropertyValue((float)newValue));
1000 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1002 var view = (View)bindable;
1004 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY).Get(out temp);
1011 [EditorBrowsable(EditorBrowsableState.Never)]
1012 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1014 var view = (View)bindable;
1015 if (newValue != null)
1017 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ, new Tizen.NUI.PropertyValue((float)newValue));
1020 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1022 var view = (View)bindable;
1024 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ).Get(out temp);
1031 [EditorBrowsable(EditorBrowsableState.Never)]
1032 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(View), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1034 var view = (View)bindable;
1035 if (newValue != null)
1037 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
1040 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1042 var view = (View)bindable;
1044 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.NAME).Get(out temp);
1049 /// SensitiveProperty
1051 [EditorBrowsable(EditorBrowsableState.Never)]
1052 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1054 var view = (View)bindable;
1055 if (newValue != null)
1057 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
1060 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1062 var view = (View)bindable;
1064 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE).Get(out temp);
1069 /// DispatchKeyEventsProperty
1071 [EditorBrowsable(EditorBrowsableState.Never)]
1072 public static readonly BindableProperty DispatchKeyEventsProperty = BindableProperty.Create(nameof(DispatchKeyEvents), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1074 var view = (View)bindable;
1075 if (newValue != null)
1077 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents, new Tizen.NUI.PropertyValue((bool)newValue));
1080 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1082 var view = (View)bindable;
1084 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents).Get(out temp);
1089 /// LeaveRequiredProperty
1091 [EditorBrowsable(EditorBrowsableState.Never)]
1092 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1094 var view = (View)bindable;
1095 if (newValue != null)
1097 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired, new Tizen.NUI.PropertyValue((bool)newValue));
1100 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1102 var view = (View)bindable;
1104 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired).Get(out temp);
1109 /// InheritOrientationProperty
1111 [EditorBrowsable(EditorBrowsableState.Never)]
1112 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1114 var view = (View)bindable;
1115 if (newValue != null)
1117 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation, new Tizen.NUI.PropertyValue((bool)newValue));
1120 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1122 var view = (View)bindable;
1124 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation).Get(out temp);
1129 /// InheritScaleProperty
1131 [EditorBrowsable(EditorBrowsableState.Never)]
1132 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1134 var view = (View)bindable;
1135 if (newValue != null)
1137 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale, new Tizen.NUI.PropertyValue((bool)newValue));
1140 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1142 var view = (View)bindable;
1144 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale).Get(out temp);
1149 /// DrawModeProperty
1151 [EditorBrowsable(EditorBrowsableState.Never)]
1152 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType), typeof(View), DrawModeType.Normal, 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.DrawMode, new Tizen.NUI.PropertyValue((int)newValue));
1160 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1162 var view = (View)bindable;
1164 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode).Get(out temp) == false)
1166 NUILog.Error("DrawMode get error!");
1168 return (DrawModeType)temp;
1172 /// SizeModeFactorProperty
1174 [EditorBrowsable(EditorBrowsableState.Never)]
1175 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1177 var view = (View)bindable;
1178 if (newValue != null)
1180 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeModeFactor, new Tizen.NUI.PropertyValue((Vector3)newValue));
1183 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1185 var view = (View)bindable;
1186 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1187 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeModeFactor).Get(temp);
1192 /// WidthResizePolicyProperty
1194 [EditorBrowsable(EditorBrowsableState.Never)]
1195 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1197 var view = (View)bindable;
1198 if (newValue != null)
1200 if ((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1202 if (view.widthConstraint == null)
1204 view.widthConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, View.Property.SizeWidth);
1205 view.widthConstraint.Apply();
1207 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1211 view.widthConstraint?.Remove();
1212 view.widthConstraint?.Dispose();
1213 view.widthConstraint = null;
1214 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1216 // Match ResizePolicy to new Layouting.
1217 // Parent relative policies can not be mapped at this point as parent size unknown.
1218 switch ((ResizePolicyType)newValue)
1220 case ResizePolicyType.UseNaturalSize:
1222 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1225 case ResizePolicyType.FillToParent:
1227 view.WidthSpecification = LayoutParamPolicies.MatchParent;
1230 case ResizePolicyType.FitToChildren:
1232 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1240 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1242 var view = (View)bindable;
1244 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy).Get(out temp) == false)
1246 NUILog.Error("WidthResizePolicy get error!");
1248 return temp.GetValueByDescription<ResizePolicyType>();
1252 /// HeightResizePolicyProperty
1254 [EditorBrowsable(EditorBrowsableState.Never)]
1255 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1257 var view = (View)bindable;
1258 if (newValue != null)
1260 if ((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1262 if (view.heightConstraint == null)
1264 view.heightConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, View.Property.SizeHeight);
1265 view.heightConstraint.Apply();
1267 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1271 view.heightConstraint?.Remove();
1272 view.heightConstraint?.Dispose();
1273 view.heightConstraint = null;
1274 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1276 // Match ResizePolicy to new Layouting.
1277 // Parent relative policies can not be mapped at this point as parent size unknown.
1278 switch ((ResizePolicyType)newValue)
1280 case ResizePolicyType.UseNaturalSize:
1282 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1285 case ResizePolicyType.FillToParent:
1287 view.HeightSpecification = LayoutParamPolicies.MatchParent;
1290 case ResizePolicyType.FitToChildren:
1292 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1300 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1302 var view = (View)bindable;
1304 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy).Get(out temp) == false)
1306 NUILog.Error("HeightResizePolicy get error!");
1308 return temp.GetValueByDescription<ResizePolicyType>();
1312 /// SizeScalePolicyProperty
1314 [EditorBrowsable(EditorBrowsableState.Never)]
1315 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1317 var view = (View)bindable;
1318 string valueToString = "";
1319 if (newValue != null)
1321 valueToString = ((SizeScalePolicyType)newValue).GetDescription();
1322 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy, new Tizen.NUI.PropertyValue(valueToString));
1325 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1327 var view = (View)bindable;
1329 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy).Get(out temp) == false)
1331 NUILog.Error("SizeScalePolicy get error!");
1333 return (SizeScalePolicyType)temp;
1337 /// WidthForHeightProperty
1339 [EditorBrowsable(EditorBrowsableState.Never)]
1340 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1342 var view = (View)bindable;
1343 if (newValue != null)
1345 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight, new Tizen.NUI.PropertyValue((bool)newValue));
1348 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1350 var view = (View)bindable;
1352 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight).Get(out temp);
1357 /// HeightForWidthProperty
1359 [EditorBrowsable(EditorBrowsableState.Never)]
1360 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1362 var view = (View)bindable;
1363 if (newValue != null)
1365 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth, new Tizen.NUI.PropertyValue((bool)newValue));
1368 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1370 var view = (View)bindable;
1372 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth).Get(out temp);
1379 [EditorBrowsable(EditorBrowsableState.Never)]
1380 public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1382 var view = (View)bindable;
1383 if (newValue != null)
1385 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1388 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1390 var view = (View)bindable;
1391 Extents temp = new Extents(0, 0, 0, 0);
1392 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PADDING).Get(temp);
1399 [EditorBrowsable(EditorBrowsableState.Never)]
1400 public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1402 var view = (View)bindable;
1403 if (newValue != null)
1405 Size size = (Size)newValue;
1406 // Set Specification so when layouts measure this View it matches the value set here.
1407 // All Views are currently Layouts.
1408 view.WidthSpecification = (int)System.Math.Ceiling(size.Width);
1409 view.HeightSpecification = (int)System.Math.Ceiling(size.Height);
1410 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(size));
1413 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1415 var view = (View)bindable;
1416 Size temp = new Size(0, 0, 0);
1417 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SIZE).Get(temp);
1422 /// MinimumSizeProperty
1424 [EditorBrowsable(EditorBrowsableState.Never)]
1425 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1427 var view = (View)bindable;
1428 Size2D temp = newValue as Size2D;
1431 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MinimumSize, new Tizen.NUI.PropertyValue(temp));
1435 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MinimumSizeProperty!");
1438 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1440 var view = (View)bindable;
1441 Size2D temp = new Size2D(0, 0);
1442 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MinimumSize).Get(temp);
1447 /// MaximumSizeProperty
1449 [EditorBrowsable(EditorBrowsableState.Never)]
1450 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1452 var view = (View)bindable;
1453 Size2D temp = newValue as Size2D;
1456 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MaximumSize, new Tizen.NUI.PropertyValue(temp));
1460 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MaximumSizeProperty!");
1463 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1465 var view = (View)bindable;
1466 Size2D temp = new Size2D(0, 0);
1467 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MaximumSize).Get(temp);
1472 /// InheritPositionProperty
1474 [EditorBrowsable(EditorBrowsableState.Never)]
1475 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1477 var view = (View)bindable;
1478 if (newValue != null)
1480 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition, new Tizen.NUI.PropertyValue((bool)newValue));
1483 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1485 var view = (View)bindable;
1487 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition).Get(out temp);
1492 /// ClippingModeProperty
1494 [EditorBrowsable(EditorBrowsableState.Never)]
1495 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1497 var view = (View)bindable;
1498 if (newValue != null)
1500 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode, new Tizen.NUI.PropertyValue((int)newValue));
1503 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1505 var view = (View)bindable;
1507 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode).Get(out temp) == false)
1509 NUILog.Error("ClippingMode get error!");
1511 return (ClippingModeType)temp;
1515 /// InheritLayoutDirectionProperty
1517 [EditorBrowsable(EditorBrowsableState.Never)]
1518 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1520 var view = (View)bindable;
1521 if (newValue != null)
1523 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection, new Tizen.NUI.PropertyValue((bool)newValue));
1526 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1528 var view = (View)bindable;
1530 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection).Get(out temp);
1535 /// LayoutDirectionProperty
1537 [EditorBrowsable(EditorBrowsableState.Never)]
1538 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1540 var view = (View)bindable;
1541 if (newValue != null)
1543 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection, new Tizen.NUI.PropertyValue((int)newValue));
1546 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1548 var view = (View)bindable;
1550 if (false == Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection).Get(out temp))
1552 NUILog.Error("LAYOUT_DIRECTION get error!");
1554 return (ViewLayoutDirectionType)temp;
1560 [EditorBrowsable(EditorBrowsableState.Never)]
1561 public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1563 var view = (View)bindable;
1564 if (newValue != null)
1566 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1569 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1571 var view = (View)bindable;
1572 Extents temp = new Extents(0, 0, 0, 0);
1573 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MARGIN).Get(temp);
1578 /// UpdateSizeHintProperty
1580 [EditorBrowsable(EditorBrowsableState.Never)]
1581 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create(nameof(UpdateSizeHint), typeof(Vector2), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1583 var view = (View)bindable;
1584 if (newValue != null)
1586 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ViewProperty.UpdateSizeHintGet(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1589 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1591 var view = (View)bindable;
1593 Vector2 temp = new Vector2(0.0f, 0.0f);
1594 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ViewProperty.UpdateSizeHintGet()).Get(temp);
1599 /// ImageShadow Property
1601 [EditorBrowsable(EditorBrowsableState.Never)]
1602 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(ImageShadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1604 var view = (View)bindable;
1606 view.themeData?.selectorData?.ClearShadow(view);
1608 if (newValue is Selector<ImageShadow> selector)
1610 if (selector.HasAll()) view.SetShadow(selector.All);
1611 else view.EnsureSelectorData().ImageShadow = new TriggerableSelector<ImageShadow>(view, selector, view.SetShadow, true);
1615 view.SetShadow((ImageShadow)newValue);
1618 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1620 var view = (View)bindable;
1622 PropertyMap map = new PropertyMap();
1623 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
1625 var shadow = new ImageShadow(map);
1626 return shadow.IsEmpty() ? null : shadow;
1632 [EditorBrowsable(EditorBrowsableState.Never)]
1633 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Shadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1635 var view = (View)bindable;
1637 view.themeData?.selectorData?.ClearShadow(view);
1639 if (newValue is Selector<Shadow> selector)
1641 if (selector.HasAll()) view.SetShadow(selector.All);
1642 else view.EnsureSelectorData().BoxShadow = new TriggerableSelector<Shadow>(view, selector, view.SetShadow, true);
1646 view.SetShadow((Shadow)newValue);
1649 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1651 var view = (View)bindable;
1653 PropertyMap map = new PropertyMap();
1654 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
1656 var shadow = new Shadow(map);
1657 return shadow.IsEmpty() ? null : shadow;
1661 /// CornerRadius Property
1663 [EditorBrowsable(EditorBrowsableState.Never)]
1664 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1666 var view = (View)bindable;
1667 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadius = (Vector4)newValue;
1668 view.ApplyCornerRadius();
1670 defaultValueCreator: (bindable) =>
1672 var view = (View)bindable;
1673 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.CornerRadius;
1677 /// CornerRadiusPolicy Property
1679 [EditorBrowsable(EditorBrowsableState.Never)]
1680 public static readonly BindableProperty CornerRadiusPolicyProperty = BindableProperty.Create(nameof(CornerRadiusPolicy), typeof(VisualTransformPolicyType), typeof(View), VisualTransformPolicyType.Absolute, propertyChanged: (bindable, oldValue, newValue) =>
1682 var view = (View)bindable;
1683 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadiusPolicy = (VisualTransformPolicyType)newValue;
1685 if (view.backgroundExtraData.CornerRadius != null)
1687 view.ApplyCornerRadius();
1690 defaultValueCreator: (bindable) =>
1692 var view = (View)bindable;
1693 return view.backgroundExtraData == null ? VisualTransformPolicyType.Absolute : view.backgroundExtraData.CornerRadiusPolicy;
1697 /// BorderlineWidth Property
1699 [EditorBrowsable(EditorBrowsableState.Never)]
1700 public static readonly BindableProperty BorderlineWidthProperty = BindableProperty.Create(nameof(BorderlineWidth), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1702 var view = (View)bindable;
1703 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineWidth = (float)newValue;
1704 view.ApplyBorderline();
1706 defaultValueCreator: (bindable) =>
1708 var view = (View)bindable;
1709 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineWidth;
1713 /// BorderlineColor Property
1715 [EditorBrowsable(EditorBrowsableState.Never)]
1716 public static readonly BindableProperty BorderlineColorProperty = BindableProperty.Create(nameof(BorderlineColor), typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1718 var view = (View)bindable;
1719 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineColor = (Color)newValue;
1720 view.ApplyBorderline();
1722 defaultValueCreator: (bindable) =>
1724 var view = (View)bindable;
1725 return view.backgroundExtraData == null ? Color.Black : view.backgroundExtraData.BorderlineColor;
1729 /// BorderlineOffset Property
1731 [EditorBrowsable(EditorBrowsableState.Never)]
1732 public static readonly BindableProperty BorderlineOffsetProperty = BindableProperty.Create(nameof(BorderlineOffset), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1734 var view = (View)bindable;
1735 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineOffset = (float)newValue;
1736 view.ApplyBorderline();
1738 defaultValueCreator: (bindable) =>
1740 var view = (View)bindable;
1741 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineOffset;
1745 /// XamlStyleProperty
1747 [EditorBrowsable(EditorBrowsableState.Never)]
1748 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);
1751 /// EnableControlState property
1753 [EditorBrowsable(EditorBrowsableState.Never)]
1754 public static readonly BindableProperty EnableControlStateProperty = BindableProperty.Create(nameof(EnableControlState), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1756 var view = (View)bindable;
1757 bool prev = view.enableControlState;
1758 view.enableControlState = (bool)newValue;
1760 if (prev != view.enableControlState)
1764 view.TouchEvent -= view.EmptyOnTouch;
1768 view.TouchEvent += view.EmptyOnTouch;
1772 defaultValueCreator: (bindable) =>
1774 return ((View)bindable).enableControlState;
1778 /// ThemeChangeSensitive property
1780 [EditorBrowsable(EditorBrowsableState.Never)]
1781 public static readonly BindableProperty ThemeChangeSensitiveProperty = BindableProperty.Create(nameof(ThemeChangeSensitive), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1783 var view = (View)bindable;
1785 if (view.ThemeChangeSensitive == (bool)newValue) return;
1787 if (view.themeData == null) view.themeData = new ThemeData();
1789 view.themeData.ThemeChangeSensitive = (bool)newValue;
1791 if (!view.themeData.ThemeApplied) return;
1793 if (view.themeData.ThemeChangeSensitive && !view.themeData.ListeningThemeChangeEvent)
1795 view.themeData.ListeningThemeChangeEvent = true;
1796 ThemeManager.ThemeChangedInternal.Add(view.OnThemeChanged);
1798 else if (!view.themeData.ThemeChangeSensitive && view.themeData.ListeningThemeChangeEvent)
1800 view.themeData.ListeningThemeChangeEvent = false;
1801 ThemeManager.ThemeChangedInternal.Remove(view.OnThemeChanged);
1804 defaultValueCreator: (bindable) =>
1806 return ((View)bindable).themeData?.ThemeChangeSensitive ?? ThemeManager.ApplicationThemeChangeSensitive;
1810 /// AccessibilityNameProperty
1812 [EditorBrowsable(EditorBrowsableState.Never)]
1813 public static readonly BindableProperty AccessibilityNameProperty = BindableProperty.Create(nameof(AccessibilityName), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1815 var view = (View)bindable;
1816 if (newValue != null)
1818 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName, new Tizen.NUI.PropertyValue((string)newValue));
1821 defaultValueCreator: (bindable) =>
1823 var view = (View)bindable;
1826 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName).Get(out temp);
1831 /// AccessibilityDescriptionProperty
1833 [EditorBrowsable(EditorBrowsableState.Never)]
1834 public static readonly BindableProperty AccessibilityDescriptionProperty = BindableProperty.Create(nameof(AccessibilityDescription), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1836 var view = (View)bindable;
1837 if (newValue != null)
1839 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription, new Tizen.NUI.PropertyValue((string)newValue));
1842 defaultValueCreator: (bindable) =>
1844 var view = (View)bindable;
1847 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription).Get(out temp);
1852 /// AccessibilityTranslationDomainProperty
1854 [EditorBrowsable(EditorBrowsableState.Never)]
1855 public static readonly BindableProperty AccessibilityTranslationDomainProperty = BindableProperty.Create(nameof(AccessibilityTranslationDomain), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1857 var view = (View)bindable;
1858 if (newValue != null)
1860 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain, new Tizen.NUI.PropertyValue((string)newValue));
1863 defaultValueCreator: (bindable) =>
1865 var view = (View)bindable;
1868 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain).Get(out temp);
1873 /// AccessibilityRoleProperty
1875 [EditorBrowsable(EditorBrowsableState.Never)]
1876 public static readonly BindableProperty AccessibilityRoleProperty = BindableProperty.Create(nameof(AccessibilityRole), typeof(Role), typeof(View), default(Role), propertyChanged: (bindable, oldValue, newValue) =>
1878 var view = (View)bindable;
1879 if (newValue != null)
1881 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole, new Tizen.NUI.PropertyValue((int)newValue));
1884 defaultValueCreator: (bindable) =>
1886 var view = (View)bindable;
1889 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole).Get(out temp);
1894 /// AccessibilityHighlightableProperty
1896 [EditorBrowsable(EditorBrowsableState.Never)]
1897 public static readonly BindableProperty AccessibilityHighlightableProperty = BindableProperty.Create(nameof(AccessibilityHighlightable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1899 var view = (View)bindable;
1900 if (newValue != null)
1902 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable, new Tizen.NUI.PropertyValue((bool)newValue));
1905 defaultValueCreator: (bindable) =>
1907 var view = (View)bindable;
1909 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable).Get(out temp);
1914 /// ExcludeLayoutingProperty
1916 [EditorBrowsable(EditorBrowsableState.Never)]
1917 public static readonly BindableProperty ExcludeLayoutingProperty = BindableProperty.Create(nameof(ExcludeLayouting), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1919 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1920 if (newValue != null)
1922 instance.InternalExcludeLayouting = (bool)newValue;
1925 defaultValueCreator: (bindable) =>
1927 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1928 return instance.InternalExcludeLayouting;
1932 /// TooltipTextProperty
1934 [EditorBrowsable(EditorBrowsableState.Never)]
1935 public static readonly BindableProperty TooltipTextProperty = BindableProperty.Create(nameof(TooltipText), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1937 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1938 if (newValue != null)
1940 instance.InternalTooltipText = (string)newValue;
1943 defaultValueCreator: (bindable) =>
1945 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1946 return instance.InternalTooltipText;
1950 /// PositionUsesAnchorPointProperty
1952 [EditorBrowsable(EditorBrowsableState.Never)]
1953 public static readonly BindableProperty PositionUsesAnchorPointProperty = BindableProperty.Create(nameof(PositionUsesAnchorPoint), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1955 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1956 if (newValue != null)
1958 instance.InternalPositionUsesAnchorPoint = (bool)newValue;
1961 defaultValueCreator: (bindable) =>
1963 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1964 return instance.InternalPositionUsesAnchorPoint;
1968 /// AnchorPointProperty
1970 [EditorBrowsable(EditorBrowsableState.Never)]
1971 public static readonly BindableProperty AnchorPointProperty = BindableProperty.Create(nameof(AnchorPoint), typeof(Tizen.NUI.Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1973 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1974 if (newValue != null)
1976 instance.InternalAnchorPoint = (Tizen.NUI.Position)newValue;
1979 defaultValueCreator: (bindable) =>
1981 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1982 return instance.InternalAnchorPoint;
1986 /// WidthSpecificationProperty
1988 [EditorBrowsable(EditorBrowsableState.Never)]
1989 public static readonly BindableProperty WidthSpecificationProperty = BindableProperty.Create(nameof(WidthSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
1991 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1992 if (newValue != null)
1994 instance.InternalWidthSpecification = (int)newValue;
1997 defaultValueCreator: (bindable) =>
1999 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2000 return instance.InternalWidthSpecification;
2004 /// HeightSpecificationProperty
2006 [EditorBrowsable(EditorBrowsableState.Never)]
2007 public static readonly BindableProperty HeightSpecificationProperty = BindableProperty.Create(nameof(HeightSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
2009 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2010 if (newValue != null)
2012 instance.InternalHeightSpecification = (int)newValue;
2015 defaultValueCreator: (bindable) =>
2017 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2018 return instance.InternalHeightSpecification;
2022 /// LayoutTransitionProperty
2024 [EditorBrowsable(EditorBrowsableState.Never)]
2025 public static readonly BindableProperty LayoutTransitionProperty = BindableProperty.Create(nameof(LayoutTransition), typeof(Tizen.NUI.LayoutTransition), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2027 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2028 if (newValue != null)
2030 instance.InternalLayoutTransition = (Tizen.NUI.LayoutTransition)newValue;
2033 defaultValueCreator: (bindable) =>
2035 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2036 return instance.InternalLayoutTransition;
2040 /// PaddingEXProperty
2042 [EditorBrowsable(EditorBrowsableState.Never)]
2043 public static readonly BindableProperty PaddingEXProperty = BindableProperty.Create(nameof(PaddingEX), typeof(Tizen.NUI.Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2045 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2046 if (newValue != null)
2048 instance.InternalPaddingEX = (Tizen.NUI.Extents)newValue;
2051 defaultValueCreator: (bindable) =>
2053 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2054 return instance.InternalPaddingEX;
2060 [EditorBrowsable(EditorBrowsableState.Never)]
2061 public static readonly BindableProperty LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.LayoutItem), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2063 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2064 if (newValue != null)
2066 instance.InternalLayout = (Tizen.NUI.LayoutItem)newValue;
2069 defaultValueCreator: (bindable) =>
2071 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2072 return instance.InternalLayout;
2076 /// BackgroundImageSynchronosLoadingProperty
2078 [EditorBrowsable(EditorBrowsableState.Never)]
2079 public static readonly BindableProperty BackgroundImageSynchronosLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronosLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2081 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2082 if (newValue != null)
2084 instance.InternalBackgroundImageSynchronosLoading = (bool)newValue;
2087 defaultValueCreator: (bindable) =>
2089 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2090 return instance.InternalBackgroundImageSynchronosLoading;
2094 /// BackgroundImageSynchronousLoadingProperty
2096 [EditorBrowsable(EditorBrowsableState.Never)]
2097 public static readonly BindableProperty BackgroundImageSynchronousLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronousLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2099 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2100 if (newValue != null)
2102 instance.InternalBackgroundImageSynchronousLoading = (bool)newValue;
2105 defaultValueCreator: (bindable) =>
2107 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2108 return instance.InternalBackgroundImageSynchronousLoading;
2112 /// EnableControlStatePropagationProperty
2114 [EditorBrowsable(EditorBrowsableState.Never)]
2115 public static readonly BindableProperty EnableControlStatePropagationProperty = BindableProperty.Create(nameof(EnableControlStatePropagation), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2117 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2118 if (newValue != null)
2120 instance.InternalEnableControlStatePropagation = (bool)newValue;
2123 defaultValueCreator: (bindable) =>
2125 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2126 return instance.InternalEnableControlStatePropagation;
2130 /// GrabTouchAfterLeaveProperty
2132 [EditorBrowsable(EditorBrowsableState.Never)]
2133 public static readonly BindableProperty GrabTouchAfterLeaveProperty = BindableProperty.Create(nameof(GrabTouchAfterLeave), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2135 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2136 if (newValue != null)
2138 instance.InternalGrabTouchAfterLeave = (bool)newValue;
2141 defaultValueCreator: (bindable) =>
2143 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2144 return instance.InternalGrabTouchAfterLeave;
2148 /// BlendEquationProperty
2150 [EditorBrowsable(EditorBrowsableState.Never)]
2151 public static readonly BindableProperty BlendEquationProperty = BindableProperty.Create(nameof(BlendEquation), typeof(BlendEquationType), typeof(View), default(BlendEquationType), propertyChanged: (bindable, oldValue, newValue) =>
2153 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2154 if (newValue != null)
2156 instance.InternalBlendEquation = (Tizen.NUI.BlendEquationType)newValue;
2159 defaultValueCreator: (bindable) =>
2161 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2162 return instance.InternalBlendEquation;
2166 /// TransitionOptionsProperty
2168 [EditorBrowsable(EditorBrowsableState.Never)]
2169 public static readonly BindableProperty TransitionOptionsProperty = BindableProperty.Create(nameof(TransitionOptions), typeof(TransitionOptions), typeof(View), default(TransitionOptions), propertyChanged: (bindable, oldValue, newValue) =>
2171 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2172 if (newValue != null)
2174 instance.InternalTransitionOptions = (Tizen.NUI.TransitionOptions)newValue;
2177 defaultValueCreator: (bindable) =>
2179 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2180 return instance.InternalTransitionOptions;
2184 /// AutomationIdProperty
2186 [EditorBrowsable(EditorBrowsableState.Never)]
2187 public static readonly BindableProperty AutomationIdProperty = BindableProperty.Create(nameof(AutomationId), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2189 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2190 if (newValue != null)
2192 instance.InternalAutomationId = (string)newValue;
2195 defaultValueCreator: (bindable) =>
2197 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2198 return instance.InternalAutomationId;
2202 /// TouchAreaOffsetProperty
2204 [EditorBrowsable(EditorBrowsableState.Never)]
2205 public static readonly BindableProperty TouchAreaOffsetProperty = BindableProperty.Create(nameof(TouchAreaOffset), typeof(Offset), typeof(View), default(Offset), propertyChanged: (bindable, oldValue, newValue) =>
2207 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2208 if (newValue != null)
2210 instance.InternalTouchAreaOffset = (Tizen.NUI.Offset)newValue;
2213 defaultValueCreator: (bindable) =>
2215 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2216 return instance.InternalTouchAreaOffset;
2219 private void SetBackgroundImage(string value)
2221 if (string.IsNullOrEmpty(value))
2224 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue());
2228 if (value.StartsWith("*Resource*"))
2230 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
2231 value = value.Replace("*Resource*", resource);
2234 if (backgroundExtraData == null)
2236 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(value));
2237 BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
2242 PropertyMap map = new PropertyMap();
2244 map.Add(ImageVisualProperty.URL, new PropertyValue(value))
2245 .Add(Visual.Property.CornerRadius, new PropertyValue(backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius)))
2246 .Add(Visual.Property.CornerRadiusPolicy, new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy)))
2247 .Add(Visual.Property.BorderlineWidth, new PropertyValue(backgroundExtraData.BorderlineWidth))
2248 .Add(Visual.Property.BorderlineColor, new PropertyValue(backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor)))
2249 .Add(Visual.Property.BorderlineOffset, new PropertyValue(backgroundExtraData.BorderlineOffset))
2250 .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(backgroundImageSynchronousLoading));
2252 if (backgroundExtraData.BackgroundImageBorder != null)
2254 map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch))
2255 .Add(NpatchImageVisualProperty.Border, new PropertyValue(backgroundExtraData.BackgroundImageBorder));
2259 map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
2262 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2265 private void SetBackgroundImageBorder(Rectangle value)
2267 bool isEmptyValue = Rectangle.IsNullOrZero(value);
2269 var backgroundImageBorder = isEmptyValue ? null : value;
2271 (backgroundExtraData ?? (backgroundExtraData = new BackgroundExtraData())).BackgroundImageBorder = backgroundImageBorder;
2278 PropertyMap map = Background;
2285 map[NpatchImageVisualProperty.Border] = new PropertyValue(backgroundImageBorder);
2289 map.Find(Visual.Property.Type)?.Get(out visualType);
2291 if (visualType == (int)Visual.Type.Image)
2293 map[Visual.Property.Type] = new PropertyValue((int)Visual.Type.NPatch);
2296 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2299 private void SetBackgroundColor(Color value)
2306 if (backgroundExtraData == null)
2308 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(value));
2312 PropertyMap map = new PropertyMap();
2314 map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color))
2315 .Add(ColorVisualProperty.MixColor, new PropertyValue(value))
2316 .Add(Visual.Property.CornerRadius, new PropertyValue(new PropertyValue(backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius))))
2317 .Add(Visual.Property.CornerRadiusPolicy, new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy)))
2318 .Add(Visual.Property.BorderlineWidth, new PropertyValue(backgroundExtraData.BorderlineWidth))
2319 .Add(Visual.Property.BorderlineColor, new PropertyValue(backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor)))
2320 .Add(Visual.Property.BorderlineOffset, new PropertyValue(backgroundExtraData.BorderlineOffset));
2323 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2326 private void SetColor(Color value)
2333 Interop.ActorInternal.SetColor(SwigCPtr, value.SwigCPtr);
2334 if (NDalicPINVOKE.SWIGPendingException.Pending)
2335 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2338 private void SetOpacity(float? value)
2345 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)value));
2348 private void SetShadow(ShadowBase value)
2350 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.SHADOW, value == null ? new PropertyValue() : value.ToPropertyValue(this));