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, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
612 var view = (View)bindable;
613 if (newValue != null)
615 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(new Size((Size2D)newValue)));
616 view.widthPolicy = ((Size2D)newValue).Width;
617 view.heightPolicy = ((Size2D)newValue).Height;
619 view.layout?.RequestLayout();
622 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
624 var view = (View)bindable;
625 Size temp = new Size(0.0f, 0.0f, 0.0f);
626 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SIZE).Get(temp);
627 Size2D size = new Size2D((int)temp.Width, (int)temp.Height);
634 [EditorBrowsable(EditorBrowsableState.Never)]
635 public static readonly BindableProperty OpacityProperty = BindableProperty.Create(nameof(Opacity), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
637 var view = (View)bindable;
639 view.themeData?.selectorData?.Opacity?.Reset(view);
641 if (newValue is Selector<float?> selector)
643 if (selector.HasAll()) view.SetOpacity(selector.All);
644 else view.EnsureSelectorData().Opacity = new TriggerableSelector<float?>(view, selector, view.SetOpacity, true);
648 view.SetOpacity((float?)newValue);
651 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
653 var view = (View)bindable;
655 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.OPACITY).Get(out temp);
660 /// Position2DProperty
662 [EditorBrowsable(EditorBrowsableState.Never)]
663 public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
665 var view = (View)bindable;
666 if (newValue != null)
668 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue(new Position((Position2D)newValue)));
671 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
673 var view = (View)bindable;
674 Position temp = new Position(0.0f, 0.0f, 0.0f);
675 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION).Get(temp);
676 return new Position2D(temp);
680 /// PositionUsesPivotPointProperty
682 [EditorBrowsable(EditorBrowsableState.Never)]
683 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool), typeof(View), true, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
685 var view = (View)bindable;
686 if (newValue != null)
688 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint, new Tizen.NUI.PropertyValue((bool)newValue));
691 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
693 var view = (View)bindable;
695 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionUsesAnchorPoint).Get(out temp);
700 /// SiblingOrderProperty
702 [EditorBrowsable(EditorBrowsableState.Never)]
703 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int), typeof(View), default(int), propertyChanged: (bindable, oldValue, newValue) =>
705 var view = (View)bindable;
707 if (newValue != null)
709 value = (int)newValue;
712 NUILog.Error("SiblingOrder should be bigger than 0 or equal to 0.");
715 var siblings = view.GetParent()?.Children;
716 if (siblings != null)
718 int currentOrder = siblings.IndexOf(view);
719 if (value != currentOrder)
721 if (value == 0) { view.LowerToBottom(); }
722 else if (value < siblings.Count - 1)
724 if (value > currentOrder) { view.RaiseAbove(siblings[value]); }
725 else { view.LowerBelow(siblings[value]); }
727 else { view.RaiseToTop(); }
732 defaultValueCreator: (bindable) =>
734 var view = (View)bindable;
735 var parentChildren = view.GetParent()?.Children;
736 int currentOrder = 0;
737 if (parentChildren != null)
739 currentOrder = parentChildren.IndexOf(view);
741 if (currentOrder < 0) { return 0; }
742 else if (currentOrder < parentChildren.Count) { return currentOrder; }
749 /// ParentOriginProperty
751 [EditorBrowsable(EditorBrowsableState.Never)]
752 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
754 var view = (View)bindable;
755 if (newValue != null)
757 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin, new Tizen.NUI.PropertyValue((Position)newValue));
760 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
762 var view = (View)bindable;
763 Position temp = new Position(0.0f, 0.0f, 0.0f);
764 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ParentOrigin).Get(temp);
770 /// PivotPointProperty
772 [EditorBrowsable(EditorBrowsableState.Never)]
773 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
775 var view = (View)bindable;
776 if (newValue != null)
778 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AnchorPoint, new Tizen.NUI.PropertyValue((Position)newValue));
781 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
783 var view = (View)bindable;
784 Position temp = new Position(0.0f, 0.0f, 0.0f);
785 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AnchorPoint).Get(temp);
790 /// SizeWidthProperty
792 [EditorBrowsable(EditorBrowsableState.Never)]
793 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
795 var view = (View)bindable;
796 if (newValue != null)
798 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, new Tizen.NUI.PropertyValue((float)newValue));
799 view.WidthSpecification = (int)System.Math.Ceiling((float)newValue);
802 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
804 var view = (View)bindable;
806 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth).Get(out temp);
811 /// SizeHeightProperty
813 [EditorBrowsable(EditorBrowsableState.Never)]
814 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
816 var view = (View)bindable;
817 if (newValue != null)
819 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, new Tizen.NUI.PropertyValue((float)newValue));
820 view.HeightSpecification = (int)System.Math.Ceiling((float)newValue);
823 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
825 var view = (View)bindable;
827 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight).Get(out temp);
834 [EditorBrowsable(EditorBrowsableState.Never)]
835 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
837 var view = (View)bindable;
838 if (newValue != null)
840 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION, new Tizen.NUI.PropertyValue((Position)newValue));
843 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
845 var view = (View)bindable;
846 Position temp = new Position(0.0f, 0.0f, 0.0f);
847 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.POSITION).Get(temp);
852 /// PositionXProperty
854 [EditorBrowsable(EditorBrowsableState.Never)]
855 public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
857 var view = (View)bindable;
858 if (newValue != null)
860 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX, new Tizen.NUI.PropertyValue((float)newValue));
863 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
865 var view = (View)bindable;
867 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionX).Get(out temp);
872 /// PositionYProperty
874 [EditorBrowsable(EditorBrowsableState.Never)]
875 public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
877 var view = (View)bindable;
878 if (newValue != null)
880 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY, new Tizen.NUI.PropertyValue((float)newValue));
883 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
885 var view = (View)bindable;
887 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionY).Get(out temp);
892 /// PositionZProperty
894 [EditorBrowsable(EditorBrowsableState.Never)]
895 public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
897 var view = (View)bindable;
898 if (newValue != null)
900 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ, new Tizen.NUI.PropertyValue((float)newValue));
903 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
905 var view = (View)bindable;
907 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PositionZ).Get(out temp);
912 /// OrientationProperty
914 [EditorBrowsable(EditorBrowsableState.Never)]
915 public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
917 var view = (View)bindable;
918 if (newValue != null)
920 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION, new Tizen.NUI.PropertyValue((Rotation)newValue));
923 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
925 var view = (View)bindable;
926 Rotation temp = new Rotation();
927 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ORIENTATION).Get(temp);
934 [EditorBrowsable(EditorBrowsableState.Never)]
935 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
937 var view = (View)bindable;
938 if (newValue != null)
940 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SCALE, new Tizen.NUI.PropertyValue((Vector3)newValue));
943 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
945 var view = (View)bindable;
946 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
947 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SCALE).Get(temp);
954 [EditorBrowsable(EditorBrowsableState.Never)]
955 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
957 var view = (View)bindable;
958 if (newValue != null)
960 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX, new Tizen.NUI.PropertyValue((float)newValue));
963 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
965 var view = (View)bindable;
967 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleX).Get(out temp);
974 [EditorBrowsable(EditorBrowsableState.Never)]
975 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
977 var view = (View)bindable;
978 if (newValue != null)
980 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY, new Tizen.NUI.PropertyValue((float)newValue));
983 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
985 var view = (View)bindable;
987 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleY).Get(out temp);
994 [EditorBrowsable(EditorBrowsableState.Never)]
995 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float), typeof(View), default(float), propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
997 var view = (View)bindable;
998 if (newValue != null)
1000 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ, new Tizen.NUI.PropertyValue((float)newValue));
1003 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1005 var view = (View)bindable;
1007 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ScaleZ).Get(out temp);
1014 [EditorBrowsable(EditorBrowsableState.Never)]
1015 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(View), string.Empty, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1017 var view = (View)bindable;
1018 if (newValue != null)
1020 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.NAME, new Tizen.NUI.PropertyValue((string)newValue));
1023 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1025 var view = (View)bindable;
1027 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.NAME).Get(out temp);
1032 /// SensitiveProperty
1034 [EditorBrowsable(EditorBrowsableState.Never)]
1035 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1037 var view = (View)bindable;
1038 if (newValue != null)
1040 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE, new Tizen.NUI.PropertyValue((bool)newValue));
1043 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1045 var view = (View)bindable;
1047 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SENSITIVE).Get(out temp);
1052 /// DispatchKeyEventsProperty
1054 [EditorBrowsable(EditorBrowsableState.Never)]
1055 public static readonly BindableProperty DispatchKeyEventsProperty = BindableProperty.Create(nameof(DispatchKeyEvents), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1057 var view = (View)bindable;
1058 if (newValue != null)
1060 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents, new Tizen.NUI.PropertyValue((bool)newValue));
1063 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1065 var view = (View)bindable;
1067 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DispatchKeyEvents).Get(out temp);
1072 /// LeaveRequiredProperty
1074 [EditorBrowsable(EditorBrowsableState.Never)]
1075 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1077 var view = (View)bindable;
1078 if (newValue != null)
1080 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired, new Tizen.NUI.PropertyValue((bool)newValue));
1083 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1085 var view = (View)bindable;
1087 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LeaveRequired).Get(out temp);
1092 /// InheritOrientationProperty
1094 [EditorBrowsable(EditorBrowsableState.Never)]
1095 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1097 var view = (View)bindable;
1098 if (newValue != null)
1100 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation, new Tizen.NUI.PropertyValue((bool)newValue));
1103 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1105 var view = (View)bindable;
1107 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritOrientation).Get(out temp);
1112 /// InheritScaleProperty
1114 [EditorBrowsable(EditorBrowsableState.Never)]
1115 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1117 var view = (View)bindable;
1118 if (newValue != null)
1120 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale, new Tizen.NUI.PropertyValue((bool)newValue));
1123 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1125 var view = (View)bindable;
1127 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritScale).Get(out temp);
1132 /// DrawModeProperty
1134 [EditorBrowsable(EditorBrowsableState.Never)]
1135 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType), typeof(View), DrawModeType.Normal, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1137 var view = (View)bindable;
1138 if (newValue != null)
1140 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode, new Tizen.NUI.PropertyValue((int)newValue));
1143 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1145 var view = (View)bindable;
1147 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.DrawMode).Get(out temp) == false)
1149 NUILog.Error("DrawMode get error!");
1151 return (DrawModeType)temp;
1155 /// SizeModeFactorProperty
1157 [EditorBrowsable(EditorBrowsableState.Never)]
1158 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1160 var view = (View)bindable;
1161 if (newValue != null)
1163 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeModeFactor, new Tizen.NUI.PropertyValue((Vector3)newValue));
1166 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1168 var view = (View)bindable;
1169 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
1170 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeModeFactor).Get(temp);
1175 /// WidthResizePolicyProperty
1177 [EditorBrowsable(EditorBrowsableState.Never)]
1178 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1180 var view = (View)bindable;
1181 if (newValue != null)
1183 if((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1185 if(view.widthConstraint == null)
1187 view.widthConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeWidth, View.Property.SizeWidth);
1188 view.widthConstraint.Apply();
1190 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1194 view.widthConstraint?.Remove();
1195 view.widthConstraint?.Dispose();
1196 view.widthConstraint = null;
1197 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1199 // Match ResizePolicy to new Layouting.
1200 // Parent relative policies can not be mapped at this point as parent size unknown.
1201 switch ((ResizePolicyType)newValue)
1203 case ResizePolicyType.UseNaturalSize:
1205 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1208 case ResizePolicyType.FillToParent:
1210 view.WidthSpecification = LayoutParamPolicies.MatchParent;
1213 case ResizePolicyType.FitToChildren:
1215 view.WidthSpecification = LayoutParamPolicies.WrapContent;
1223 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1225 var view = (View)bindable;
1227 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthResizePolicy).Get(out temp) == false)
1229 NUILog.Error("WidthResizePolicy get error!");
1231 return temp.GetValueByDescription<ResizePolicyType>();
1235 /// HeightResizePolicyProperty
1237 [EditorBrowsable(EditorBrowsableState.Never)]
1238 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType), typeof(View), ResizePolicyType.Fixed, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1240 var view = (View)bindable;
1241 if (newValue != null)
1243 if((ResizePolicyType)newValue == ResizePolicyType.KeepSizeFollowingParent)
1245 if(view.heightConstraint == null)
1247 view.heightConstraint = new EqualConstraintWithParentFloat((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeHeight, View.Property.SizeHeight);
1248 view.heightConstraint.Apply();
1250 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)ResizePolicyType.FillToParent));
1254 view.heightConstraint?.Remove();
1255 view.heightConstraint?.Dispose();
1256 view.heightConstraint = null;
1257 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy, new Tizen.NUI.PropertyValue((int)newValue));
1259 // Match ResizePolicy to new Layouting.
1260 // Parent relative policies can not be mapped at this point as parent size unknown.
1261 switch ((ResizePolicyType)newValue)
1263 case ResizePolicyType.UseNaturalSize:
1265 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1268 case ResizePolicyType.FillToParent:
1270 view.HeightSpecification = LayoutParamPolicies.MatchParent;
1273 case ResizePolicyType.FitToChildren:
1275 view.HeightSpecification = LayoutParamPolicies.WrapContent;
1283 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1285 var view = (View)bindable;
1287 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightResizePolicy).Get(out temp) == false)
1289 NUILog.Error("HeightResizePolicy get error!");
1291 return temp.GetValueByDescription<ResizePolicyType>();
1295 /// SizeScalePolicyProperty
1297 [EditorBrowsable(EditorBrowsableState.Never)]
1298 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType), typeof(View), SizeScalePolicyType.UseSizeSet, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1300 var view = (View)bindable;
1301 string valueToString = "";
1302 if (newValue != null)
1304 valueToString = ((SizeScalePolicyType)newValue).GetDescription();
1305 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy, new Tizen.NUI.PropertyValue(valueToString));
1308 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1310 var view = (View)bindable;
1312 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SizeScalePolicy).Get(out temp) == false)
1314 NUILog.Error("SizeScalePolicy get error!");
1316 return (SizeScalePolicyType)temp;
1320 /// WidthForHeightProperty
1322 [EditorBrowsable(EditorBrowsableState.Never)]
1323 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1325 var view = (View)bindable;
1326 if (newValue != null)
1328 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight, new Tizen.NUI.PropertyValue((bool)newValue));
1331 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1333 var view = (View)bindable;
1335 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.WidthForHeight).Get(out temp);
1340 /// HeightForWidthProperty
1342 [EditorBrowsable(EditorBrowsableState.Never)]
1343 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1345 var view = (View)bindable;
1346 if (newValue != null)
1348 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth, new Tizen.NUI.PropertyValue((bool)newValue));
1351 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1353 var view = (View)bindable;
1355 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.HeightForWidth).Get(out temp);
1362 [EditorBrowsable(EditorBrowsableState.Never)]
1363 public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1365 var view = (View)bindable;
1366 if (newValue != null)
1368 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PADDING, new Tizen.NUI.PropertyValue((Extents)newValue));
1371 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1373 var view = (View)bindable;
1374 Extents temp = new Extents(0, 0, 0, 0);
1375 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.PADDING).Get(temp);
1382 [EditorBrowsable(EditorBrowsableState.Never)]
1383 public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1385 var view = (View)bindable;
1386 if (newValue != null)
1388 Size size = (Size)newValue;
1389 // Set Specification so when layouts measure this View it matches the value set here.
1390 // All Views are currently Layouts.
1391 view.WidthSpecification = (int)System.Math.Ceiling(size.Width);
1392 view.HeightSpecification = (int)System.Math.Ceiling(size.Height);
1393 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SIZE, new Tizen.NUI.PropertyValue(size));
1396 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1398 var view = (View)bindable;
1399 Size temp = new Size(0, 0, 0);
1400 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SIZE).Get(temp);
1405 /// MinimumSizeProperty
1407 [EditorBrowsable(EditorBrowsableState.Never)]
1408 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1410 var view = (View)bindable;
1411 Size2D temp = newValue as Size2D;
1414 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MinimumSize, new Tizen.NUI.PropertyValue(temp));
1418 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MinimumSizeProperty!");
1421 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1423 var view = (View)bindable;
1424 Size2D temp = new Size2D(0, 0);
1425 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MinimumSize).Get(temp);
1430 /// MaximumSizeProperty
1432 [EditorBrowsable(EditorBrowsableState.Never)]
1433 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1435 var view = (View)bindable;
1436 Size2D temp = newValue as Size2D;
1439 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MaximumSize, new Tizen.NUI.PropertyValue(temp));
1443 Tizen.Log.Fatal("NUI", $"[ERROR] can't set MaximumSizeProperty!");
1446 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1448 var view = (View)bindable;
1449 Size2D temp = new Size2D(0, 0);
1450 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MaximumSize).Get(temp);
1455 /// InheritPositionProperty
1457 [EditorBrowsable(EditorBrowsableState.Never)]
1458 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1460 var view = (View)bindable;
1461 if (newValue != null)
1463 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition, new Tizen.NUI.PropertyValue((bool)newValue));
1466 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1468 var view = (View)bindable;
1470 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritPosition).Get(out temp);
1475 /// ClippingModeProperty
1477 [EditorBrowsable(EditorBrowsableState.Never)]
1478 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType), typeof(View), ClippingModeType.Disabled, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1480 var view = (View)bindable;
1481 if (newValue != null)
1483 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode, new Tizen.NUI.PropertyValue((int)newValue));
1486 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1488 var view = (View)bindable;
1490 if (Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.ClippingMode).Get(out temp) == false)
1492 NUILog.Error("ClippingMode get error!");
1494 return (ClippingModeType)temp;
1498 /// InheritLayoutDirectionProperty
1500 [EditorBrowsable(EditorBrowsableState.Never)]
1501 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool), typeof(View), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1503 var view = (View)bindable;
1504 if (newValue != null)
1506 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection, new Tizen.NUI.PropertyValue((bool)newValue));
1509 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1511 var view = (View)bindable;
1513 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.InheritLayoutDirection).Get(out temp);
1518 /// LayoutDirectionProperty
1520 [EditorBrowsable(EditorBrowsableState.Never)]
1521 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType), typeof(View), ViewLayoutDirectionType.LTR, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1523 var view = (View)bindable;
1524 if (newValue != null)
1526 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection, new Tizen.NUI.PropertyValue((int)newValue));
1529 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1531 var view = (View)bindable;
1533 if (false == Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.LayoutDirection).Get(out temp))
1535 NUILog.Error("LAYOUT_DIRECTION get error!");
1537 return (ViewLayoutDirectionType)temp;
1543 [EditorBrowsable(EditorBrowsableState.Never)]
1544 public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1546 var view = (View)bindable;
1547 if (newValue != null)
1549 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MARGIN, new Tizen.NUI.PropertyValue((Extents)newValue));
1552 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1554 var view = (View)bindable;
1555 Extents temp = new Extents(0, 0, 0, 0);
1556 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.MARGIN).Get(temp);
1561 /// UpdateSizeHintProperty
1563 [EditorBrowsable(EditorBrowsableState.Never)]
1564 public static readonly BindableProperty UpdateSizeHintProperty = BindableProperty.Create(nameof(UpdateSizeHint), typeof(Vector2), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1566 var view = (View)bindable;
1567 if (newValue != null)
1569 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ViewProperty.UpdateSizeHintGet(), new Tizen.NUI.PropertyValue((Vector2)newValue));
1572 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1574 var view = (View)bindable;
1576 Vector2 temp = new Vector2(0.0f, 0.0f);
1577 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, Interop.ViewProperty.UpdateSizeHintGet()).Get(temp);
1582 /// ImageShadow Property
1584 [EditorBrowsable(EditorBrowsableState.Never)]
1585 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(ImageShadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1587 var view = (View)bindable;
1589 view.themeData?.selectorData?.ClearShadow(view);
1591 if (newValue is Selector<ImageShadow> selector)
1593 if (selector.HasAll()) view.SetShadow(selector.All);
1594 else view.EnsureSelectorData().ImageShadow = new TriggerableSelector<ImageShadow>(view, selector, view.SetShadow, true);
1598 view.SetShadow((ImageShadow)newValue);
1601 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1603 var view = (View)bindable;
1605 PropertyMap map = new PropertyMap();
1606 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
1608 var shadow = new ImageShadow(map);
1609 return shadow.IsEmpty() ? null : shadow;
1615 [EditorBrowsable(EditorBrowsableState.Never)]
1616 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Shadow), typeof(View), null, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
1618 var view = (View)bindable;
1620 view.themeData?.selectorData?.ClearShadow(view);
1622 if (newValue is Selector<Shadow> selector)
1624 if (selector.HasAll()) view.SetShadow(selector.All);
1625 else view.EnsureSelectorData().BoxShadow = new TriggerableSelector<Shadow>(view, selector, view.SetShadow, true);
1629 view.SetShadow((Shadow)newValue);
1632 defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
1634 var view = (View)bindable;
1636 PropertyMap map = new PropertyMap();
1637 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.SHADOW).Get(map);
1639 var shadow = new Shadow(map);
1640 return shadow.IsEmpty() ? null : shadow;
1644 /// CornerRadius Property
1646 [EditorBrowsable(EditorBrowsableState.Never)]
1647 public static readonly BindableProperty CornerRadiusProperty = BindableProperty.Create(nameof(CornerRadius), typeof(Vector4), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1649 var view = (View)bindable;
1650 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadius = (Vector4)newValue;
1651 view.ApplyCornerRadius();
1653 defaultValueCreator: (bindable) =>
1655 var view = (View)bindable;
1656 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.CornerRadius;
1660 /// CornerRadiusPolicy Property
1662 [EditorBrowsable(EditorBrowsableState.Never)]
1663 public static readonly BindableProperty CornerRadiusPolicyProperty = BindableProperty.Create(nameof(CornerRadiusPolicy), typeof(VisualTransformPolicyType), typeof(View), VisualTransformPolicyType.Absolute, propertyChanged: (bindable, oldValue, newValue) =>
1665 var view = (View)bindable;
1666 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).CornerRadiusPolicy = (VisualTransformPolicyType)newValue;
1668 if (view.backgroundExtraData.CornerRadius != null)
1670 view.ApplyCornerRadius();
1673 defaultValueCreator: (bindable) =>
1675 var view = (View)bindable;
1676 return view.backgroundExtraData == null ? VisualTransformPolicyType.Absolute : view.backgroundExtraData.CornerRadiusPolicy;
1680 /// BorderlineWidth Property
1682 [EditorBrowsable(EditorBrowsableState.Never)]
1683 public static readonly BindableProperty BorderlineWidthProperty = BindableProperty.Create(nameof(BorderlineWidth), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1685 var view = (View)bindable;
1686 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineWidth = (float)newValue;
1687 view.ApplyBorderline();
1689 defaultValueCreator: (bindable) =>
1691 var view = (View)bindable;
1692 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineWidth;
1696 /// BorderlineColor Property
1698 [EditorBrowsable(EditorBrowsableState.Never)]
1699 public static readonly BindableProperty BorderlineColorProperty = BindableProperty.Create(nameof(BorderlineColor), typeof(Color), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1701 var view = (View)bindable;
1702 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineColor = (Color)newValue;
1703 view.ApplyBorderline();
1705 defaultValueCreator: (bindable) =>
1707 var view = (View)bindable;
1708 return view.backgroundExtraData == null ? Color.Black : view.backgroundExtraData.BorderlineColor;
1712 /// BorderlineOffset Property
1714 [EditorBrowsable(EditorBrowsableState.Never)]
1715 public static readonly BindableProperty BorderlineOffsetProperty = BindableProperty.Create(nameof(BorderlineOffset), typeof(float), typeof(View), default(float), propertyChanged: (bindable, oldValue, newValue) =>
1717 var view = (View)bindable;
1718 (view.backgroundExtraData ?? (view.backgroundExtraData = new BackgroundExtraData())).BorderlineOffset = (float)newValue;
1719 view.ApplyBorderline();
1721 defaultValueCreator: (bindable) =>
1723 var view = (View)bindable;
1724 return view.backgroundExtraData == null ? 0.0f : view.backgroundExtraData.BorderlineOffset;
1728 /// XamlStyleProperty
1730 [EditorBrowsable(EditorBrowsableState.Never)]
1731 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);
1734 /// EnableControlState property
1736 [EditorBrowsable(EditorBrowsableState.Never)]
1737 public static readonly BindableProperty EnableControlStateProperty = BindableProperty.Create(nameof(EnableControlState), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1739 var view = (View)bindable;
1740 bool prev = view.enableControlState;
1741 view.enableControlState = (bool)newValue;
1743 if (prev != view.enableControlState)
1747 view.TouchEvent -= view.EmptyOnTouch;
1751 view.TouchEvent += view.EmptyOnTouch;
1755 defaultValueCreator: (bindable) =>
1757 return ((View)bindable).enableControlState;
1761 /// ThemeChangeSensitive property
1763 [EditorBrowsable(EditorBrowsableState.Never)]
1764 public static readonly BindableProperty ThemeChangeSensitiveProperty = BindableProperty.Create(nameof(ThemeChangeSensitive), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1766 var view = (View)bindable;
1768 if (view.ThemeChangeSensitive == (bool)newValue) return;
1770 if (view.themeData == null) view.themeData = new ThemeData();
1772 view.themeData.ThemeChangeSensitive = (bool)newValue;
1774 if (!view.themeData.ThemeApplied) return;
1776 if (view.themeData.ThemeChangeSensitive && !view.themeData.ListeningThemeChangeEvent)
1778 view.themeData.ListeningThemeChangeEvent = true;
1779 ThemeManager.ThemeChangedInternal.Add(view.OnThemeChanged);
1781 else if (!view.themeData.ThemeChangeSensitive && view.themeData.ListeningThemeChangeEvent)
1783 view.themeData.ListeningThemeChangeEvent = false;
1784 ThemeManager.ThemeChangedInternal.Remove(view.OnThemeChanged);
1787 defaultValueCreator: (bindable) =>
1789 return ((View)bindable).themeData?.ThemeChangeSensitive ?? ThemeManager.ApplicationThemeChangeSensitive;
1793 /// AccessibilityNameProperty
1795 [EditorBrowsable(EditorBrowsableState.Never)]
1796 public static readonly BindableProperty AccessibilityNameProperty = BindableProperty.Create(nameof(AccessibilityName), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1798 var view = (View)bindable;
1799 if (newValue != null)
1801 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName, new Tizen.NUI.PropertyValue((string)newValue));
1804 defaultValueCreator: (bindable) =>
1806 var view = (View)bindable;
1809 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityName).Get(out temp);
1814 /// AccessibilityDescriptionProperty
1816 [EditorBrowsable(EditorBrowsableState.Never)]
1817 public static readonly BindableProperty AccessibilityDescriptionProperty = BindableProperty.Create(nameof(AccessibilityDescription), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1819 var view = (View)bindable;
1820 if (newValue != null)
1822 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription, new Tizen.NUI.PropertyValue((string)newValue));
1825 defaultValueCreator: (bindable) =>
1827 var view = (View)bindable;
1830 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityDescription).Get(out temp);
1835 /// AccessibilityTranslationDomainProperty
1837 [EditorBrowsable(EditorBrowsableState.Never)]
1838 public static readonly BindableProperty AccessibilityTranslationDomainProperty = BindableProperty.Create(nameof(AccessibilityTranslationDomain), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1840 var view = (View)bindable;
1841 if (newValue != null)
1843 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain, new Tizen.NUI.PropertyValue((string)newValue));
1846 defaultValueCreator: (bindable) =>
1848 var view = (View)bindable;
1851 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityTranslationDomain).Get(out temp);
1856 /// AccessibilityRoleProperty
1858 [EditorBrowsable(EditorBrowsableState.Never)]
1859 public static readonly BindableProperty AccessibilityRoleProperty = BindableProperty.Create(nameof(AccessibilityRole), typeof(Role), typeof(View), default(Role), propertyChanged: (bindable, oldValue, newValue) =>
1861 var view = (View)bindable;
1862 if (newValue != null)
1864 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole, new Tizen.NUI.PropertyValue((int)newValue));
1867 defaultValueCreator: (bindable) =>
1869 var view = (View)bindable;
1872 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityRole).Get(out temp);
1877 /// AccessibilityHighlightableProperty
1879 [EditorBrowsable(EditorBrowsableState.Never)]
1880 public static readonly BindableProperty AccessibilityHighlightableProperty = BindableProperty.Create(nameof(AccessibilityHighlightable), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1882 var view = (View)bindable;
1883 if (newValue != null)
1885 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable, new Tizen.NUI.PropertyValue((bool)newValue));
1888 defaultValueCreator: (bindable) =>
1890 var view = (View)bindable;
1892 Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityHighlightable).Get(out temp);
1897 /// ExcludeLayoutingProperty
1899 [EditorBrowsable(EditorBrowsableState.Never)]
1900 public static readonly BindableProperty ExcludeLayoutingProperty = BindableProperty.Create(nameof(ExcludeLayouting), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1902 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1903 if (newValue != null)
1905 instance.InternalExcludeLayouting = (bool)newValue;
1908 defaultValueCreator: (bindable) =>
1910 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1911 return instance.InternalExcludeLayouting;
1915 /// TooltipTextProperty
1917 [EditorBrowsable(EditorBrowsableState.Never)]
1918 public static readonly BindableProperty TooltipTextProperty = BindableProperty.Create(nameof(TooltipText), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
1920 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1921 if (newValue != null)
1923 instance.InternalTooltipText = (string)newValue;
1926 defaultValueCreator: (bindable) =>
1928 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1929 return instance.InternalTooltipText;
1933 /// PositionUsesAnchorPointProperty
1935 [EditorBrowsable(EditorBrowsableState.Never)]
1936 public static readonly BindableProperty PositionUsesAnchorPointProperty = BindableProperty.Create(nameof(PositionUsesAnchorPoint), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
1938 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1939 if (newValue != null)
1941 instance.InternalPositionUsesAnchorPoint = (bool)newValue;
1944 defaultValueCreator: (bindable) =>
1946 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1947 return instance.InternalPositionUsesAnchorPoint;
1951 /// AnchorPointProperty
1953 [EditorBrowsable(EditorBrowsableState.Never)]
1954 public static readonly BindableProperty AnchorPointProperty = BindableProperty.Create(nameof(AnchorPoint), typeof(Tizen.NUI.Position), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
1956 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1957 if (newValue != null)
1959 instance.InternalAnchorPoint = (Tizen.NUI.Position)newValue;
1962 defaultValueCreator: (bindable) =>
1964 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1965 return instance.InternalAnchorPoint;
1969 /// WidthSpecificationProperty
1971 [EditorBrowsable(EditorBrowsableState.Never)]
1972 public static readonly BindableProperty WidthSpecificationProperty = BindableProperty.Create(nameof(WidthSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
1974 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1975 if (newValue != null)
1977 instance.InternalWidthSpecification = (int)newValue;
1980 defaultValueCreator: (bindable) =>
1982 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1983 return instance.InternalWidthSpecification;
1987 /// HeightSpecificationProperty
1989 [EditorBrowsable(EditorBrowsableState.Never)]
1990 public static readonly BindableProperty HeightSpecificationProperty = BindableProperty.Create(nameof(HeightSpecification), typeof(int), typeof(View), 0, propertyChanged: (bindable, oldValue, newValue) =>
1992 var instance = (Tizen.NUI.BaseComponents.View)bindable;
1993 if (newValue != null)
1995 instance.InternalHeightSpecification = (int)newValue;
1998 defaultValueCreator: (bindable) =>
2000 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2001 return instance.InternalHeightSpecification;
2005 /// LayoutTransitionProperty
2007 [EditorBrowsable(EditorBrowsableState.Never)]
2008 public static readonly BindableProperty LayoutTransitionProperty = BindableProperty.Create(nameof(LayoutTransition), typeof(Tizen.NUI.LayoutTransition), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2010 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2011 if (newValue != null)
2013 instance.InternalLayoutTransition = (Tizen.NUI.LayoutTransition)newValue;
2016 defaultValueCreator: (bindable) =>
2018 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2019 return instance.InternalLayoutTransition;
2023 /// PaddingEXProperty
2025 [EditorBrowsable(EditorBrowsableState.Never)]
2026 public static readonly BindableProperty PaddingEXProperty = BindableProperty.Create(nameof(PaddingEX), typeof(Tizen.NUI.Extents), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2028 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2029 if (newValue != null)
2031 instance.InternalPaddingEX = (Tizen.NUI.Extents)newValue;
2034 defaultValueCreator: (bindable) =>
2036 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2037 return instance.InternalPaddingEX;
2043 [EditorBrowsable(EditorBrowsableState.Never)]
2044 public static readonly BindableProperty LayoutProperty = BindableProperty.Create(nameof(Layout), typeof(Tizen.NUI.LayoutItem), typeof(View), null, propertyChanged: (bindable, oldValue, newValue) =>
2046 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2047 if (newValue != null)
2049 instance.InternalLayout = (Tizen.NUI.LayoutItem)newValue;
2052 defaultValueCreator: (bindable) =>
2054 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2055 return instance.InternalLayout;
2059 /// BackgroundImageSynchronosLoadingProperty
2061 [EditorBrowsable(EditorBrowsableState.Never)]
2062 public static readonly BindableProperty BackgroundImageSynchronosLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronosLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2064 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2065 if (newValue != null)
2067 instance.InternalBackgroundImageSynchronosLoading = (bool)newValue;
2070 defaultValueCreator: (bindable) =>
2072 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2073 return instance.InternalBackgroundImageSynchronosLoading;
2077 /// BackgroundImageSynchronousLoadingProperty
2079 [EditorBrowsable(EditorBrowsableState.Never)]
2080 public static readonly BindableProperty BackgroundImageSynchronousLoadingProperty = BindableProperty.Create(nameof(BackgroundImageSynchronousLoading), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2082 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2083 if (newValue != null)
2085 instance.InternalBackgroundImageSynchronousLoading = (bool)newValue;
2088 defaultValueCreator: (bindable) =>
2090 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2091 return instance.InternalBackgroundImageSynchronousLoading;
2095 /// EnableControlStatePropagationProperty
2097 [EditorBrowsable(EditorBrowsableState.Never)]
2098 public static readonly BindableProperty EnableControlStatePropagationProperty = BindableProperty.Create(nameof(EnableControlStatePropagation), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2100 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2101 if (newValue != null)
2103 instance.InternalEnableControlStatePropagation = (bool)newValue;
2106 defaultValueCreator: (bindable) =>
2108 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2109 return instance.InternalEnableControlStatePropagation;
2113 /// GrabTouchAfterLeaveProperty
2115 [EditorBrowsable(EditorBrowsableState.Never)]
2116 public static readonly BindableProperty GrabTouchAfterLeaveProperty = BindableProperty.Create(nameof(GrabTouchAfterLeave), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
2118 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2119 if (newValue != null)
2121 instance.InternalGrabTouchAfterLeave = (bool)newValue;
2124 defaultValueCreator: (bindable) =>
2126 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2127 return instance.InternalGrabTouchAfterLeave;
2131 /// BlendEquationProperty
2133 [EditorBrowsable(EditorBrowsableState.Never)]
2134 public static readonly BindableProperty BlendEquationProperty = BindableProperty.Create(nameof(BlendEquation), typeof(BlendEquationType), typeof(View), default(BlendEquationType), propertyChanged: (bindable, oldValue, newValue) =>
2136 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2137 if (newValue != null)
2139 instance.InternalBlendEquation = (Tizen.NUI.BlendEquationType)newValue;
2142 defaultValueCreator: (bindable) =>
2144 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2145 return instance.InternalBlendEquation;
2149 /// TransitionOptionsProperty
2151 [EditorBrowsable(EditorBrowsableState.Never)]
2152 public static readonly BindableProperty TransitionOptionsProperty = BindableProperty.Create(nameof(TransitionOptions), typeof(TransitionOptions), typeof(View), default(TransitionOptions), propertyChanged: (bindable, oldValue, newValue) =>
2154 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2155 if (newValue != null)
2157 instance.InternalTransitionOptions = (Tizen.NUI.TransitionOptions)newValue;
2160 defaultValueCreator: (bindable) =>
2162 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2163 return instance.InternalTransitionOptions;
2167 /// AutomationIdProperty
2169 [EditorBrowsable(EditorBrowsableState.Never)]
2170 public static readonly BindableProperty AutomationIdProperty = BindableProperty.Create(nameof(AutomationId), typeof(string), typeof(View), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
2172 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2173 if (newValue != null)
2175 instance.InternalAutomationId = (string)newValue;
2178 defaultValueCreator: (bindable) =>
2180 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2181 return instance.InternalAutomationId;
2185 /// TouchAreaOffsetProperty
2187 [EditorBrowsable(EditorBrowsableState.Never)]
2188 public static readonly BindableProperty TouchAreaOffsetProperty = BindableProperty.Create(nameof(TouchAreaOffset), typeof(Offset), typeof(View), default(Offset), propertyChanged: (bindable, oldValue, newValue) =>
2190 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2191 if (newValue != null)
2193 instance.InternalTouchAreaOffset = (Tizen.NUI.Offset)newValue;
2196 defaultValueCreator: (bindable) =>
2198 var instance = (Tizen.NUI.BaseComponents.View)bindable;
2199 return instance.InternalTouchAreaOffset;
2202 private void SetBackgroundImage(string value)
2204 if (string.IsNullOrEmpty(value))
2207 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue());
2211 if (value.StartsWith("*Resource*"))
2213 string resource = Tizen.Applications.Application.Current.DirectoryInfo.Resource;
2214 value = value.Replace("*Resource*", resource);
2217 if (backgroundExtraData == null)
2219 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(value));
2220 BackgroundImageSynchronousLoading = backgroundImageSynchronousLoading;
2225 PropertyMap map = new PropertyMap();
2227 map.Add(ImageVisualProperty.URL, new PropertyValue(value))
2228 .Add(Visual.Property.CornerRadius, new PropertyValue(backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius)))
2229 .Add(Visual.Property.CornerRadiusPolicy, new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy)))
2230 .Add(Visual.Property.BorderlineWidth, new PropertyValue(backgroundExtraData.BorderlineWidth))
2231 .Add(Visual.Property.BorderlineColor, new PropertyValue(backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor)))
2232 .Add(Visual.Property.BorderlineOffset, new PropertyValue(backgroundExtraData.BorderlineOffset))
2233 .Add(ImageVisualProperty.SynchronousLoading, new PropertyValue(backgroundImageSynchronousLoading));
2235 if (backgroundExtraData.BackgroundImageBorder != null)
2237 map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.NPatch))
2238 .Add(NpatchImageVisualProperty.Border, new PropertyValue(backgroundExtraData.BackgroundImageBorder));
2242 map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image));
2245 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2248 private void SetBackgroundImageBorder(Rectangle value)
2250 bool isEmptyValue = Rectangle.IsNullOrZero(value);
2252 var backgroundImageBorder = isEmptyValue ? null : value;
2254 (backgroundExtraData ?? (backgroundExtraData = new BackgroundExtraData())).BackgroundImageBorder = backgroundImageBorder;
2261 PropertyMap map = Background;
2268 map[NpatchImageVisualProperty.Border] = new PropertyValue(backgroundImageBorder);
2272 map.Find(Visual.Property.Type)?.Get(out visualType);
2274 if (visualType == (int)Visual.Type.Image)
2276 map[Visual.Property.Type] = new PropertyValue((int)Visual.Type.NPatch);
2279 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2282 private void SetBackgroundColor(Color value)
2289 if (backgroundExtraData == null)
2291 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(value));
2295 PropertyMap map = new PropertyMap();
2297 map.Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Color))
2298 .Add(ColorVisualProperty.MixColor, new PropertyValue(value))
2299 .Add(Visual.Property.CornerRadius, new PropertyValue(new PropertyValue(backgroundExtraData.CornerRadius == null ? new PropertyValue() : new PropertyValue(backgroundExtraData.CornerRadius))))
2300 .Add(Visual.Property.CornerRadiusPolicy, new PropertyValue((int)(backgroundExtraData.CornerRadiusPolicy)))
2301 .Add(Visual.Property.BorderlineWidth, new PropertyValue(backgroundExtraData.BorderlineWidth))
2302 .Add(Visual.Property.BorderlineColor, new PropertyValue(backgroundExtraData.BorderlineColor == null ? new PropertyValue(Color.Black) : new PropertyValue(backgroundExtraData.BorderlineColor)))
2303 .Add(Visual.Property.BorderlineOffset, new PropertyValue(backgroundExtraData.BorderlineOffset));
2306 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.BACKGROUND, new PropertyValue(map));
2309 private void SetColor(Color value)
2316 Interop.ActorInternal.SetColor(SwigCPtr, value.SwigCPtr);
2317 if (NDalicPINVOKE.SWIGPendingException.Pending)
2318 throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2321 private void SetOpacity(float? value)
2328 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.OPACITY, new Tizen.NUI.PropertyValue((float)value));
2331 private void SetShadow(ShadowBase value)
2333 Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)SwigCPtr, View.Property.SHADOW, value == null ? new PropertyValue() : value.ToPropertyValue(this));