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;
88 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
89 [EditorBrowsable(EditorBrowsableState.Never)]
90 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create("StyleName", typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
92 var viewStyle = (ViewStyle)bindable;
93 viewStyle.styleName = (string)newValue;
95 defaultValueCreator: (bindable) =>
97 var viewStyle = (ViewStyle)bindable;
98 return viewStyle.styleName;
100 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
101 [EditorBrowsable(EditorBrowsableState.Never)]
102 public static readonly BindableProperty BackgroundImageSelectorProperty = BindableProperty.Create("BackgroundImageSelector", typeof(Selector<string>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
104 var viewStyle = (ViewStyle)bindable;
105 if (null == viewStyle.backgroundImageSelector) viewStyle.backgroundImageSelector = new Selector<string>();
106 viewStyle.backgroundImageSelector.Clone((Selector<string>)newValue);
108 defaultValueCreator: (bindable) =>
110 var viewStyle = (ViewStyle)bindable;
111 return viewStyle.backgroundImageSelector;
113 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
114 [EditorBrowsable(EditorBrowsableState.Never)]
115 public static readonly BindableProperty StateProperty = BindableProperty.Create("State", typeof(View.States?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
117 var viewStyle = (ViewStyle)bindable;
118 viewStyle.state = (View.States?)newValue;
120 defaultValueCreator: (bindable) =>
122 var viewStyle = (ViewStyle)bindable;
123 return viewStyle.state;
125 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
126 [EditorBrowsable(EditorBrowsableState.Never)]
127 public static readonly BindableProperty SubStateProperty = BindableProperty.Create("SubState", typeof(View.States?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
129 var viewStyle = (ViewStyle)bindable;
130 viewStyle.subState = (View.States?)newValue;
132 defaultValueCreator: (bindable) =>
134 var viewStyle = (ViewStyle)bindable;
135 return viewStyle.subState;
137 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
138 [EditorBrowsable(EditorBrowsableState.Never)]
139 public static readonly BindableProperty FlexProperty = BindableProperty.Create("Flex", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
141 var viewStyle = (ViewStyle)bindable;
142 viewStyle.flex = (float?)newValue;
144 defaultValueCreator: (bindable) =>
146 var viewStyle = (ViewStyle)bindable;
147 return viewStyle.flex;
149 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
150 [EditorBrowsable(EditorBrowsableState.Never)]
151 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create("AlignSelf", typeof(int?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
153 var viewStyle = (ViewStyle)bindable;
154 viewStyle.alignSelf = (int?)newValue;
156 defaultValueCreator: (bindable) =>
158 var viewStyle = (ViewStyle)bindable;
159 return viewStyle.alignSelf;
161 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
162 [EditorBrowsable(EditorBrowsableState.Never)]
163 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create("FlexMargin", typeof(Vector4), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
165 var viewStyle = (ViewStyle)bindable;
166 viewStyle.flexMargin = (Vector4)newValue;
168 defaultValueCreator: (bindable) =>
170 var viewStyle = (ViewStyle)bindable;
171 return viewStyle.flexMargin;
173 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
174 [EditorBrowsable(EditorBrowsableState.Never)]
175 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create("CellIndex", typeof(Vector2), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
177 var viewStyle = (ViewStyle)bindable;
178 viewStyle.cellIndex = (Vector2)newValue;
180 defaultValueCreator: (bindable) =>
182 var viewStyle = (ViewStyle)bindable;
183 return viewStyle.cellIndex;
185 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
186 [EditorBrowsable(EditorBrowsableState.Never)]
187 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create("RowSpan", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
189 var viewStyle = (ViewStyle)bindable;
190 viewStyle.rowSpan = (float?)newValue;
192 defaultValueCreator: (bindable) =>
194 var viewStyle = (ViewStyle)bindable;
195 return viewStyle.rowSpan;
197 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
198 [EditorBrowsable(EditorBrowsableState.Never)]
199 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create("ColumnSpan", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
201 var viewStyle = (ViewStyle)bindable;
202 viewStyle.columnSpan = (float?)newValue;
204 defaultValueCreator: (bindable) =>
206 var viewStyle = (ViewStyle)bindable;
207 return viewStyle.columnSpan;
209 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
210 [EditorBrowsable(EditorBrowsableState.Never)]
211 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create("CellHorizontalAlignment", typeof(HorizontalAlignmentType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
213 var viewStyle = (ViewStyle)bindable;
214 viewStyle.cellHorizontalAlignment = (HorizontalAlignmentType?)newValue;
216 defaultValueCreator: (bindable) =>
218 var viewStyle = (ViewStyle)bindable;
219 return viewStyle.cellHorizontalAlignment;
221 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
222 [EditorBrowsable(EditorBrowsableState.Never)]
223 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create("CellVerticalAlignment", typeof(VerticalAlignmentType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
225 var viewStyle = (ViewStyle)bindable;
226 viewStyle.cellVerticalAlignment = (VerticalAlignmentType?)newValue;
228 defaultValueCreator: (bindable) =>
230 var viewStyle = (ViewStyle)bindable;
231 return viewStyle.cellVerticalAlignment;
233 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
234 [EditorBrowsable(EditorBrowsableState.Never)]
235 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create("LeftFocusableView", typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
237 var viewStyle = (ViewStyle)bindable;
238 viewStyle.leftFocusableView = (View)newValue;
240 defaultValueCreator: (bindable) =>
242 var viewStyle = (ViewStyle)bindable;
243 return viewStyle.leftFocusableView;
245 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
246 [EditorBrowsable(EditorBrowsableState.Never)]
247 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create("RightFocusableView", typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
249 var viewStyle = (ViewStyle)bindable;
250 viewStyle.rightFocusableView = (View)newValue;
252 defaultValueCreator: (bindable) =>
254 var viewStyle = (ViewStyle)bindable;
255 return viewStyle.rightFocusableView;
257 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
258 [EditorBrowsable(EditorBrowsableState.Never)]
259 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create("UpFocusableView", typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
261 var viewStyle = (ViewStyle)bindable;
262 viewStyle.upFocusableView = (View)newValue;
264 defaultValueCreator: (bindable) =>
266 var viewStyle = (ViewStyle)bindable;
267 return viewStyle.upFocusableView;
269 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
270 [EditorBrowsable(EditorBrowsableState.Never)]
271 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create("DownFocusableView", typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
273 var viewStyle = (ViewStyle)bindable;
274 viewStyle.downFocusableView = (View)newValue;
276 defaultValueCreator: (bindable) =>
278 var viewStyle = (ViewStyle)bindable;
279 return viewStyle.downFocusableView;
281 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
282 [EditorBrowsable(EditorBrowsableState.Never)]
283 public static readonly BindableProperty FocusableProperty = BindableProperty.Create("Focusable", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
285 var viewStyle = (ViewStyle)bindable;
286 viewStyle.focusable = (bool?)newValue;
288 defaultValueCreator: (bindable) =>
290 var viewStyle = (ViewStyle)bindable;
291 return viewStyle.focusable;
293 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
294 [EditorBrowsable(EditorBrowsableState.Never)]
295 public static readonly BindableProperty Size2DProperty = BindableProperty.Create("Size2D", typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
297 var viewStyle = (ViewStyle)bindable;
298 viewStyle.size2D = (Size2D)newValue;
300 defaultValueCreator: (bindable) =>
302 var viewStyle = (ViewStyle)bindable;
303 return viewStyle.size2D;
305 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
306 [EditorBrowsable(EditorBrowsableState.Never)]
307 public static readonly BindableProperty OpacitySelectorProperty = BindableProperty.Create("OpacitySelector", typeof(Selector<float?>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
309 var viewStyle = (ViewStyle)bindable;
310 if (null == viewStyle.opacitySelector) viewStyle.opacitySelector = new Selector<float?>();
311 viewStyle.opacitySelector.Clone((Selector<float?>)newValue);
313 defaultValueCreator: (bindable) =>
315 var controlStyle = (ViewStyle)bindable;
316 return controlStyle.opacitySelector;
318 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
319 [EditorBrowsable(EditorBrowsableState.Never)]
320 public static readonly BindableProperty Position2DProperty = BindableProperty.Create("Position2D", typeof(Position2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
322 var viewStyle = (ViewStyle)bindable;
323 viewStyle.position2D = (Position2D)newValue;
325 defaultValueCreator: (bindable) =>
327 var viewStyle = (ViewStyle)bindable;
328 return viewStyle.position2D;
330 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
331 [EditorBrowsable(EditorBrowsableState.Never)]
332 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create("PositionUsesPivotPoint", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
334 var viewStyle = (ViewStyle)bindable;
335 viewStyle.positionUsesPivotPoint = (bool?)newValue;
337 defaultValueCreator: (bindable) =>
339 var viewStyle = (ViewStyle)bindable;
340 return viewStyle.positionUsesPivotPoint;
342 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
343 [EditorBrowsable(EditorBrowsableState.Never)]
344 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create("SiblingOrder", typeof(int?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
346 var viewStyle = (ViewStyle)bindable;
347 viewStyle.siblingOrder = (int?)newValue;
349 defaultValueCreator: (bindable) =>
351 var viewStyle = (ViewStyle)bindable;
352 return viewStyle.siblingOrder;
354 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
355 [EditorBrowsable(EditorBrowsableState.Never)]
356 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create("ParentOrigin", typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
358 var viewStyle = (ViewStyle)bindable;
359 viewStyle.parentOrigin = (Position)newValue;
361 defaultValueCreator: (bindable) =>
363 var viewStyle = (ViewStyle)bindable;
364 return viewStyle.parentOrigin;
366 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
367 [EditorBrowsable(EditorBrowsableState.Never)]
368 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create("PivotPoint", typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
370 var viewStyle = (ViewStyle)bindable;
371 viewStyle.pivotPoint = (Position)newValue;
373 defaultValueCreator: (bindable) =>
375 var viewStyle = (ViewStyle)bindable;
376 return viewStyle.pivotPoint;
378 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
379 [EditorBrowsable(EditorBrowsableState.Never)]
380 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create("SizeWidth", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
382 var viewStyle = (ViewStyle)bindable;
383 viewStyle.sizeWidth = (float?)newValue;
385 defaultValueCreator: (bindable) =>
387 var viewStyle = (ViewStyle)bindable;
388 return viewStyle.sizeWidth;
390 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
391 [EditorBrowsable(EditorBrowsableState.Never)]
392 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create("SizeHeight", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
394 var viewStyle = (ViewStyle)bindable;
395 viewStyle.sizeHeight = (float?)newValue;
397 defaultValueCreator: (bindable) =>
399 var viewStyle = (ViewStyle)bindable;
400 return viewStyle.sizeHeight;
402 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
403 [EditorBrowsable(EditorBrowsableState.Never)]
404 public static readonly BindableProperty PositionProperty = BindableProperty.Create("Position", typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
406 var viewStyle = (ViewStyle)bindable;
407 viewStyle.position = (Position)newValue;
409 defaultValueCreator: (bindable) =>
411 var viewStyle = (ViewStyle)bindable;
412 return viewStyle.position;
414 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
415 [EditorBrowsable(EditorBrowsableState.Never)]
416 public static readonly BindableProperty PositionXProperty = BindableProperty.Create("PositionX", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
418 var viewStyle = (ViewStyle)bindable;
419 viewStyle.positionX = (float?)newValue;
421 defaultValueCreator: (bindable) =>
423 var viewStyle = (ViewStyle)bindable;
424 return viewStyle.positionX;
426 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
427 [EditorBrowsable(EditorBrowsableState.Never)]
428 public static readonly BindableProperty PositionYProperty = BindableProperty.Create("PositionY", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
430 var viewStyle = (ViewStyle)bindable;
431 viewStyle.positionY = (float?)newValue;
433 defaultValueCreator: (bindable) =>
435 var viewStyle = (ViewStyle)bindable;
436 return viewStyle.positionY;
438 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
439 [EditorBrowsable(EditorBrowsableState.Never)]
440 public static readonly BindableProperty PositionZProperty = BindableProperty.Create("PositionZ", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
442 var viewStyle = (ViewStyle)bindable;
443 viewStyle.positionZ = (float?)newValue;
445 defaultValueCreator: (bindable) =>
447 var viewStyle = (ViewStyle)bindable;
448 return viewStyle.positionZ;
450 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
451 [EditorBrowsable(EditorBrowsableState.Never)]
452 public static readonly BindableProperty OrientationProperty = BindableProperty.Create("Orientation", typeof(Rotation), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
454 var viewStyle = (ViewStyle)bindable;
455 viewStyle.orientation = (Rotation)newValue;
457 defaultValueCreator: (bindable) =>
459 var viewStyle = (ViewStyle)bindable;
460 return viewStyle.orientation;
462 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
463 [EditorBrowsable(EditorBrowsableState.Never)]
464 public static readonly BindableProperty ScaleProperty = BindableProperty.Create("Scale", typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
466 var viewStyle = (ViewStyle)bindable;
467 viewStyle.scale = (Vector3)newValue;
469 defaultValueCreator: (bindable) =>
471 var viewStyle = (ViewStyle)bindable;
472 return viewStyle.scale;
474 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
475 [EditorBrowsable(EditorBrowsableState.Never)]
476 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create("ScaleX", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
478 var viewStyle = (ViewStyle)bindable;
479 viewStyle.scaleX = (float?)newValue;
481 defaultValueCreator: (bindable) =>
483 var viewStyle = (ViewStyle)bindable;
484 return viewStyle.scaleX;
486 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
487 [EditorBrowsable(EditorBrowsableState.Never)]
488 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create("ScaleY", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
490 var viewStyle = (ViewStyle)bindable;
491 viewStyle.scaleY = (float?)newValue;
493 defaultValueCreator: (bindable) =>
495 var viewStyle = (ViewStyle)bindable;
496 return viewStyle.scaleY;
498 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
499 [EditorBrowsable(EditorBrowsableState.Never)]
500 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create("ScaleZ", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
502 var viewStyle = (ViewStyle)bindable;
503 viewStyle.scaleZ = (float?)newValue;
505 defaultValueCreator: (bindable) =>
507 var viewStyle = (ViewStyle)bindable;
508 return viewStyle.scaleZ;
510 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
511 [EditorBrowsable(EditorBrowsableState.Never)]
512 public static readonly BindableProperty NameProperty = BindableProperty.Create("Name", typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
514 var viewStyle = (ViewStyle)bindable;
515 viewStyle.name = (string)newValue;
517 defaultValueCreator: (bindable) =>
519 var viewStyle = (ViewStyle)bindable;
520 return viewStyle.name;
522 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
523 [EditorBrowsable(EditorBrowsableState.Never)]
524 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create("Sensitive", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
526 var viewStyle = (ViewStyle)bindable;
527 viewStyle.sensitive = (bool?)newValue;
529 defaultValueCreator: (bindable) =>
531 var viewStyle = (ViewStyle)bindable;
532 return viewStyle.sensitive;
534 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
535 [EditorBrowsable(EditorBrowsableState.Never)]
536 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create("LeaveRequired", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
538 var viewStyle = (ViewStyle)bindable;
539 viewStyle.leaveRequired = (bool?)newValue;
541 defaultValueCreator: (bindable) =>
543 var viewStyle = (ViewStyle)bindable;
544 return viewStyle.leaveRequired;
546 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
547 [EditorBrowsable(EditorBrowsableState.Never)]
548 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create("InheritOrientation", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
550 var viewStyle = (ViewStyle)bindable;
551 viewStyle.inheritOrientation = (bool?)newValue;
553 defaultValueCreator: (bindable) =>
555 var viewStyle = (ViewStyle)bindable;
556 return viewStyle.inheritOrientation;
558 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
559 [EditorBrowsable(EditorBrowsableState.Never)]
560 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create("InheritScale", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
562 var viewStyle = (ViewStyle)bindable;
563 viewStyle.inheritScale = (bool?)newValue;
565 defaultValueCreator: (bindable) =>
567 var viewStyle = (ViewStyle)bindable;
568 return viewStyle.inheritScale;
570 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
571 [EditorBrowsable(EditorBrowsableState.Never)]
572 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create("DrawMode", typeof(DrawModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
574 var viewStyle = (ViewStyle)bindable;
575 viewStyle.drawMode = (DrawModeType?)newValue;
577 defaultValueCreator: (bindable) =>
579 var viewStyle = (ViewStyle)bindable;
580 return viewStyle.drawMode;
582 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
583 [EditorBrowsable(EditorBrowsableState.Never)]
584 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create("SizeModeFactor", typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
586 var viewStyle = (ViewStyle)bindable;
587 viewStyle.sizeModeFactor = (Vector3)newValue;
589 defaultValueCreator: (bindable) =>
591 var viewStyle = (ViewStyle)bindable;
592 return viewStyle.sizeModeFactor;
594 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
595 [EditorBrowsable(EditorBrowsableState.Never)]
596 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create("WidthResizePolicy", typeof(ResizePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
598 var viewStyle = (ViewStyle)bindable;
599 viewStyle.widthResizePolicy = (ResizePolicyType?)newValue;
601 defaultValueCreator: (bindable) =>
603 var viewStyle = (ViewStyle)bindable;
604 return viewStyle.widthResizePolicy;
606 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
607 [EditorBrowsable(EditorBrowsableState.Never)]
608 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create("HeightResizePolicy", typeof(ResizePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
610 var viewStyle = (ViewStyle)bindable;
611 viewStyle.heightResizePolicy = (ResizePolicyType?)newValue;
613 defaultValueCreator: (bindable) =>
615 var viewStyle = (ViewStyle)bindable;
616 return viewStyle.heightResizePolicy;
618 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
619 [EditorBrowsable(EditorBrowsableState.Never)]
620 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create("SizeScalePolicy", typeof(SizeScalePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
622 var viewStyle = (ViewStyle)bindable;
623 viewStyle.sizeScalePolicy = (SizeScalePolicyType?)newValue;
625 defaultValueCreator: (bindable) =>
627 var viewStyle = (ViewStyle)bindable;
628 return viewStyle.sizeScalePolicy;
630 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
631 [EditorBrowsable(EditorBrowsableState.Never)]
632 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create("WidthForHeight", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
634 var viewStyle = (ViewStyle)bindable;
635 viewStyle.widthForHeight = (bool?)newValue;
637 defaultValueCreator: (bindable) =>
639 var viewStyle = (ViewStyle)bindable;
640 return viewStyle.widthForHeight;
642 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
643 [EditorBrowsable(EditorBrowsableState.Never)]
644 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create("HeightForWidth", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
646 var viewStyle = (ViewStyle)bindable;
647 viewStyle.heightForWidth = (bool?)newValue;
649 defaultValueCreator: (bindable) =>
651 var viewStyle = (ViewStyle)bindable;
652 return viewStyle.heightForWidth;
654 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
655 [EditorBrowsable(EditorBrowsableState.Never)]
656 public static readonly BindableProperty PaddingProperty = BindableProperty.Create("Padding", typeof(Extents), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
658 var viewStyle = (ViewStyle)bindable;
659 viewStyle.padding = (Extents)newValue;
661 defaultValueCreator: (bindable) =>
663 var viewStyle = (ViewStyle)bindable;
664 return viewStyle.padding;
666 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
667 [EditorBrowsable(EditorBrowsableState.Never)]
668 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create("MinimumSize", typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
670 var viewStyle = (ViewStyle)bindable;
671 viewStyle.minimumSize = (Size2D)newValue;
673 defaultValueCreator: (bindable) =>
675 var viewStyle = (ViewStyle)bindable;
676 return viewStyle.minimumSize;
678 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
679 [EditorBrowsable(EditorBrowsableState.Never)]
680 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create("MaximumSize", typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
682 var viewStyle = (ViewStyle)bindable;
683 viewStyle.maximumSize = (Size2D)newValue;
685 defaultValueCreator: (bindable) =>
687 var viewStyle = (ViewStyle)bindable;
688 return viewStyle.maximumSize;
690 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
691 [EditorBrowsable(EditorBrowsableState.Never)]
692 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create("InheritPosition", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
694 var viewStyle = (ViewStyle)bindable;
695 viewStyle.inheritPosition = (bool?)newValue;
697 defaultValueCreator: (bindable) =>
699 var viewStyle = (ViewStyle)bindable;
700 return viewStyle.inheritPosition;
702 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
703 [EditorBrowsable(EditorBrowsableState.Never)]
704 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create("ClippingMode", typeof(ClippingModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
706 var viewStyle = (ViewStyle)bindable;
707 viewStyle.clippingMode = (ClippingModeType?)newValue;
709 defaultValueCreator: (bindable) =>
711 var viewStyle = (ViewStyle)bindable;
712 return viewStyle.clippingMode;
714 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
715 [EditorBrowsable(EditorBrowsableState.Never)]
716 public static readonly BindableProperty SizeProperty = BindableProperty.Create("Size", typeof(Size), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
718 var viewStyle = (ViewStyle)bindable;
719 viewStyle.size = (Size)newValue;
721 defaultValueCreator: (bindable) =>
723 var viewStyle = (ViewStyle)bindable;
724 return viewStyle.size;
726 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
727 [EditorBrowsable(EditorBrowsableState.Never)]
728 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create("InheritLayoutDirection", typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
730 var viewStyle = (ViewStyle)bindable;
731 viewStyle.inheritLayoutDirection = (bool?)newValue;
733 defaultValueCreator: (bindable) =>
735 var viewStyle = (ViewStyle)bindable;
736 return viewStyle.inheritLayoutDirection;
738 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
739 [EditorBrowsable(EditorBrowsableState.Never)]
740 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create("LayoutDirection", typeof(ViewLayoutDirectionType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
742 var viewStyle = (ViewStyle)bindable;
743 viewStyle.layoutDirection = (ViewLayoutDirectionType?)newValue;
745 defaultValueCreator: (bindable) =>
747 var viewStyle = (ViewStyle)bindable;
748 return viewStyle.layoutDirection;
750 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
751 [EditorBrowsable(EditorBrowsableState.Never)]
752 public static readonly BindableProperty MarginProperty = BindableProperty.Create("Margin", typeof(Extents), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
754 var viewStyle = (ViewStyle)bindable;
755 viewStyle.margin = (Extents)newValue;
757 defaultValueCreator: (bindable) =>
759 var viewStyle = (ViewStyle)bindable;
760 return viewStyle.margin;
762 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
763 [EditorBrowsable(EditorBrowsableState.Never)]
764 public static readonly BindableProperty WeightProperty = BindableProperty.Create("Weight", typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
766 var viewStyle = (ViewStyle)bindable;
767 viewStyle.weight = (float?)newValue;
769 defaultValueCreator: (bindable) =>
771 var viewStyle = (ViewStyle)bindable;
772 return viewStyle.weight;
774 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
775 [EditorBrowsable(EditorBrowsableState.Never)]
776 public static readonly BindableProperty BackgroundColorSelectorProperty = BindableProperty.Create("BackgroundColorSelector", typeof(Selector<Color>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
778 var viewStyle = (ViewStyle)bindable;
779 if (null == viewStyle.backgroundColorSelector) viewStyle.backgroundColorSelector = new Selector<Color>();
780 viewStyle.backgroundColorSelector.Clone((Selector<Color>)newValue);
782 defaultValueCreator: (bindable) =>
784 var viewStyle = (ViewStyle)bindable;
785 return viewStyle.backgroundColorSelector;
787 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
788 [EditorBrowsable(EditorBrowsableState.Never)]
789 public static readonly BindableProperty BackgroundImageBorderSelectorProperty = BindableProperty.Create("BackgroundImageBorderSelector", typeof(Selector<Rectangle>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
791 var viewStyle = (ViewStyle)bindable;
792 if (null == viewStyle.backgroundImageBorderSelector) viewStyle.backgroundImageBorderSelector = new Selector<Rectangle>();
793 viewStyle.backgroundImageBorderSelector.Clone((Selector<Rectangle>)newValue);
795 defaultValueCreator: (bindable) =>
797 var viewStyle = (ViewStyle)bindable;
798 return viewStyle.backgroundImageBorderSelector;
801 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
802 [EditorBrowsable(EditorBrowsableState.Never)]
807 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
808 [EditorBrowsable(EditorBrowsableState.Never)]
809 public ViewStyle(ViewStyle viewAttributes)
811 if (null != viewAttributes)
813 this.CopyFrom(viewAttributes);
817 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
818 [EditorBrowsable(EditorBrowsableState.Never)]
819 public string StyleName
821 get => (string)GetValue(StyleNameProperty);
822 set => SetValue(StyleNameProperty, value);
825 private Selector<string> backgroundImageSelector;
826 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
827 [EditorBrowsable(EditorBrowsableState.Never)]
828 public Selector<string> BackgroundImage
832 Selector<string> image = (Selector<string>)GetValue(BackgroundImageSelectorProperty);
833 return (null != image) ? image : backgroundImageSelector = new Selector<string>();
835 set => SetValue(BackgroundImageSelectorProperty, value);
838 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
839 [EditorBrowsable(EditorBrowsableState.Never)]
840 public View.States? State
842 get => (View.States?)GetValue(StateProperty);
843 set => SetValue(StateProperty, value);
846 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
847 [EditorBrowsable(EditorBrowsableState.Never)]
848 public View.States? SubState
850 get => (View.States?)GetValue(SubStateProperty);
851 set => SetValue(SubStateProperty, value);
854 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
855 [EditorBrowsable(EditorBrowsableState.Never)]
858 get => (float?)GetValue(FlexProperty);
859 set => SetValue(FlexProperty, value);
862 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
863 [EditorBrowsable(EditorBrowsableState.Never)]
864 public int? AlignSelf
866 get => (int?)GetValue(AlignSelfProperty);
867 set => SetValue(AlignSelfProperty, value);
870 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
871 [EditorBrowsable(EditorBrowsableState.Never)]
872 public Vector4 FlexMargin
874 get => (Vector4)GetValue(FlexMarginProperty);
875 set => SetValue(FlexMarginProperty, value);
878 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
879 [EditorBrowsable(EditorBrowsableState.Never)]
880 public Vector2 CellIndex
882 get => (Vector2)GetValue(CellIndexProperty);
883 set => SetValue(CellIndexProperty, value);
886 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
887 [EditorBrowsable(EditorBrowsableState.Never)]
888 public float? RowSpan
890 get => (float?)GetValue(RowSpanProperty);
891 set => SetValue(RowSpanProperty, value);
894 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
895 [EditorBrowsable(EditorBrowsableState.Never)]
896 public float? ColumnSpan
898 get => (float?)GetValue(ColumnSpanProperty);
899 set => SetValue(ColumnSpanProperty, value);
902 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
903 [EditorBrowsable(EditorBrowsableState.Never)]
904 public HorizontalAlignmentType? CellHorizontalAlignment
906 get => (HorizontalAlignmentType?)GetValue(CellHorizontalAlignmentProperty);
907 set => SetValue(CellHorizontalAlignmentProperty, value);
910 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
911 [EditorBrowsable(EditorBrowsableState.Never)]
912 public VerticalAlignmentType? CellVerticalAlignment
914 get => (VerticalAlignmentType?)GetValue(CellVerticalAlignmentProperty);
915 set => SetValue(CellVerticalAlignmentProperty, value);
918 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
919 [EditorBrowsable(EditorBrowsableState.Never)]
920 public View LeftFocusableView
922 get => (View)GetValue(LeftFocusableViewProperty);
923 set => SetValue(LeftFocusableViewProperty, value);
926 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
927 [EditorBrowsable(EditorBrowsableState.Never)]
928 public View RightFocusableView
930 get => (View)GetValue(RightFocusableViewProperty);
931 set => SetValue(RightFocusableViewProperty, value);
934 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
935 [EditorBrowsable(EditorBrowsableState.Never)]
936 public View UpFocusableView
938 get => (View)GetValue(UpFocusableViewProperty);
939 set => SetValue(UpFocusableViewProperty, value);
942 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
943 [EditorBrowsable(EditorBrowsableState.Never)]
944 public View DownFocusableView
946 get => (View)GetValue(DownFocusableViewProperty);
947 set => SetValue(DownFocusableViewProperty, value);
950 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
951 [EditorBrowsable(EditorBrowsableState.Never)]
952 public bool? Focusable
954 get => (bool?)GetValue(FocusableProperty);
955 set => SetValue(FocusableProperty, value);
958 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
959 [EditorBrowsable(EditorBrowsableState.Never)]
962 get => (Size2D)GetValue(Size2DProperty);
963 set => SetValue(Size2DProperty, value);
966 private Selector<float?> opacitySelector;
967 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
968 [EditorBrowsable(EditorBrowsableState.Never)]
969 public Selector<float?> Opacity
973 Selector<float?> opacity = (Selector<float?>)GetValue(OpacitySelectorProperty);
974 return (null != opacity) ? opacity : opacitySelector = new Selector<float?>();
976 set => SetValue(OpacitySelectorProperty, value);
979 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
980 [EditorBrowsable(EditorBrowsableState.Never)]
981 public Position2D Position2D
983 get => (Position2D)GetValue(Position2DProperty);
984 set => SetValue(Position2DProperty, value);
987 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
988 [EditorBrowsable(EditorBrowsableState.Never)]
989 public bool? PositionUsesPivotPoint
991 get => (bool?)GetValue(PositionUsesPivotPointProperty);
992 set => SetValue(PositionUsesPivotPointProperty, value);
995 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
996 [EditorBrowsable(EditorBrowsableState.Never)]
997 public int? SiblingOrder
999 get => (int?)GetValue(SiblingOrderProperty);
1000 set => SetValue(SiblingOrderProperty, value);
1003 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1004 [EditorBrowsable(EditorBrowsableState.Never)]
1005 public Position ParentOrigin
1007 get => (Position)GetValue(ParentOriginProperty);
1008 set => SetValue(ParentOriginProperty, value);
1011 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1012 [EditorBrowsable(EditorBrowsableState.Never)]
1013 public Position PivotPoint
1015 get => (Position)GetValue(PivotPointProperty);
1016 set => SetValue(PivotPointProperty, value);
1019 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1020 [EditorBrowsable(EditorBrowsableState.Never)]
1021 public float? SizeWidth
1023 get => (float?)GetValue(SizeWidthProperty);
1024 set => SetValue(SizeWidthProperty, value);
1027 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1028 [EditorBrowsable(EditorBrowsableState.Never)]
1029 public float? SizeHeight
1031 get => (float?)GetValue(SizeHeightProperty);
1032 set => SetValue(SizeHeightProperty, value);
1035 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1036 [EditorBrowsable(EditorBrowsableState.Never)]
1037 public Position Position
1039 get => (Position)GetValue(PositionProperty);
1040 set => SetValue(PositionProperty, value);
1043 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1044 [EditorBrowsable(EditorBrowsableState.Never)]
1045 public float? PositionX
1047 get => (float?)GetValue(PositionXProperty);
1048 set => SetValue(PositionXProperty, value);
1051 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1052 [EditorBrowsable(EditorBrowsableState.Never)]
1053 public float? PositionY
1055 get => (float?)GetValue(PositionYProperty);
1056 set => SetValue(PositionYProperty, value);
1059 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1060 [EditorBrowsable(EditorBrowsableState.Never)]
1061 public float? PositionZ
1063 get => (float?)GetValue(PositionZProperty);
1064 set => SetValue(PositionZProperty, value);
1067 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1068 [EditorBrowsable(EditorBrowsableState.Never)]
1069 public Rotation Orientation
1071 get => (Rotation)GetValue(OrientationProperty);
1072 set => SetValue(OrientationProperty, value);
1075 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1076 [EditorBrowsable(EditorBrowsableState.Never)]
1077 public Vector3 Scale
1079 get => (Vector3)GetValue(ScaleProperty);
1080 set => SetValue(ScaleProperty, value);
1083 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1084 [EditorBrowsable(EditorBrowsableState.Never)]
1085 public float? ScaleX
1087 get => (float?)GetValue(ScaleXProperty);
1088 set => SetValue(ScaleXProperty, value);
1091 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1092 [EditorBrowsable(EditorBrowsableState.Never)]
1093 public float? ScaleY
1095 get => (float?)GetValue(ScaleYProperty);
1096 set => SetValue(ScaleYProperty, value);
1099 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1100 [EditorBrowsable(EditorBrowsableState.Never)]
1101 public float? ScaleZ
1103 get => (float?)GetValue(ScaleZProperty);
1104 set => SetValue(ScaleZProperty, value);
1107 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1108 [EditorBrowsable(EditorBrowsableState.Never)]
1111 get => (string)GetValue(NameProperty);
1112 set => SetValue(NameProperty, value);
1115 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1116 [EditorBrowsable(EditorBrowsableState.Never)]
1117 public bool? Sensitive
1119 get => (bool?)GetValue(SensitiveProperty);
1120 set => SetValue(SensitiveProperty, value);
1123 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1124 [EditorBrowsable(EditorBrowsableState.Never)]
1125 public bool? LeaveRequired
1127 get => (bool?)GetValue(LeaveRequiredProperty);
1128 set => SetValue(LeaveRequiredProperty, value);
1131 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1132 [EditorBrowsable(EditorBrowsableState.Never)]
1133 public bool? InheritOrientation
1135 get => (bool?)GetValue(InheritOrientationProperty);
1136 set => SetValue(InheritOrientationProperty, value);
1139 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1140 [EditorBrowsable(EditorBrowsableState.Never)]
1141 public bool? InheritScale
1143 get => (bool?)GetValue(InheritScaleProperty);
1144 set => SetValue(InheritScaleProperty, value);
1147 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1148 [EditorBrowsable(EditorBrowsableState.Never)]
1149 public DrawModeType? DrawMode
1151 get => (DrawModeType?)GetValue(DrawModeProperty);
1152 set => SetValue(DrawModeProperty, value);
1155 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1156 [EditorBrowsable(EditorBrowsableState.Never)]
1157 public Vector3 SizeModeFactor
1159 get => (Vector3)GetValue(SizeModeFactorProperty);
1160 set => SetValue(SizeModeFactorProperty, value);
1163 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1164 [EditorBrowsable(EditorBrowsableState.Never)]
1165 public ResizePolicyType? WidthResizePolicy
1167 get => (ResizePolicyType?)GetValue(WidthResizePolicyProperty);
1168 set => SetValue(WidthResizePolicyProperty, value);
1171 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1172 [EditorBrowsable(EditorBrowsableState.Never)]
1173 public ResizePolicyType? HeightResizePolicy
1175 get => (ResizePolicyType?)GetValue(HeightResizePolicyProperty);
1176 set => SetValue(HeightResizePolicyProperty, value);
1179 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1180 [EditorBrowsable(EditorBrowsableState.Never)]
1181 public SizeScalePolicyType? SizeScalePolicy
1183 get => (SizeScalePolicyType?)GetValue(SizeScalePolicyProperty);
1184 set => SetValue(SizeScalePolicyProperty, value);
1187 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1188 [EditorBrowsable(EditorBrowsableState.Never)]
1189 public bool? WidthForHeight
1191 get => (bool?)GetValue(WidthForHeightProperty);
1192 set => SetValue(WidthForHeightProperty, value);
1195 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1196 [EditorBrowsable(EditorBrowsableState.Never)]
1197 public bool? HeightForWidth
1199 get => (bool?)GetValue(HeightForWidthProperty);
1200 set => SetValue(HeightForWidthProperty, value);
1203 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1204 [EditorBrowsable(EditorBrowsableState.Never)]
1205 public Extents Padding
1209 Extents tmp = (Extents)GetValue(PaddingProperty);
1210 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);
1212 set => SetValue(PaddingProperty, value);
1215 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1216 [EditorBrowsable(EditorBrowsableState.Never)]
1217 public Size2D MinimumSize
1219 get => (Size2D)GetValue(MinimumSizeProperty);
1220 set => SetValue(MinimumSizeProperty, value);
1223 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1224 [EditorBrowsable(EditorBrowsableState.Never)]
1225 public Size2D MaximumSize
1227 get => (Size2D)GetValue(MaximumSizeProperty);
1228 set => SetValue(MaximumSizeProperty, value);
1231 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1232 [EditorBrowsable(EditorBrowsableState.Never)]
1233 public bool? InheritPosition
1235 get => (bool?)GetValue(InheritPositionProperty);
1236 set => SetValue(InheritPositionProperty, value);
1239 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1240 [EditorBrowsable(EditorBrowsableState.Never)]
1241 public ClippingModeType? ClippingMode
1243 get => (ClippingModeType?)GetValue(ClippingModeProperty);
1244 set => SetValue(ClippingModeProperty, value);
1247 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1248 [EditorBrowsable(EditorBrowsableState.Never)]
1253 Size tmp = (Size)GetValue(SizeProperty);
1254 return (null != tmp) ? tmp : size = new Size((float width, float height, float depth) => { Size = new Size(width, height, depth); }, 0, 0, 0);
1256 set => SetValue(SizeProperty, value);
1259 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1260 [EditorBrowsable(EditorBrowsableState.Never)]
1261 public bool? InheritLayoutDirection
1263 get => (bool?)GetValue(InheritLayoutDirectionProperty);
1264 set => SetValue(InheritLayoutDirectionProperty, value);
1267 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1268 [EditorBrowsable(EditorBrowsableState.Never)]
1269 public ViewLayoutDirectionType? LayoutDirection
1271 get => (ViewLayoutDirectionType?)GetValue(LayoutDirectionProperty);
1272 set => SetValue(LayoutDirectionProperty, value);
1275 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1276 [EditorBrowsable(EditorBrowsableState.Never)]
1277 public Extents Margin
1281 Extents tmp = (Extents)GetValue(MarginProperty);
1282 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);
1284 set => SetValue(MarginProperty, value);
1287 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1288 [EditorBrowsable(EditorBrowsableState.Never)]
1289 public float? Weight
1291 get => (float?)GetValue(WeightProperty);
1292 set => SetValue(WeightProperty, value);
1295 private Selector<Color> backgroundColorSelector;
1296 /// <summary> View BackgroundColor </summary>
1297 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1298 [EditorBrowsable(EditorBrowsableState.Never)]
1299 public Selector<Color> BackgroundColor
1303 Selector<Color> color = (Selector<Color>)GetValue(BackgroundColorSelectorProperty);
1304 return (null != color) ? color : backgroundColorSelector = new Selector<Color>();
1306 set => SetValue(BackgroundColorSelectorProperty, value);
1308 private Selector<Rectangle> backgroundImageBorderSelector;
1309 /// <summary>View BackgroundBorder</summary>
1310 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1311 [EditorBrowsable(EditorBrowsableState.Never)]
1312 public Selector<Rectangle> BackgroundImageBorder
1316 Selector<Rectangle> border = (Selector<Rectangle>)GetValue(BackgroundImageBorderSelectorProperty);
1317 return (null != border) ? border : backgroundImageBorderSelector = new Selector<Rectangle>();
1319 set => SetValue(BackgroundImageBorderSelectorProperty, value);