2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 using System.Collections.Generic;
19 using System.ComponentModel;
20 using Tizen.NUI.Binding;
22 namespace Tizen.NUI.BaseComponents
25 /// The base class for Children attributes in Components.
27 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public class ViewStyle : BindableObject
31 private string styleName;
32 private string backgroundImage;
33 private View.States? state;
34 private View.States? subState;
36 private int? alignSelf;
37 private Vector4 flexMargin;
38 private Vector2 cellIndex;
39 private float? rowSpan;
40 private float? columnSpan;
41 private HorizontalAlignmentType? cellHorizontalAlignment;
42 private VerticalAlignmentType? cellVerticalAlignment;
43 private View leftFocusableView;
44 private View rightFocusableView;
45 private View upFocusableView;
46 private View downFocusableView;
47 private bool? focusable;
48 private Size2D size2D;
49 private Position2D position2D;
50 private bool? positionUsesPivotPoint;
51 private int? siblingOrder;
52 private Position parentOrigin;
53 private Position pivotPoint;
54 private float? sizeWidth;
55 private float? sizeHeight;
56 private Position position;
57 private float? positionX;
58 private float? positionY;
59 private float? positionZ;
60 private Rotation orientation;
61 private Vector3 scale;
62 private float? scaleX;
63 private float? scaleY;
64 private float? scaleZ;
66 private bool? sensitive;
67 private bool? leaveRequired;
68 private bool? inheritOrientation;
69 private bool? inheritScale;
70 private DrawModeType? drawMode;
71 private Vector3 sizeModeFactor;
72 private ResizePolicyType? widthResizePolicy;
73 private ResizePolicyType? heightResizePolicy;
74 private SizeScalePolicyType? sizeScalePolicy;
75 private bool? widthForHeight;
76 private bool? heightForWidth;
77 private Extents padding;
78 private Size2D minimumSize;
79 private Size2D maximumSize;
80 private bool? inheritPosition;
81 private ClippingModeType? clippingMode;
83 private bool? inheritLayoutDirection;
84 private ViewLayoutDirectionType? layoutDirection;
85 private Extents margin;
86 private float? weight;
90 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
91 [EditorBrowsable(EditorBrowsableState.Never)]
92 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
94 var viewStyle = (ViewStyle)bindable;
95 viewStyle.styleName = (string)newValue;
97 defaultValueCreator: (bindable) =>
99 var viewStyle = (ViewStyle)bindable;
100 return viewStyle.styleName;
102 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
103 [EditorBrowsable(EditorBrowsableState.Never)]
104 public static readonly BindableProperty BackgroundImageSelectorProperty = BindableProperty.Create("BackgroundImageSelector", typeof(Selector<string>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
106 var viewStyle = (ViewStyle)bindable;
107 if (null == viewStyle.backgroundImageSelector) viewStyle.backgroundImageSelector = new Selector<string>();
108 viewStyle.backgroundImageSelector.Clone((Selector<string>)newValue);
110 defaultValueCreator: (bindable) =>
112 var viewStyle = (ViewStyle)bindable;
113 return viewStyle.backgroundImageSelector;
115 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
116 [EditorBrowsable(EditorBrowsableState.Never)]
117 public static readonly BindableProperty StateProperty = BindableProperty.Create(nameof(State), typeof(View.States?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
119 var viewStyle = (ViewStyle)bindable;
120 viewStyle.state = (View.States?)newValue;
122 defaultValueCreator: (bindable) =>
124 var viewStyle = (ViewStyle)bindable;
125 return viewStyle.state;
127 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
128 [EditorBrowsable(EditorBrowsableState.Never)]
129 public static readonly BindableProperty SubStateProperty = BindableProperty.Create(nameof(SubState), typeof(View.States?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
131 var viewStyle = (ViewStyle)bindable;
132 viewStyle.subState = (View.States?)newValue;
134 defaultValueCreator: (bindable) =>
136 var viewStyle = (ViewStyle)bindable;
137 return viewStyle.subState;
139 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
140 [EditorBrowsable(EditorBrowsableState.Never)]
141 public static readonly BindableProperty FlexProperty = BindableProperty.Create(nameof(Flex), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
143 var viewStyle = (ViewStyle)bindable;
144 viewStyle.flex = (float?)newValue;
146 defaultValueCreator: (bindable) =>
148 var viewStyle = (ViewStyle)bindable;
149 return viewStyle.flex;
151 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
152 [EditorBrowsable(EditorBrowsableState.Never)]
153 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create(nameof(AlignSelf), typeof(int?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
155 var viewStyle = (ViewStyle)bindable;
156 viewStyle.alignSelf = (int?)newValue;
158 defaultValueCreator: (bindable) =>
160 var viewStyle = (ViewStyle)bindable;
161 return viewStyle.alignSelf;
163 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
164 [EditorBrowsable(EditorBrowsableState.Never)]
165 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create(nameof(FlexMargin), typeof(Vector4), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
167 var viewStyle = (ViewStyle)bindable;
168 viewStyle.flexMargin = (Vector4)newValue;
170 defaultValueCreator: (bindable) =>
172 var viewStyle = (ViewStyle)bindable;
173 return viewStyle.flexMargin;
175 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
176 [EditorBrowsable(EditorBrowsableState.Never)]
177 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
179 var viewStyle = (ViewStyle)bindable;
180 viewStyle.cellIndex = (Vector2)newValue;
182 defaultValueCreator: (bindable) =>
184 var viewStyle = (ViewStyle)bindable;
185 return viewStyle.cellIndex;
187 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
188 [EditorBrowsable(EditorBrowsableState.Never)]
189 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create(nameof(RowSpan), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
191 var viewStyle = (ViewStyle)bindable;
192 viewStyle.rowSpan = (float?)newValue;
194 defaultValueCreator: (bindable) =>
196 var viewStyle = (ViewStyle)bindable;
197 return viewStyle.rowSpan;
199 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
200 [EditorBrowsable(EditorBrowsableState.Never)]
201 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create(nameof(ColumnSpan), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
203 var viewStyle = (ViewStyle)bindable;
204 viewStyle.columnSpan = (float?)newValue;
206 defaultValueCreator: (bindable) =>
208 var viewStyle = (ViewStyle)bindable;
209 return viewStyle.columnSpan;
211 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
212 [EditorBrowsable(EditorBrowsableState.Never)]
213 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create(nameof(CellHorizontalAlignment), typeof(HorizontalAlignmentType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
215 var viewStyle = (ViewStyle)bindable;
216 viewStyle.cellHorizontalAlignment = (HorizontalAlignmentType?)newValue;
218 defaultValueCreator: (bindable) =>
220 var viewStyle = (ViewStyle)bindable;
221 return viewStyle.cellHorizontalAlignment;
223 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
224 [EditorBrowsable(EditorBrowsableState.Never)]
225 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create(nameof(CellVerticalAlignment), typeof(VerticalAlignmentType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
227 var viewStyle = (ViewStyle)bindable;
228 viewStyle.cellVerticalAlignment = (VerticalAlignmentType?)newValue;
230 defaultValueCreator: (bindable) =>
232 var viewStyle = (ViewStyle)bindable;
233 return viewStyle.cellVerticalAlignment;
235 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
236 [EditorBrowsable(EditorBrowsableState.Never)]
237 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(LeftFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
239 var viewStyle = (ViewStyle)bindable;
240 viewStyle.leftFocusableView = (View)newValue;
242 defaultValueCreator: (bindable) =>
244 var viewStyle = (ViewStyle)bindable;
245 return viewStyle.leftFocusableView;
247 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
248 [EditorBrowsable(EditorBrowsableState.Never)]
249 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(RightFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
251 var viewStyle = (ViewStyle)bindable;
252 viewStyle.rightFocusableView = (View)newValue;
254 defaultValueCreator: (bindable) =>
256 var viewStyle = (ViewStyle)bindable;
257 return viewStyle.rightFocusableView;
259 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
260 [EditorBrowsable(EditorBrowsableState.Never)]
261 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(UpFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
263 var viewStyle = (ViewStyle)bindable;
264 viewStyle.upFocusableView = (View)newValue;
266 defaultValueCreator: (bindable) =>
268 var viewStyle = (ViewStyle)bindable;
269 return viewStyle.upFocusableView;
271 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
272 [EditorBrowsable(EditorBrowsableState.Never)]
273 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(DownFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
275 var viewStyle = (ViewStyle)bindable;
276 viewStyle.downFocusableView = (View)newValue;
278 defaultValueCreator: (bindable) =>
280 var viewStyle = (ViewStyle)bindable;
281 return viewStyle.downFocusableView;
283 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
284 [EditorBrowsable(EditorBrowsableState.Never)]
285 public static readonly BindableProperty FocusableProperty = BindableProperty.Create(nameof(Focusable), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
287 var viewStyle = (ViewStyle)bindable;
288 viewStyle.focusable = (bool?)newValue;
290 defaultValueCreator: (bindable) =>
292 var viewStyle = (ViewStyle)bindable;
293 return viewStyle.focusable;
295 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
296 [EditorBrowsable(EditorBrowsableState.Never)]
297 public static readonly BindableProperty Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
299 var viewStyle = (ViewStyle)bindable;
300 viewStyle.size2D = (Size2D)newValue;
302 defaultValueCreator: (bindable) =>
304 var viewStyle = (ViewStyle)bindable;
305 return viewStyle.size2D;
307 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
308 [EditorBrowsable(EditorBrowsableState.Never)]
309 public static readonly BindableProperty OpacitySelectorProperty = BindableProperty.Create("OpacitySelector", typeof(Selector<float?>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
311 var viewStyle = (ViewStyle)bindable;
312 if (null == viewStyle.opacitySelector) viewStyle.opacitySelector = new Selector<float?>();
313 viewStyle.opacitySelector.Clone((Selector<float?>)newValue);
315 defaultValueCreator: (bindable) =>
317 var controlStyle = (ViewStyle)bindable;
318 return controlStyle.opacitySelector;
320 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
321 [EditorBrowsable(EditorBrowsableState.Never)]
322 public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
324 var viewStyle = (ViewStyle)bindable;
325 viewStyle.position2D = (Position2D)newValue;
327 defaultValueCreator: (bindable) =>
329 var viewStyle = (ViewStyle)bindable;
330 return viewStyle.position2D;
332 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
333 [EditorBrowsable(EditorBrowsableState.Never)]
334 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
336 var viewStyle = (ViewStyle)bindable;
337 viewStyle.positionUsesPivotPoint = (bool?)newValue;
339 defaultValueCreator: (bindable) =>
341 var viewStyle = (ViewStyle)bindable;
342 return viewStyle.positionUsesPivotPoint;
344 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
345 [EditorBrowsable(EditorBrowsableState.Never)]
346 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
348 var viewStyle = (ViewStyle)bindable;
349 viewStyle.siblingOrder = (int?)newValue;
351 defaultValueCreator: (bindable) =>
353 var viewStyle = (ViewStyle)bindable;
354 return viewStyle.siblingOrder;
356 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
357 [EditorBrowsable(EditorBrowsableState.Never)]
358 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
360 var viewStyle = (ViewStyle)bindable;
361 viewStyle.parentOrigin = (Position)newValue;
363 defaultValueCreator: (bindable) =>
365 var viewStyle = (ViewStyle)bindable;
366 return viewStyle.parentOrigin;
368 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
369 [EditorBrowsable(EditorBrowsableState.Never)]
370 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
372 var viewStyle = (ViewStyle)bindable;
373 viewStyle.pivotPoint = (Position)newValue;
375 defaultValueCreator: (bindable) =>
377 var viewStyle = (ViewStyle)bindable;
378 return viewStyle.pivotPoint;
380 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
381 [EditorBrowsable(EditorBrowsableState.Never)]
382 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
384 var viewStyle = (ViewStyle)bindable;
385 viewStyle.sizeWidth = (float?)newValue;
387 defaultValueCreator: (bindable) =>
389 var viewStyle = (ViewStyle)bindable;
390 return viewStyle.sizeWidth;
392 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
393 [EditorBrowsable(EditorBrowsableState.Never)]
394 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
396 var viewStyle = (ViewStyle)bindable;
397 viewStyle.sizeHeight = (float?)newValue;
399 defaultValueCreator: (bindable) =>
401 var viewStyle = (ViewStyle)bindable;
402 return viewStyle.sizeHeight;
404 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
405 [EditorBrowsable(EditorBrowsableState.Never)]
406 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
408 var viewStyle = (ViewStyle)bindable;
409 viewStyle.position = (Position)newValue;
411 defaultValueCreator: (bindable) =>
413 var viewStyle = (ViewStyle)bindable;
414 return viewStyle.position;
416 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
417 [EditorBrowsable(EditorBrowsableState.Never)]
418 public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
420 var viewStyle = (ViewStyle)bindable;
421 viewStyle.positionX = (float?)newValue;
423 defaultValueCreator: (bindable) =>
425 var viewStyle = (ViewStyle)bindable;
426 return viewStyle.positionX;
428 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
429 [EditorBrowsable(EditorBrowsableState.Never)]
430 public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
432 var viewStyle = (ViewStyle)bindable;
433 viewStyle.positionY = (float?)newValue;
435 defaultValueCreator: (bindable) =>
437 var viewStyle = (ViewStyle)bindable;
438 return viewStyle.positionY;
440 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
441 [EditorBrowsable(EditorBrowsableState.Never)]
442 public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
444 var viewStyle = (ViewStyle)bindable;
445 viewStyle.positionZ = (float?)newValue;
447 defaultValueCreator: (bindable) =>
449 var viewStyle = (ViewStyle)bindable;
450 return viewStyle.positionZ;
452 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
453 [EditorBrowsable(EditorBrowsableState.Never)]
454 public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
456 var viewStyle = (ViewStyle)bindable;
457 viewStyle.orientation = (Rotation)newValue;
459 defaultValueCreator: (bindable) =>
461 var viewStyle = (ViewStyle)bindable;
462 return viewStyle.orientation;
464 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
465 [EditorBrowsable(EditorBrowsableState.Never)]
466 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
468 var viewStyle = (ViewStyle)bindable;
469 viewStyle.scale = (Vector3)newValue;
471 defaultValueCreator: (bindable) =>
473 var viewStyle = (ViewStyle)bindable;
474 return viewStyle.scale;
476 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
477 [EditorBrowsable(EditorBrowsableState.Never)]
478 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
480 var viewStyle = (ViewStyle)bindable;
481 viewStyle.scaleX = (float?)newValue;
483 defaultValueCreator: (bindable) =>
485 var viewStyle = (ViewStyle)bindable;
486 return viewStyle.scaleX;
488 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
489 [EditorBrowsable(EditorBrowsableState.Never)]
490 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
492 var viewStyle = (ViewStyle)bindable;
493 viewStyle.scaleY = (float?)newValue;
495 defaultValueCreator: (bindable) =>
497 var viewStyle = (ViewStyle)bindable;
498 return viewStyle.scaleY;
500 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
501 [EditorBrowsable(EditorBrowsableState.Never)]
502 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
504 var viewStyle = (ViewStyle)bindable;
505 viewStyle.scaleZ = (float?)newValue;
507 defaultValueCreator: (bindable) =>
509 var viewStyle = (ViewStyle)bindable;
510 return viewStyle.scaleZ;
512 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
513 [EditorBrowsable(EditorBrowsableState.Never)]
514 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
516 var viewStyle = (ViewStyle)bindable;
517 viewStyle.name = (string)newValue;
519 defaultValueCreator: (bindable) =>
521 var viewStyle = (ViewStyle)bindable;
522 return viewStyle.name;
524 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
525 [EditorBrowsable(EditorBrowsableState.Never)]
526 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
528 var viewStyle = (ViewStyle)bindable;
529 viewStyle.sensitive = (bool?)newValue;
531 defaultValueCreator: (bindable) =>
533 var viewStyle = (ViewStyle)bindable;
534 return viewStyle.sensitive;
536 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
537 [EditorBrowsable(EditorBrowsableState.Never)]
538 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
540 var viewStyle = (ViewStyle)bindable;
541 viewStyle.leaveRequired = (bool?)newValue;
543 defaultValueCreator: (bindable) =>
545 var viewStyle = (ViewStyle)bindable;
546 return viewStyle.leaveRequired;
548 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
549 [EditorBrowsable(EditorBrowsableState.Never)]
550 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
552 var viewStyle = (ViewStyle)bindable;
553 viewStyle.inheritOrientation = (bool?)newValue;
555 defaultValueCreator: (bindable) =>
557 var viewStyle = (ViewStyle)bindable;
558 return viewStyle.inheritOrientation;
560 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
561 [EditorBrowsable(EditorBrowsableState.Never)]
562 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
564 var viewStyle = (ViewStyle)bindable;
565 viewStyle.inheritScale = (bool?)newValue;
567 defaultValueCreator: (bindable) =>
569 var viewStyle = (ViewStyle)bindable;
570 return viewStyle.inheritScale;
572 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
573 [EditorBrowsable(EditorBrowsableState.Never)]
574 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
576 var viewStyle = (ViewStyle)bindable;
577 viewStyle.drawMode = (DrawModeType?)newValue;
579 defaultValueCreator: (bindable) =>
581 var viewStyle = (ViewStyle)bindable;
582 return viewStyle.drawMode;
584 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
585 [EditorBrowsable(EditorBrowsableState.Never)]
586 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
588 var viewStyle = (ViewStyle)bindable;
589 viewStyle.sizeModeFactor = (Vector3)newValue;
591 defaultValueCreator: (bindable) =>
593 var viewStyle = (ViewStyle)bindable;
594 return viewStyle.sizeModeFactor;
596 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
597 [EditorBrowsable(EditorBrowsableState.Never)]
598 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
600 var viewStyle = (ViewStyle)bindable;
601 viewStyle.widthResizePolicy = (ResizePolicyType?)newValue;
603 defaultValueCreator: (bindable) =>
605 var viewStyle = (ViewStyle)bindable;
606 return viewStyle.widthResizePolicy;
608 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
609 [EditorBrowsable(EditorBrowsableState.Never)]
610 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
612 var viewStyle = (ViewStyle)bindable;
613 viewStyle.heightResizePolicy = (ResizePolicyType?)newValue;
615 defaultValueCreator: (bindable) =>
617 var viewStyle = (ViewStyle)bindable;
618 return viewStyle.heightResizePolicy;
620 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
621 [EditorBrowsable(EditorBrowsableState.Never)]
622 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
624 var viewStyle = (ViewStyle)bindable;
625 viewStyle.sizeScalePolicy = (SizeScalePolicyType?)newValue;
627 defaultValueCreator: (bindable) =>
629 var viewStyle = (ViewStyle)bindable;
630 return viewStyle.sizeScalePolicy;
632 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
633 [EditorBrowsable(EditorBrowsableState.Never)]
634 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
636 var viewStyle = (ViewStyle)bindable;
637 viewStyle.widthForHeight = (bool?)newValue;
639 defaultValueCreator: (bindable) =>
641 var viewStyle = (ViewStyle)bindable;
642 return viewStyle.widthForHeight;
644 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
645 [EditorBrowsable(EditorBrowsableState.Never)]
646 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
648 var viewStyle = (ViewStyle)bindable;
649 viewStyle.heightForWidth = (bool?)newValue;
651 defaultValueCreator: (bindable) =>
653 var viewStyle = (ViewStyle)bindable;
654 return viewStyle.heightForWidth;
656 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
657 [EditorBrowsable(EditorBrowsableState.Never)]
658 public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
660 var viewStyle = (ViewStyle)bindable;
661 viewStyle.padding = (Extents)newValue;
663 defaultValueCreator: (bindable) =>
665 var viewStyle = (ViewStyle)bindable;
666 return viewStyle.padding;
668 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
669 [EditorBrowsable(EditorBrowsableState.Never)]
670 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
672 var viewStyle = (ViewStyle)bindable;
673 viewStyle.minimumSize = (Size2D)newValue;
675 defaultValueCreator: (bindable) =>
677 var viewStyle = (ViewStyle)bindable;
678 return viewStyle.minimumSize;
680 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
681 [EditorBrowsable(EditorBrowsableState.Never)]
682 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
684 var viewStyle = (ViewStyle)bindable;
685 viewStyle.maximumSize = (Size2D)newValue;
687 defaultValueCreator: (bindable) =>
689 var viewStyle = (ViewStyle)bindable;
690 return viewStyle.maximumSize;
692 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
693 [EditorBrowsable(EditorBrowsableState.Never)]
694 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
696 var viewStyle = (ViewStyle)bindable;
697 viewStyle.inheritPosition = (bool?)newValue;
699 defaultValueCreator: (bindable) =>
701 var viewStyle = (ViewStyle)bindable;
702 return viewStyle.inheritPosition;
704 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
705 [EditorBrowsable(EditorBrowsableState.Never)]
706 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
708 var viewStyle = (ViewStyle)bindable;
709 viewStyle.clippingMode = (ClippingModeType?)newValue;
711 defaultValueCreator: (bindable) =>
713 var viewStyle = (ViewStyle)bindable;
714 return viewStyle.clippingMode;
716 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
717 [EditorBrowsable(EditorBrowsableState.Never)]
718 public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
720 var viewStyle = (ViewStyle)bindable;
721 viewStyle.size = (Size)newValue;
723 defaultValueCreator: (bindable) =>
725 var viewStyle = (ViewStyle)bindable;
726 return viewStyle.size;
728 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
729 [EditorBrowsable(EditorBrowsableState.Never)]
730 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
732 var viewStyle = (ViewStyle)bindable;
733 viewStyle.inheritLayoutDirection = (bool?)newValue;
735 defaultValueCreator: (bindable) =>
737 var viewStyle = (ViewStyle)bindable;
738 return viewStyle.inheritLayoutDirection;
740 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
741 [EditorBrowsable(EditorBrowsableState.Never)]
742 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
744 var viewStyle = (ViewStyle)bindable;
745 viewStyle.layoutDirection = (ViewLayoutDirectionType?)newValue;
747 defaultValueCreator: (bindable) =>
749 var viewStyle = (ViewStyle)bindable;
750 return viewStyle.layoutDirection;
752 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
753 [EditorBrowsable(EditorBrowsableState.Never)]
754 public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
756 var viewStyle = (ViewStyle)bindable;
757 viewStyle.margin = (Extents)newValue;
759 defaultValueCreator: (bindable) =>
761 var viewStyle = (ViewStyle)bindable;
762 return viewStyle.margin;
764 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
765 [EditorBrowsable(EditorBrowsableState.Never)]
766 public static readonly BindableProperty WeightProperty = BindableProperty.Create(nameof(Weight), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
768 var viewStyle = (ViewStyle)bindable;
769 viewStyle.weight = (float?)newValue;
771 defaultValueCreator: (bindable) =>
773 var viewStyle = (ViewStyle)bindable;
774 return viewStyle.weight;
776 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
777 [EditorBrowsable(EditorBrowsableState.Never)]
778 public static readonly BindableProperty BackgroundColorSelectorProperty = BindableProperty.Create("BackgroundColorSelector", typeof(Selector<Color>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
780 var viewStyle = (ViewStyle)bindable;
781 if (null == viewStyle.backgroundColorSelector) viewStyle.backgroundColorSelector = new Selector<Color>();
782 viewStyle.backgroundColorSelector.Clone((Selector<Color>)newValue);
784 defaultValueCreator: (bindable) =>
786 var viewStyle = (ViewStyle)bindable;
787 return viewStyle.backgroundColorSelector;
789 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
790 [EditorBrowsable(EditorBrowsableState.Never)]
791 public static readonly BindableProperty BackgroundImageBorderSelectorProperty = BindableProperty.Create("BackgroundImageBorderSelector", typeof(Selector<Rectangle>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
793 var viewStyle = (ViewStyle)bindable;
794 if (null == viewStyle.backgroundImageBorderSelector) viewStyle.backgroundImageBorderSelector = new Selector<Rectangle>();
796 viewStyle.backgroundImageBorderSelector.Clone(newValue == null ? new Rectangle() : (Selector<Rectangle>)newValue);
798 defaultValueCreator: (bindable) =>
800 var viewStyle = (ViewStyle)bindable;
801 return viewStyle.backgroundImageBorderSelector;
804 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
805 [EditorBrowsable(EditorBrowsableState.Never)]
810 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
811 [EditorBrowsable(EditorBrowsableState.Never)]
812 public ViewStyle(ViewStyle viewAttributes)
814 if (null != viewAttributes)
816 this.CopyFrom(viewAttributes);
820 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
821 [EditorBrowsable(EditorBrowsableState.Never)]
822 public string StyleName
824 get => (string)GetValue(StyleNameProperty);
825 set => SetValue(StyleNameProperty, value);
828 private Selector<string> backgroundImageSelector;
829 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
830 [EditorBrowsable(EditorBrowsableState.Never)]
831 public Selector<string> BackgroundImage
835 Selector<string> image = (Selector<string>)GetValue(BackgroundImageSelectorProperty);
836 return (null != image) ? image : backgroundImageSelector = new Selector<string>();
838 set => SetValue(BackgroundImageSelectorProperty, value);
841 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
842 [EditorBrowsable(EditorBrowsableState.Never)]
843 public View.States? State
845 get => (View.States?)GetValue(StateProperty);
846 set => SetValue(StateProperty, value);
849 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
850 [EditorBrowsable(EditorBrowsableState.Never)]
851 public View.States? SubState
853 get => (View.States?)GetValue(SubStateProperty);
854 set => SetValue(SubStateProperty, value);
857 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
858 [EditorBrowsable(EditorBrowsableState.Never)]
861 get => (float?)GetValue(FlexProperty);
862 set => SetValue(FlexProperty, value);
865 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
866 [EditorBrowsable(EditorBrowsableState.Never)]
867 public int? AlignSelf
869 get => (int?)GetValue(AlignSelfProperty);
870 set => SetValue(AlignSelfProperty, value);
873 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
874 [EditorBrowsable(EditorBrowsableState.Never)]
875 public Vector4 FlexMargin
877 get => (Vector4)GetValue(FlexMarginProperty);
878 set => SetValue(FlexMarginProperty, value);
881 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
882 [EditorBrowsable(EditorBrowsableState.Never)]
883 public Vector2 CellIndex
885 get => (Vector2)GetValue(CellIndexProperty);
886 set => SetValue(CellIndexProperty, value);
889 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
890 [EditorBrowsable(EditorBrowsableState.Never)]
891 public float? RowSpan
893 get => (float?)GetValue(RowSpanProperty);
894 set => SetValue(RowSpanProperty, value);
897 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
898 [EditorBrowsable(EditorBrowsableState.Never)]
899 public float? ColumnSpan
901 get => (float?)GetValue(ColumnSpanProperty);
902 set => SetValue(ColumnSpanProperty, value);
905 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
906 [EditorBrowsable(EditorBrowsableState.Never)]
907 public HorizontalAlignmentType? CellHorizontalAlignment
909 get => (HorizontalAlignmentType?)GetValue(CellHorizontalAlignmentProperty);
910 set => SetValue(CellHorizontalAlignmentProperty, value);
913 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
914 [EditorBrowsable(EditorBrowsableState.Never)]
915 public VerticalAlignmentType? CellVerticalAlignment
917 get => (VerticalAlignmentType?)GetValue(CellVerticalAlignmentProperty);
918 set => SetValue(CellVerticalAlignmentProperty, value);
921 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
922 [EditorBrowsable(EditorBrowsableState.Never)]
923 public View LeftFocusableView
925 get => (View)GetValue(LeftFocusableViewProperty);
926 set => SetValue(LeftFocusableViewProperty, value);
929 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
930 [EditorBrowsable(EditorBrowsableState.Never)]
931 public View RightFocusableView
933 get => (View)GetValue(RightFocusableViewProperty);
934 set => SetValue(RightFocusableViewProperty, value);
937 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
938 [EditorBrowsable(EditorBrowsableState.Never)]
939 public View UpFocusableView
941 get => (View)GetValue(UpFocusableViewProperty);
942 set => SetValue(UpFocusableViewProperty, value);
945 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
946 [EditorBrowsable(EditorBrowsableState.Never)]
947 public View DownFocusableView
949 get => (View)GetValue(DownFocusableViewProperty);
950 set => SetValue(DownFocusableViewProperty, value);
953 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
954 [EditorBrowsable(EditorBrowsableState.Never)]
955 public bool? Focusable
957 get => (bool?)GetValue(FocusableProperty);
958 set => SetValue(FocusableProperty, value);
961 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
962 [EditorBrowsable(EditorBrowsableState.Never)]
965 get => (Size2D)GetValue(Size2DProperty);
966 set => SetValue(Size2DProperty, value);
969 private Selector<float?> opacitySelector;
970 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
971 [EditorBrowsable(EditorBrowsableState.Never)]
972 public Selector<float?> Opacity
976 Selector<float?> opacity = (Selector<float?>)GetValue(OpacitySelectorProperty);
977 return (null != opacity) ? opacity : opacitySelector = new Selector<float?>();
979 set => SetValue(OpacitySelectorProperty, value);
982 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
983 [EditorBrowsable(EditorBrowsableState.Never)]
984 public Position2D Position2D
986 get => (Position2D)GetValue(Position2DProperty);
987 set => SetValue(Position2DProperty, value);
990 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
991 [EditorBrowsable(EditorBrowsableState.Never)]
992 public bool? PositionUsesPivotPoint
994 get => (bool?)GetValue(PositionUsesPivotPointProperty);
995 set => SetValue(PositionUsesPivotPointProperty, value);
998 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
999 [EditorBrowsable(EditorBrowsableState.Never)]
1000 public int? SiblingOrder
1002 get => (int?)GetValue(SiblingOrderProperty);
1003 set => SetValue(SiblingOrderProperty, value);
1006 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1007 [EditorBrowsable(EditorBrowsableState.Never)]
1008 public Position ParentOrigin
1010 get => (Position)GetValue(ParentOriginProperty);
1011 set => SetValue(ParentOriginProperty, value);
1014 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1015 [EditorBrowsable(EditorBrowsableState.Never)]
1016 public Position PivotPoint
1018 get => (Position)GetValue(PivotPointProperty);
1019 set => SetValue(PivotPointProperty, value);
1022 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1023 [EditorBrowsable(EditorBrowsableState.Never)]
1024 public float? SizeWidth
1026 get => (float?)GetValue(SizeWidthProperty);
1027 set => SetValue(SizeWidthProperty, value);
1030 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1031 [EditorBrowsable(EditorBrowsableState.Never)]
1032 public float? SizeHeight
1034 get => (float?)GetValue(SizeHeightProperty);
1035 set => SetValue(SizeHeightProperty, value);
1038 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1039 [EditorBrowsable(EditorBrowsableState.Never)]
1040 public Position Position
1042 get => (Position)GetValue(PositionProperty);
1043 set => SetValue(PositionProperty, value);
1046 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1047 [EditorBrowsable(EditorBrowsableState.Never)]
1048 public float? PositionX
1050 get => (float?)GetValue(PositionXProperty);
1051 set => SetValue(PositionXProperty, value);
1054 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1055 [EditorBrowsable(EditorBrowsableState.Never)]
1056 public float? PositionY
1058 get => (float?)GetValue(PositionYProperty);
1059 set => SetValue(PositionYProperty, value);
1062 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1063 [EditorBrowsable(EditorBrowsableState.Never)]
1064 public float? PositionZ
1066 get => (float?)GetValue(PositionZProperty);
1067 set => SetValue(PositionZProperty, value);
1070 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1071 [EditorBrowsable(EditorBrowsableState.Never)]
1072 public Rotation Orientation
1074 get => (Rotation)GetValue(OrientationProperty);
1075 set => SetValue(OrientationProperty, value);
1078 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1079 [EditorBrowsable(EditorBrowsableState.Never)]
1080 public Vector3 Scale
1082 get => (Vector3)GetValue(ScaleProperty);
1083 set => SetValue(ScaleProperty, value);
1086 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1087 [EditorBrowsable(EditorBrowsableState.Never)]
1088 public float? ScaleX
1090 get => (float?)GetValue(ScaleXProperty);
1091 set => SetValue(ScaleXProperty, value);
1094 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1095 [EditorBrowsable(EditorBrowsableState.Never)]
1096 public float? ScaleY
1098 get => (float?)GetValue(ScaleYProperty);
1099 set => SetValue(ScaleYProperty, value);
1102 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1103 [EditorBrowsable(EditorBrowsableState.Never)]
1104 public float? ScaleZ
1106 get => (float?)GetValue(ScaleZProperty);
1107 set => SetValue(ScaleZProperty, value);
1110 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1111 [EditorBrowsable(EditorBrowsableState.Never)]
1114 get => (string)GetValue(NameProperty);
1115 set => SetValue(NameProperty, value);
1118 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1119 [EditorBrowsable(EditorBrowsableState.Never)]
1120 public bool? Sensitive
1122 get => (bool?)GetValue(SensitiveProperty);
1123 set => SetValue(SensitiveProperty, value);
1126 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1127 [EditorBrowsable(EditorBrowsableState.Never)]
1128 public bool? LeaveRequired
1130 get => (bool?)GetValue(LeaveRequiredProperty);
1131 set => SetValue(LeaveRequiredProperty, value);
1134 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1135 [EditorBrowsable(EditorBrowsableState.Never)]
1136 public bool? InheritOrientation
1138 get => (bool?)GetValue(InheritOrientationProperty);
1139 set => SetValue(InheritOrientationProperty, value);
1142 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1143 [EditorBrowsable(EditorBrowsableState.Never)]
1144 public bool? InheritScale
1146 get => (bool?)GetValue(InheritScaleProperty);
1147 set => SetValue(InheritScaleProperty, value);
1150 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1151 [EditorBrowsable(EditorBrowsableState.Never)]
1152 public DrawModeType? DrawMode
1154 get => (DrawModeType?)GetValue(DrawModeProperty);
1155 set => SetValue(DrawModeProperty, value);
1158 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1159 [EditorBrowsable(EditorBrowsableState.Never)]
1160 public Vector3 SizeModeFactor
1162 get => (Vector3)GetValue(SizeModeFactorProperty);
1163 set => SetValue(SizeModeFactorProperty, value);
1166 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1167 [EditorBrowsable(EditorBrowsableState.Never)]
1168 public ResizePolicyType? WidthResizePolicy
1170 get => (ResizePolicyType?)GetValue(WidthResizePolicyProperty);
1171 set => SetValue(WidthResizePolicyProperty, value);
1174 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1175 [EditorBrowsable(EditorBrowsableState.Never)]
1176 public ResizePolicyType? HeightResizePolicy
1178 get => (ResizePolicyType?)GetValue(HeightResizePolicyProperty);
1179 set => SetValue(HeightResizePolicyProperty, value);
1182 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1183 [EditorBrowsable(EditorBrowsableState.Never)]
1184 public SizeScalePolicyType? SizeScalePolicy
1186 get => (SizeScalePolicyType?)GetValue(SizeScalePolicyProperty);
1187 set => SetValue(SizeScalePolicyProperty, value);
1190 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1191 [EditorBrowsable(EditorBrowsableState.Never)]
1192 public bool? WidthForHeight
1194 get => (bool?)GetValue(WidthForHeightProperty);
1195 set => SetValue(WidthForHeightProperty, value);
1198 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1199 [EditorBrowsable(EditorBrowsableState.Never)]
1200 public bool? HeightForWidth
1202 get => (bool?)GetValue(HeightForWidthProperty);
1203 set => SetValue(HeightForWidthProperty, value);
1206 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1207 [EditorBrowsable(EditorBrowsableState.Never)]
1208 public Extents Padding
1212 Extents tmp = (Extents)GetValue(PaddingProperty);
1213 return (null != tmp) ? tmp : padding = new Extents((ushort start, ushort end, ushort top, ushort bottom) => { Padding = new Extents(start, end, top, bottom); }, 0, 0, 0, 0);
1215 set => SetValue(PaddingProperty, value);
1218 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1219 [EditorBrowsable(EditorBrowsableState.Never)]
1220 public Size2D MinimumSize
1222 get => (Size2D)GetValue(MinimumSizeProperty);
1223 set => SetValue(MinimumSizeProperty, value);
1226 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1227 [EditorBrowsable(EditorBrowsableState.Never)]
1228 public Size2D MaximumSize
1230 get => (Size2D)GetValue(MaximumSizeProperty);
1231 set => SetValue(MaximumSizeProperty, value);
1234 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1235 [EditorBrowsable(EditorBrowsableState.Never)]
1236 public bool? InheritPosition
1238 get => (bool?)GetValue(InheritPositionProperty);
1239 set => SetValue(InheritPositionProperty, value);
1242 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1243 [EditorBrowsable(EditorBrowsableState.Never)]
1244 public ClippingModeType? ClippingMode
1246 get => (ClippingModeType?)GetValue(ClippingModeProperty);
1247 set => SetValue(ClippingModeProperty, value);
1250 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1251 [EditorBrowsable(EditorBrowsableState.Never)]
1256 Size tmp = (Size)GetValue(SizeProperty);
1257 return (null != tmp) ? tmp : size = new Size((float width, float height, float depth) => { Size = new Size(width, height, depth); }, 0, 0, 0);
1259 set => SetValue(SizeProperty, value);
1262 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1263 [EditorBrowsable(EditorBrowsableState.Never)]
1264 public bool? InheritLayoutDirection
1266 get => (bool?)GetValue(InheritLayoutDirectionProperty);
1267 set => SetValue(InheritLayoutDirectionProperty, value);
1270 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1271 [EditorBrowsable(EditorBrowsableState.Never)]
1272 public ViewLayoutDirectionType? LayoutDirection
1274 get => (ViewLayoutDirectionType?)GetValue(LayoutDirectionProperty);
1275 set => SetValue(LayoutDirectionProperty, value);
1278 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1279 [EditorBrowsable(EditorBrowsableState.Never)]
1280 public Extents Margin
1284 Extents tmp = (Extents)GetValue(MarginProperty);
1285 return (null != tmp) ? tmp : margin = new Extents((ushort start, ushort end, ushort top, ushort bottom) => { Margin = new Extents(start, end, top, bottom); }, 0, 0, 0, 0);
1287 set => SetValue(MarginProperty, value);
1290 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1291 [EditorBrowsable(EditorBrowsableState.Never)]
1292 public float? Weight
1294 get => (float?)GetValue(WeightProperty);
1295 set => SetValue(WeightProperty, value);
1298 private Selector<Color> backgroundColorSelector;
1299 /// <summary> View BackgroundColor </summary>
1300 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1301 [EditorBrowsable(EditorBrowsableState.Never)]
1302 public Selector<Color> BackgroundColor
1306 Selector<Color> color = (Selector<Color>)GetValue(BackgroundColorSelectorProperty);
1307 return (null != color) ? color : backgroundColorSelector = new Selector<Color>();
1309 set => SetValue(BackgroundColorSelectorProperty, value);
1311 private Selector<Rectangle> backgroundImageBorderSelector;
1312 /// <summary>View BackgroundBorder</summary>
1313 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1314 [EditorBrowsable(EditorBrowsableState.Never)]
1315 public Selector<Rectangle> BackgroundImageBorder
1319 Selector<Rectangle> border = (Selector<Rectangle>)GetValue(BackgroundImageBorderSelectorProperty);
1320 return (null != border) ? border : backgroundImageBorderSelector = new Selector<Rectangle>();
1322 set => SetValue(BackgroundImageBorderSelectorProperty, value);