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 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
32 [EditorBrowsable(EditorBrowsableState.Never)]
33 public static readonly BindableProperty StyleNameProperty = BindableProperty.Create(nameof(StyleName), typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
35 var viewStyle = (ViewStyle)bindable;
36 viewStyle.styleName = (string)newValue;
38 defaultValueCreator: (bindable) =>
40 var viewStyle = (ViewStyle)bindable;
41 return viewStyle.styleName;
43 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
44 [EditorBrowsable(EditorBrowsableState.Never)]
45 public static readonly BindableProperty BackgroundImageSelectorProperty = BindableProperty.Create("BackgroundImageSelector", typeof(Selector<string>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
47 var viewStyle = (ViewStyle)bindable;
48 if (null == viewStyle.backgroundImageSelector) viewStyle.backgroundImageSelector = new Selector<string>();
49 viewStyle.backgroundImageSelector.Clone(null == newValue ? new Selector<string>() : (Selector<string>)newValue);
51 defaultValueCreator: (bindable) =>
53 var viewStyle = (ViewStyle)bindable;
54 return viewStyle.backgroundImageSelector;
56 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
57 [EditorBrowsable(EditorBrowsableState.Never)]
58 public static readonly BindableProperty StateProperty = BindableProperty.Create(nameof(State), typeof(View.States?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
60 var viewStyle = (ViewStyle)bindable;
61 viewStyle.state = (View.States?)newValue;
63 defaultValueCreator: (bindable) =>
65 var viewStyle = (ViewStyle)bindable;
66 return viewStyle.state;
68 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
69 [EditorBrowsable(EditorBrowsableState.Never)]
70 public static readonly BindableProperty SubStateProperty = BindableProperty.Create(nameof(SubState), typeof(View.States?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
72 var viewStyle = (ViewStyle)bindable;
73 viewStyle.subState = (View.States?)newValue;
75 defaultValueCreator: (bindable) =>
77 var viewStyle = (ViewStyle)bindable;
78 return viewStyle.subState;
80 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
81 [EditorBrowsable(EditorBrowsableState.Never)]
82 public static readonly BindableProperty FlexProperty = BindableProperty.Create(nameof(Flex), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
84 var viewStyle = (ViewStyle)bindable;
85 viewStyle.flex = (float?)newValue;
87 defaultValueCreator: (bindable) =>
89 var viewStyle = (ViewStyle)bindable;
90 return viewStyle.flex;
92 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
93 [EditorBrowsable(EditorBrowsableState.Never)]
94 public static readonly BindableProperty AlignSelfProperty = BindableProperty.Create(nameof(AlignSelf), typeof(int?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
96 var viewStyle = (ViewStyle)bindable;
97 viewStyle.alignSelf = (int?)newValue;
99 defaultValueCreator: (bindable) =>
101 var viewStyle = (ViewStyle)bindable;
102 return viewStyle.alignSelf;
104 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
105 [EditorBrowsable(EditorBrowsableState.Never)]
106 public static readonly BindableProperty FlexMarginProperty = BindableProperty.Create(nameof(FlexMargin), typeof(Vector4), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
108 var viewStyle = (ViewStyle)bindable;
109 viewStyle.flexMargin = (Vector4)newValue;
111 defaultValueCreator: (bindable) =>
113 var viewStyle = (ViewStyle)bindable;
114 return viewStyle.flexMargin;
116 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
117 [EditorBrowsable(EditorBrowsableState.Never)]
118 public static readonly BindableProperty CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
120 var viewStyle = (ViewStyle)bindable;
121 viewStyle.cellIndex = (Vector2)newValue;
123 defaultValueCreator: (bindable) =>
125 var viewStyle = (ViewStyle)bindable;
126 return viewStyle.cellIndex;
128 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
129 [EditorBrowsable(EditorBrowsableState.Never)]
130 public static readonly BindableProperty RowSpanProperty = BindableProperty.Create(nameof(RowSpan), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
132 var viewStyle = (ViewStyle)bindable;
133 viewStyle.rowSpan = (float?)newValue;
135 defaultValueCreator: (bindable) =>
137 var viewStyle = (ViewStyle)bindable;
138 return viewStyle.rowSpan;
140 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
141 [EditorBrowsable(EditorBrowsableState.Never)]
142 public static readonly BindableProperty ColumnSpanProperty = BindableProperty.Create(nameof(ColumnSpan), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
144 var viewStyle = (ViewStyle)bindable;
145 viewStyle.columnSpan = (float?)newValue;
147 defaultValueCreator: (bindable) =>
149 var viewStyle = (ViewStyle)bindable;
150 return viewStyle.columnSpan;
152 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
153 [EditorBrowsable(EditorBrowsableState.Never)]
154 public static readonly BindableProperty CellHorizontalAlignmentProperty = BindableProperty.Create(nameof(CellHorizontalAlignment), typeof(HorizontalAlignmentType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
156 var viewStyle = (ViewStyle)bindable;
157 viewStyle.cellHorizontalAlignment = (HorizontalAlignmentType?)newValue;
159 defaultValueCreator: (bindable) =>
161 var viewStyle = (ViewStyle)bindable;
162 return viewStyle.cellHorizontalAlignment;
164 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
165 [EditorBrowsable(EditorBrowsableState.Never)]
166 public static readonly BindableProperty CellVerticalAlignmentProperty = BindableProperty.Create(nameof(CellVerticalAlignment), typeof(VerticalAlignmentType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
168 var viewStyle = (ViewStyle)bindable;
169 viewStyle.cellVerticalAlignment = (VerticalAlignmentType?)newValue;
171 defaultValueCreator: (bindable) =>
173 var viewStyle = (ViewStyle)bindable;
174 return viewStyle.cellVerticalAlignment;
176 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
177 [EditorBrowsable(EditorBrowsableState.Never)]
178 public static readonly BindableProperty LeftFocusableViewProperty = BindableProperty.Create(nameof(LeftFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
180 var viewStyle = (ViewStyle)bindable;
181 viewStyle.leftFocusableView = (View)newValue;
183 defaultValueCreator: (bindable) =>
185 var viewStyle = (ViewStyle)bindable;
186 return viewStyle.leftFocusableView;
188 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
189 [EditorBrowsable(EditorBrowsableState.Never)]
190 public static readonly BindableProperty RightFocusableViewProperty = BindableProperty.Create(nameof(RightFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
192 var viewStyle = (ViewStyle)bindable;
193 viewStyle.rightFocusableView = (View)newValue;
195 defaultValueCreator: (bindable) =>
197 var viewStyle = (ViewStyle)bindable;
198 return viewStyle.rightFocusableView;
200 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
201 [EditorBrowsable(EditorBrowsableState.Never)]
202 public static readonly BindableProperty UpFocusableViewProperty = BindableProperty.Create(nameof(UpFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
204 var viewStyle = (ViewStyle)bindable;
205 viewStyle.upFocusableView = (View)newValue;
207 defaultValueCreator: (bindable) =>
209 var viewStyle = (ViewStyle)bindable;
210 return viewStyle.upFocusableView;
212 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
213 [EditorBrowsable(EditorBrowsableState.Never)]
214 public static readonly BindableProperty DownFocusableViewProperty = BindableProperty.Create(nameof(DownFocusableView), typeof(View), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
216 var viewStyle = (ViewStyle)bindable;
217 viewStyle.downFocusableView = (View)newValue;
219 defaultValueCreator: (bindable) =>
221 var viewStyle = (ViewStyle)bindable;
222 return viewStyle.downFocusableView;
224 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
225 [EditorBrowsable(EditorBrowsableState.Never)]
226 public static readonly BindableProperty FocusableProperty = BindableProperty.Create(nameof(Focusable), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
228 var viewStyle = (ViewStyle)bindable;
229 viewStyle.focusable = (bool?)newValue;
231 defaultValueCreator: (bindable) =>
233 var viewStyle = (ViewStyle)bindable;
234 return viewStyle.focusable;
236 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
237 [EditorBrowsable(EditorBrowsableState.Never)]
238 public static readonly BindableProperty Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
240 var viewStyle = (ViewStyle)bindable;
241 viewStyle.size2D = (Size2D)newValue;
243 defaultValueCreator: (bindable) =>
245 var viewStyle = (ViewStyle)bindable;
246 return viewStyle.size2D;
248 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
249 [EditorBrowsable(EditorBrowsableState.Never)]
250 public static readonly BindableProperty OpacitySelectorProperty = BindableProperty.Create("OpacitySelector", typeof(Selector<float?>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
252 var viewStyle = (ViewStyle)bindable;
253 if (null == viewStyle.opacitySelector) viewStyle.opacitySelector = new Selector<float?>();
254 viewStyle.opacitySelector.Clone(null == newValue ? new Selector<float?>() : (Selector<float?>)newValue);
256 defaultValueCreator: (bindable) =>
258 var controlStyle = (ViewStyle)bindable;
259 return controlStyle.opacitySelector;
261 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
262 [EditorBrowsable(EditorBrowsableState.Never)]
263 public static readonly BindableProperty Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
265 var viewStyle = (ViewStyle)bindable;
266 viewStyle.position2D = (Position2D)newValue;
268 defaultValueCreator: (bindable) =>
270 var viewStyle = (ViewStyle)bindable;
271 return viewStyle.position2D;
273 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
274 [EditorBrowsable(EditorBrowsableState.Never)]
275 public static readonly BindableProperty PositionUsesPivotPointProperty = BindableProperty.Create(nameof(PositionUsesPivotPoint), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
277 var viewStyle = (ViewStyle)bindable;
278 viewStyle.positionUsesPivotPoint = (bool?)newValue;
280 defaultValueCreator: (bindable) =>
282 var viewStyle = (ViewStyle)bindable;
283 return viewStyle.positionUsesPivotPoint;
285 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
286 [EditorBrowsable(EditorBrowsableState.Never)]
287 public static readonly BindableProperty SiblingOrderProperty = BindableProperty.Create(nameof(SiblingOrder), typeof(int?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
289 var viewStyle = (ViewStyle)bindable;
290 viewStyle.siblingOrder = (int?)newValue;
292 defaultValueCreator: (bindable) =>
294 var viewStyle = (ViewStyle)bindable;
295 return viewStyle.siblingOrder;
297 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
298 [EditorBrowsable(EditorBrowsableState.Never)]
299 public static readonly BindableProperty ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
301 var viewStyle = (ViewStyle)bindable;
302 viewStyle.parentOrigin = (Position)newValue;
304 defaultValueCreator: (bindable) =>
306 var viewStyle = (ViewStyle)bindable;
307 return viewStyle.parentOrigin;
309 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
310 [EditorBrowsable(EditorBrowsableState.Never)]
311 public static readonly BindableProperty PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
313 var viewStyle = (ViewStyle)bindable;
314 viewStyle.pivotPoint = (Position)newValue;
316 defaultValueCreator: (bindable) =>
318 var viewStyle = (ViewStyle)bindable;
319 return viewStyle.pivotPoint;
321 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
322 [EditorBrowsable(EditorBrowsableState.Never)]
323 public static readonly BindableProperty SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
325 var viewStyle = (ViewStyle)bindable;
326 viewStyle.sizeWidth = (float?)newValue;
328 defaultValueCreator: (bindable) =>
330 var viewStyle = (ViewStyle)bindable;
331 return viewStyle.sizeWidth;
333 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
334 [EditorBrowsable(EditorBrowsableState.Never)]
335 public static readonly BindableProperty SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
337 var viewStyle = (ViewStyle)bindable;
338 viewStyle.sizeHeight = (float?)newValue;
340 defaultValueCreator: (bindable) =>
342 var viewStyle = (ViewStyle)bindable;
343 return viewStyle.sizeHeight;
345 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
346 [EditorBrowsable(EditorBrowsableState.Never)]
347 public static readonly BindableProperty PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
349 var viewStyle = (ViewStyle)bindable;
350 viewStyle.position = (Position)newValue;
352 defaultValueCreator: (bindable) =>
354 var viewStyle = (ViewStyle)bindable;
355 return viewStyle.position;
357 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
358 [EditorBrowsable(EditorBrowsableState.Never)]
359 public static readonly BindableProperty PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
361 var viewStyle = (ViewStyle)bindable;
362 viewStyle.positionX = (float?)newValue;
364 defaultValueCreator: (bindable) =>
366 var viewStyle = (ViewStyle)bindable;
367 return viewStyle.positionX;
369 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
370 [EditorBrowsable(EditorBrowsableState.Never)]
371 public static readonly BindableProperty PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
373 var viewStyle = (ViewStyle)bindable;
374 viewStyle.positionY = (float?)newValue;
376 defaultValueCreator: (bindable) =>
378 var viewStyle = (ViewStyle)bindable;
379 return viewStyle.positionY;
381 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
382 [EditorBrowsable(EditorBrowsableState.Never)]
383 public static readonly BindableProperty PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
385 var viewStyle = (ViewStyle)bindable;
386 viewStyle.positionZ = (float?)newValue;
388 defaultValueCreator: (bindable) =>
390 var viewStyle = (ViewStyle)bindable;
391 return viewStyle.positionZ;
393 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
394 [EditorBrowsable(EditorBrowsableState.Never)]
395 public static readonly BindableProperty OrientationProperty = BindableProperty.Create(nameof(Orientation), typeof(Rotation), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
397 var viewStyle = (ViewStyle)bindable;
398 viewStyle.orientation = (Rotation)newValue;
400 defaultValueCreator: (bindable) =>
402 var viewStyle = (ViewStyle)bindable;
403 return viewStyle.orientation;
405 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
406 [EditorBrowsable(EditorBrowsableState.Never)]
407 public static readonly BindableProperty ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
409 var viewStyle = (ViewStyle)bindable;
410 viewStyle.scale = (Vector3)newValue;
412 defaultValueCreator: (bindable) =>
414 var viewStyle = (ViewStyle)bindable;
415 return viewStyle.scale;
417 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
418 [EditorBrowsable(EditorBrowsableState.Never)]
419 public static readonly BindableProperty ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
421 var viewStyle = (ViewStyle)bindable;
422 viewStyle.scaleX = (float?)newValue;
424 defaultValueCreator: (bindable) =>
426 var viewStyle = (ViewStyle)bindable;
427 return viewStyle.scaleX;
429 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
430 [EditorBrowsable(EditorBrowsableState.Never)]
431 public static readonly BindableProperty ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
433 var viewStyle = (ViewStyle)bindable;
434 viewStyle.scaleY = (float?)newValue;
436 defaultValueCreator: (bindable) =>
438 var viewStyle = (ViewStyle)bindable;
439 return viewStyle.scaleY;
441 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
442 [EditorBrowsable(EditorBrowsableState.Never)]
443 public static readonly BindableProperty ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
445 var viewStyle = (ViewStyle)bindable;
446 viewStyle.scaleZ = (float?)newValue;
448 defaultValueCreator: (bindable) =>
450 var viewStyle = (ViewStyle)bindable;
451 return viewStyle.scaleZ;
453 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
454 [EditorBrowsable(EditorBrowsableState.Never)]
455 public static readonly BindableProperty NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
457 var viewStyle = (ViewStyle)bindable;
458 viewStyle.name = (string)newValue;
460 defaultValueCreator: (bindable) =>
462 var viewStyle = (ViewStyle)bindable;
463 return viewStyle.name;
465 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
466 [EditorBrowsable(EditorBrowsableState.Never)]
467 public static readonly BindableProperty SensitiveProperty = BindableProperty.Create(nameof(Sensitive), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
469 var viewStyle = (ViewStyle)bindable;
470 viewStyle.sensitive = (bool?)newValue;
472 defaultValueCreator: (bindable) =>
474 var viewStyle = (ViewStyle)bindable;
475 return viewStyle.sensitive;
477 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
478 [EditorBrowsable(EditorBrowsableState.Never)]
479 public static readonly BindableProperty LeaveRequiredProperty = BindableProperty.Create(nameof(LeaveRequired), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
481 var viewStyle = (ViewStyle)bindable;
482 viewStyle.leaveRequired = (bool?)newValue;
484 defaultValueCreator: (bindable) =>
486 var viewStyle = (ViewStyle)bindable;
487 return viewStyle.leaveRequired;
489 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
490 [EditorBrowsable(EditorBrowsableState.Never)]
491 public static readonly BindableProperty InheritOrientationProperty = BindableProperty.Create(nameof(InheritOrientation), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
493 var viewStyle = (ViewStyle)bindable;
494 viewStyle.inheritOrientation = (bool?)newValue;
496 defaultValueCreator: (bindable) =>
498 var viewStyle = (ViewStyle)bindable;
499 return viewStyle.inheritOrientation;
501 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
502 [EditorBrowsable(EditorBrowsableState.Never)]
503 public static readonly BindableProperty InheritScaleProperty = BindableProperty.Create(nameof(InheritScale), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
505 var viewStyle = (ViewStyle)bindable;
506 viewStyle.inheritScale = (bool?)newValue;
508 defaultValueCreator: (bindable) =>
510 var viewStyle = (ViewStyle)bindable;
511 return viewStyle.inheritScale;
513 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
514 [EditorBrowsable(EditorBrowsableState.Never)]
515 public static readonly BindableProperty DrawModeProperty = BindableProperty.Create(nameof(DrawMode), typeof(DrawModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
517 var viewStyle = (ViewStyle)bindable;
518 viewStyle.drawMode = (DrawModeType?)newValue;
520 defaultValueCreator: (bindable) =>
522 var viewStyle = (ViewStyle)bindable;
523 return viewStyle.drawMode;
525 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
526 [EditorBrowsable(EditorBrowsableState.Never)]
527 public static readonly BindableProperty SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
529 var viewStyle = (ViewStyle)bindable;
530 viewStyle.sizeModeFactor = (Vector3)newValue;
532 defaultValueCreator: (bindable) =>
534 var viewStyle = (ViewStyle)bindable;
535 return viewStyle.sizeModeFactor;
537 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
538 [EditorBrowsable(EditorBrowsableState.Never)]
539 public static readonly BindableProperty WidthResizePolicyProperty = BindableProperty.Create(nameof(WidthResizePolicy), typeof(ResizePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
541 var viewStyle = (ViewStyle)bindable;
542 viewStyle.widthResizePolicy = (ResizePolicyType?)newValue;
544 defaultValueCreator: (bindable) =>
546 var viewStyle = (ViewStyle)bindable;
547 return viewStyle.widthResizePolicy;
549 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
550 [EditorBrowsable(EditorBrowsableState.Never)]
551 public static readonly BindableProperty HeightResizePolicyProperty = BindableProperty.Create(nameof(HeightResizePolicy), typeof(ResizePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
553 var viewStyle = (ViewStyle)bindable;
554 viewStyle.heightResizePolicy = (ResizePolicyType?)newValue;
556 defaultValueCreator: (bindable) =>
558 var viewStyle = (ViewStyle)bindable;
559 return viewStyle.heightResizePolicy;
561 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
562 [EditorBrowsable(EditorBrowsableState.Never)]
563 public static readonly BindableProperty SizeScalePolicyProperty = BindableProperty.Create(nameof(SizeScalePolicy), typeof(SizeScalePolicyType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
565 var viewStyle = (ViewStyle)bindable;
566 viewStyle.sizeScalePolicy = (SizeScalePolicyType?)newValue;
568 defaultValueCreator: (bindable) =>
570 var viewStyle = (ViewStyle)bindable;
571 return viewStyle.sizeScalePolicy;
573 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
574 [EditorBrowsable(EditorBrowsableState.Never)]
575 public static readonly BindableProperty WidthForHeightProperty = BindableProperty.Create(nameof(WidthForHeight), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
577 var viewStyle = (ViewStyle)bindable;
578 viewStyle.widthForHeight = (bool?)newValue;
580 defaultValueCreator: (bindable) =>
582 var viewStyle = (ViewStyle)bindable;
583 return viewStyle.widthForHeight;
585 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
586 [EditorBrowsable(EditorBrowsableState.Never)]
587 public static readonly BindableProperty HeightForWidthProperty = BindableProperty.Create(nameof(HeightForWidth), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
589 var viewStyle = (ViewStyle)bindable;
590 viewStyle.heightForWidth = (bool?)newValue;
592 defaultValueCreator: (bindable) =>
594 var viewStyle = (ViewStyle)bindable;
595 return viewStyle.heightForWidth;
597 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
598 [EditorBrowsable(EditorBrowsableState.Never)]
599 public static readonly BindableProperty PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
601 var viewStyle = (ViewStyle)bindable;
602 if (null == viewStyle.padding) viewStyle.padding = new Extents(viewStyle.OnPaddingChanged, 0, 0, 0, 0);
603 viewStyle.padding.CopyFrom(null == newValue ? new Extents() : (Extents)newValue);
605 defaultValueCreator: (bindable) =>
607 var viewStyle = (ViewStyle)bindable;
608 return viewStyle.padding;
610 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
611 [EditorBrowsable(EditorBrowsableState.Never)]
612 public static readonly BindableProperty MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
614 var viewStyle = (ViewStyle)bindable;
615 viewStyle.minimumSize = (Size2D)newValue;
617 defaultValueCreator: (bindable) =>
619 var viewStyle = (ViewStyle)bindable;
620 return viewStyle.minimumSize;
622 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
623 [EditorBrowsable(EditorBrowsableState.Never)]
624 public static readonly BindableProperty MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
626 var viewStyle = (ViewStyle)bindable;
627 viewStyle.maximumSize = (Size2D)newValue;
629 defaultValueCreator: (bindable) =>
631 var viewStyle = (ViewStyle)bindable;
632 return viewStyle.maximumSize;
634 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
635 [EditorBrowsable(EditorBrowsableState.Never)]
636 public static readonly BindableProperty InheritPositionProperty = BindableProperty.Create(nameof(InheritPosition), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
638 var viewStyle = (ViewStyle)bindable;
639 viewStyle.inheritPosition = (bool?)newValue;
641 defaultValueCreator: (bindable) =>
643 var viewStyle = (ViewStyle)bindable;
644 return viewStyle.inheritPosition;
646 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
647 [EditorBrowsable(EditorBrowsableState.Never)]
648 public static readonly BindableProperty ClippingModeProperty = BindableProperty.Create(nameof(ClippingMode), typeof(ClippingModeType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
650 var viewStyle = (ViewStyle)bindable;
651 viewStyle.clippingMode = (ClippingModeType?)newValue;
653 defaultValueCreator: (bindable) =>
655 var viewStyle = (ViewStyle)bindable;
656 return viewStyle.clippingMode;
658 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
659 [EditorBrowsable(EditorBrowsableState.Never)]
660 public static readonly BindableProperty SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
662 var viewStyle = (ViewStyle)bindable;
663 viewStyle.size = (Size)newValue;
665 defaultValueCreator: (bindable) =>
667 var viewStyle = (ViewStyle)bindable;
668 return viewStyle.size;
670 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
671 [EditorBrowsable(EditorBrowsableState.Never)]
672 public static readonly BindableProperty InheritLayoutDirectionProperty = BindableProperty.Create(nameof(InheritLayoutDirection), typeof(bool?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
674 var viewStyle = (ViewStyle)bindable;
675 viewStyle.inheritLayoutDirection = (bool?)newValue;
677 defaultValueCreator: (bindable) =>
679 var viewStyle = (ViewStyle)bindable;
680 return viewStyle.inheritLayoutDirection;
682 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
683 [EditorBrowsable(EditorBrowsableState.Never)]
684 public static readonly BindableProperty LayoutDirectionProperty = BindableProperty.Create(nameof(LayoutDirection), typeof(ViewLayoutDirectionType?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
686 var viewStyle = (ViewStyle)bindable;
687 viewStyle.layoutDirection = (ViewLayoutDirectionType?)newValue;
689 defaultValueCreator: (bindable) =>
691 var viewStyle = (ViewStyle)bindable;
692 return viewStyle.layoutDirection;
694 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
695 [EditorBrowsable(EditorBrowsableState.Never)]
696 public static readonly BindableProperty MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
698 var viewStyle = (ViewStyle)bindable;
699 if (null == viewStyle.margin) viewStyle.margin = new Extents(viewStyle.OnMarginChanged, 0, 0, 0, 0);
700 viewStyle.margin.CopyFrom(null == newValue ? new Extents() : (Extents)newValue);
702 defaultValueCreator: (bindable) =>
704 var viewStyle = (ViewStyle)bindable;
705 return viewStyle.margin;
707 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
708 [EditorBrowsable(EditorBrowsableState.Never)]
709 public static readonly BindableProperty WeightProperty = BindableProperty.Create(nameof(Weight), typeof(float?), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
711 var viewStyle = (ViewStyle)bindable;
712 viewStyle.weight = (float?)newValue;
714 defaultValueCreator: (bindable) =>
716 var viewStyle = (ViewStyle)bindable;
717 return viewStyle.weight;
719 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
720 [EditorBrowsable(EditorBrowsableState.Never)]
721 public static readonly BindableProperty BackgroundColorSelectorProperty = BindableProperty.Create("BackgroundColorSelector", typeof(Selector<Color>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
723 var viewStyle = (ViewStyle)bindable;
724 if (null == viewStyle.backgroundColorSelector) viewStyle.backgroundColorSelector = new Selector<Color>();
725 viewStyle.backgroundColorSelector.Clone(null == newValue ? new Selector<Color>() : (Selector<Color>)newValue);
727 defaultValueCreator: (bindable) =>
729 var viewStyle = (ViewStyle)bindable;
730 return viewStyle.backgroundColorSelector;
732 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
733 [EditorBrowsable(EditorBrowsableState.Never)]
734 public static readonly BindableProperty BackgroundImageBorderSelectorProperty = BindableProperty.Create("BackgroundImageBorderSelector", typeof(Selector<Rectangle>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
736 var viewStyle = (ViewStyle)bindable;
737 if (null == viewStyle.backgroundImageBorderSelector) viewStyle.backgroundImageBorderSelector = new Selector<Rectangle>();
739 viewStyle.backgroundImageBorderSelector.Clone(newValue == null ? new Selector<Rectangle>() : (Selector<Rectangle>)newValue);
741 defaultValueCreator: (bindable) =>
743 var viewStyle = (ViewStyle)bindable;
744 return viewStyle.backgroundImageBorderSelector;
747 /// A BindableProperty for ImageShadow
748 [EditorBrowsable(EditorBrowsableState.Never)]
749 public static readonly BindableProperty ImageShadowProperty = BindableProperty.Create(nameof(ImageShadow), typeof(Selector<ImageShadow>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
751 var viewStyle = (ViewStyle)bindable;
752 viewStyle.imageShadow = SelectorHelper<ImageShadow>.Clone(newValue);
754 if (viewStyle.imageShadow != null) viewStyle.boxShadow = null;
756 defaultValueCreator: (bindable) =>
758 var viewStyle = (ViewStyle)bindable;
759 return viewStyle.imageShadow;
762 /// A BindableProperty for BoxShadow
763 [EditorBrowsable(EditorBrowsableState.Never)]
764 public static readonly BindableProperty BoxShadowProperty = BindableProperty.Create(nameof(BoxShadow), typeof(Selector<ImageShadow>), typeof(ViewStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
766 var viewStyle = (ViewStyle)bindable;
767 viewStyle.boxShadow = SelectorHelper<Shadow>.Clone(newValue);
769 if (viewStyle.boxShadow != null) viewStyle.imageShadow = null;
771 defaultValueCreator: (bindable) =>
773 var viewStyle = (ViewStyle)bindable;
774 return viewStyle.boxShadow;
777 private string styleName;
778 private string backgroundImage;
779 private View.States? state;
780 private View.States? subState;
782 private int? alignSelf;
783 private Vector4 flexMargin;
784 private Vector2 cellIndex;
785 private float? rowSpan;
786 private float? columnSpan;
787 private HorizontalAlignmentType? cellHorizontalAlignment;
788 private VerticalAlignmentType? cellVerticalAlignment;
789 private View leftFocusableView;
790 private View rightFocusableView;
791 private View upFocusableView;
792 private View downFocusableView;
793 private bool? focusable;
794 private Size2D size2D;
795 private Position2D position2D;
796 private bool? positionUsesPivotPoint;
797 private int? siblingOrder;
798 private Position parentOrigin;
799 private Position pivotPoint;
800 private float? sizeWidth;
801 private float? sizeHeight;
802 private Position position;
803 private float? positionX;
804 private float? positionY;
805 private float? positionZ;
806 private Rotation orientation;
807 private Vector3 scale;
808 private float? scaleX;
809 private float? scaleY;
810 private float? scaleZ;
812 private bool? sensitive;
813 private bool? leaveRequired;
814 private bool? inheritOrientation;
815 private bool? inheritScale;
816 private DrawModeType? drawMode;
817 private Vector3 sizeModeFactor;
818 private ResizePolicyType? widthResizePolicy;
819 private ResizePolicyType? heightResizePolicy;
820 private SizeScalePolicyType? sizeScalePolicy;
821 private bool? widthForHeight;
822 private bool? heightForWidth;
823 private Extents padding;
824 private Size2D minimumSize;
825 private Size2D maximumSize;
826 private bool? inheritPosition;
827 private ClippingModeType? clippingMode;
829 private bool? inheritLayoutDirection;
830 private ViewLayoutDirectionType? layoutDirection;
831 private Extents margin;
832 private float? weight;
834 private Selector<ImageShadow> imageShadow;
835 private Selector<Shadow> boxShadow;
836 private Selector<string> backgroundImageSelector;
837 private Selector<float?> opacitySelector;
838 private Selector<Color> backgroundColorSelector;
839 private Selector<Rectangle> backgroundImageBorderSelector;
841 static ViewStyle() {}
843 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
844 [EditorBrowsable(EditorBrowsableState.Never)]
845 public ViewStyle() { }
847 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
848 [EditorBrowsable(EditorBrowsableState.Never)]
849 public ViewStyle(ViewStyle viewAttributes)
851 if (null != viewAttributes)
853 this.CopyFrom(viewAttributes);
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)]
859 public string StyleName
861 get => (string)GetValue(StyleNameProperty);
862 set => SetValue(StyleNameProperty, 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 Selector<string> BackgroundImage
871 Selector<string> image = (Selector<string>)GetValue(BackgroundImageSelectorProperty);
872 return (null != image) ? image : backgroundImageSelector = new Selector<string>();
874 set => SetValue(BackgroundImageSelectorProperty, value);
877 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
878 [EditorBrowsable(EditorBrowsableState.Never)]
879 public View.States? State
881 get => (View.States?)GetValue(StateProperty);
882 set => SetValue(StateProperty, value);
885 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
886 [EditorBrowsable(EditorBrowsableState.Never)]
887 public View.States? SubState
889 get => (View.States?)GetValue(SubStateProperty);
890 set => SetValue(SubStateProperty, value);
893 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
894 [EditorBrowsable(EditorBrowsableState.Never)]
897 get => (float?)GetValue(FlexProperty);
898 set => SetValue(FlexProperty, value);
901 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
902 [EditorBrowsable(EditorBrowsableState.Never)]
903 public int? AlignSelf
905 get => (int?)GetValue(AlignSelfProperty);
906 set => SetValue(AlignSelfProperty, value);
909 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
910 [EditorBrowsable(EditorBrowsableState.Never)]
911 public Vector4 FlexMargin
913 get => (Vector4)GetValue(FlexMarginProperty);
914 set => SetValue(FlexMarginProperty, value);
917 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
918 [EditorBrowsable(EditorBrowsableState.Never)]
919 public Vector2 CellIndex
921 get => (Vector2)GetValue(CellIndexProperty);
922 set => SetValue(CellIndexProperty, value);
925 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
926 [EditorBrowsable(EditorBrowsableState.Never)]
927 public float? RowSpan
929 get => (float?)GetValue(RowSpanProperty);
930 set => SetValue(RowSpanProperty, value);
933 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
934 [EditorBrowsable(EditorBrowsableState.Never)]
935 public float? ColumnSpan
937 get => (float?)GetValue(ColumnSpanProperty);
938 set => SetValue(ColumnSpanProperty, value);
941 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
942 [EditorBrowsable(EditorBrowsableState.Never)]
943 public HorizontalAlignmentType? CellHorizontalAlignment
945 get => (HorizontalAlignmentType?)GetValue(CellHorizontalAlignmentProperty);
946 set => SetValue(CellHorizontalAlignmentProperty, value);
949 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
950 [EditorBrowsable(EditorBrowsableState.Never)]
951 public VerticalAlignmentType? CellVerticalAlignment
953 get => (VerticalAlignmentType?)GetValue(CellVerticalAlignmentProperty);
954 set => SetValue(CellVerticalAlignmentProperty, value);
957 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
958 [EditorBrowsable(EditorBrowsableState.Never)]
959 public View LeftFocusableView
961 get => (View)GetValue(LeftFocusableViewProperty);
962 set => SetValue(LeftFocusableViewProperty, value);
965 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
966 [EditorBrowsable(EditorBrowsableState.Never)]
967 public View RightFocusableView
969 get => (View)GetValue(RightFocusableViewProperty);
970 set => SetValue(RightFocusableViewProperty, value);
973 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
974 [EditorBrowsable(EditorBrowsableState.Never)]
975 public View UpFocusableView
977 get => (View)GetValue(UpFocusableViewProperty);
978 set => SetValue(UpFocusableViewProperty, value);
981 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
982 [EditorBrowsable(EditorBrowsableState.Never)]
983 public View DownFocusableView
985 get => (View)GetValue(DownFocusableViewProperty);
986 set => SetValue(DownFocusableViewProperty, value);
989 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
990 [EditorBrowsable(EditorBrowsableState.Never)]
991 public bool? Focusable
993 get => (bool?)GetValue(FocusableProperty);
994 set => SetValue(FocusableProperty, value);
997 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
998 [EditorBrowsable(EditorBrowsableState.Never)]
1001 get => (Size2D)GetValue(Size2DProperty);
1002 set => SetValue(Size2DProperty, value);
1005 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1006 [EditorBrowsable(EditorBrowsableState.Never)]
1007 public Selector<float?> Opacity
1011 Selector<float?> opacity = (Selector<float?>)GetValue(OpacitySelectorProperty);
1012 return (null != opacity) ? opacity : opacitySelector = new Selector<float?>();
1014 set => SetValue(OpacitySelectorProperty, value);
1017 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1018 [EditorBrowsable(EditorBrowsableState.Never)]
1019 public Position2D Position2D
1021 get => (Position2D)GetValue(Position2DProperty);
1022 set => SetValue(Position2DProperty, value);
1025 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1026 [EditorBrowsable(EditorBrowsableState.Never)]
1027 public bool? PositionUsesPivotPoint
1029 get => (bool?)GetValue(PositionUsesPivotPointProperty);
1030 set => SetValue(PositionUsesPivotPointProperty, value);
1033 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1034 [EditorBrowsable(EditorBrowsableState.Never)]
1035 public int? SiblingOrder
1037 get => (int?)GetValue(SiblingOrderProperty);
1038 set => SetValue(SiblingOrderProperty, value);
1041 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1042 [EditorBrowsable(EditorBrowsableState.Never)]
1043 public Position ParentOrigin
1045 get => (Position)GetValue(ParentOriginProperty);
1046 set => SetValue(ParentOriginProperty, value);
1049 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1050 [EditorBrowsable(EditorBrowsableState.Never)]
1051 public Position PivotPoint
1053 get => (Position)GetValue(PivotPointProperty);
1054 set => SetValue(PivotPointProperty, value);
1057 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1058 [EditorBrowsable(EditorBrowsableState.Never)]
1059 public float? SizeWidth
1061 get => (float?)GetValue(SizeWidthProperty);
1062 set => SetValue(SizeWidthProperty, value);
1065 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1066 [EditorBrowsable(EditorBrowsableState.Never)]
1067 public float? SizeHeight
1069 get => (float?)GetValue(SizeHeightProperty);
1070 set => SetValue(SizeHeightProperty, value);
1073 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1074 [EditorBrowsable(EditorBrowsableState.Never)]
1075 public Position Position
1077 get => (Position)GetValue(PositionProperty);
1078 set => SetValue(PositionProperty, value);
1081 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1082 [EditorBrowsable(EditorBrowsableState.Never)]
1083 public float? PositionX
1085 get => (float?)GetValue(PositionXProperty);
1086 set => SetValue(PositionXProperty, value);
1089 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1090 [EditorBrowsable(EditorBrowsableState.Never)]
1091 public float? PositionY
1093 get => (float?)GetValue(PositionYProperty);
1094 set => SetValue(PositionYProperty, value);
1097 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1098 [EditorBrowsable(EditorBrowsableState.Never)]
1099 public float? PositionZ
1101 get => (float?)GetValue(PositionZProperty);
1102 set => SetValue(PositionZProperty, value);
1105 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1106 [EditorBrowsable(EditorBrowsableState.Never)]
1107 public Rotation Orientation
1109 get => (Rotation)GetValue(OrientationProperty);
1110 set => SetValue(OrientationProperty, value);
1113 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1114 [EditorBrowsable(EditorBrowsableState.Never)]
1115 public Vector3 Scale
1117 get => (Vector3)GetValue(ScaleProperty);
1118 set => SetValue(ScaleProperty, value);
1121 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1122 [EditorBrowsable(EditorBrowsableState.Never)]
1123 public float? ScaleX
1125 get => (float?)GetValue(ScaleXProperty);
1126 set => SetValue(ScaleXProperty, value);
1129 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1130 [EditorBrowsable(EditorBrowsableState.Never)]
1131 public float? ScaleY
1133 get => (float?)GetValue(ScaleYProperty);
1134 set => SetValue(ScaleYProperty, value);
1137 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1138 [EditorBrowsable(EditorBrowsableState.Never)]
1139 public float? ScaleZ
1141 get => (float?)GetValue(ScaleZProperty);
1142 set => SetValue(ScaleZProperty, value);
1145 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1146 [EditorBrowsable(EditorBrowsableState.Never)]
1149 get => (string)GetValue(NameProperty);
1150 set => SetValue(NameProperty, value);
1153 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1154 [EditorBrowsable(EditorBrowsableState.Never)]
1155 public bool? Sensitive
1157 get => (bool?)GetValue(SensitiveProperty);
1158 set => SetValue(SensitiveProperty, value);
1161 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1162 [EditorBrowsable(EditorBrowsableState.Never)]
1163 public bool? LeaveRequired
1165 get => (bool?)GetValue(LeaveRequiredProperty);
1166 set => SetValue(LeaveRequiredProperty, value);
1169 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1170 [EditorBrowsable(EditorBrowsableState.Never)]
1171 public bool? InheritOrientation
1173 get => (bool?)GetValue(InheritOrientationProperty);
1174 set => SetValue(InheritOrientationProperty, value);
1177 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1178 [EditorBrowsable(EditorBrowsableState.Never)]
1179 public bool? InheritScale
1181 get => (bool?)GetValue(InheritScaleProperty);
1182 set => SetValue(InheritScaleProperty, value);
1185 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1186 [EditorBrowsable(EditorBrowsableState.Never)]
1187 public DrawModeType? DrawMode
1189 get => (DrawModeType?)GetValue(DrawModeProperty);
1190 set => SetValue(DrawModeProperty, value);
1193 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1194 [EditorBrowsable(EditorBrowsableState.Never)]
1195 public Vector3 SizeModeFactor
1197 get => (Vector3)GetValue(SizeModeFactorProperty);
1198 set => SetValue(SizeModeFactorProperty, value);
1201 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1202 [EditorBrowsable(EditorBrowsableState.Never)]
1203 public ResizePolicyType? WidthResizePolicy
1205 get => (ResizePolicyType?)GetValue(WidthResizePolicyProperty);
1206 set => SetValue(WidthResizePolicyProperty, value);
1209 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1210 [EditorBrowsable(EditorBrowsableState.Never)]
1211 public ResizePolicyType? HeightResizePolicy
1213 get => (ResizePolicyType?)GetValue(HeightResizePolicyProperty);
1214 set => SetValue(HeightResizePolicyProperty, value);
1217 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1218 [EditorBrowsable(EditorBrowsableState.Never)]
1219 public SizeScalePolicyType? SizeScalePolicy
1221 get => (SizeScalePolicyType?)GetValue(SizeScalePolicyProperty);
1222 set => SetValue(SizeScalePolicyProperty, value);
1225 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1226 [EditorBrowsable(EditorBrowsableState.Never)]
1227 public bool? WidthForHeight
1229 get => (bool?)GetValue(WidthForHeightProperty);
1230 set => SetValue(WidthForHeightProperty, value);
1233 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1234 [EditorBrowsable(EditorBrowsableState.Never)]
1235 public bool? HeightForWidth
1237 get => (bool?)GetValue(HeightForWidthProperty);
1238 set => SetValue(HeightForWidthProperty, value);
1241 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1242 [EditorBrowsable(EditorBrowsableState.Never)]
1243 public Extents Padding
1247 Extents tmp = (Extents)GetValue(PaddingProperty);
1248 return (null != tmp) ? tmp : padding = new Extents(OnPaddingChanged, 0, 0, 0, 0);
1250 set => SetValue(PaddingProperty, value);
1253 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1254 [EditorBrowsable(EditorBrowsableState.Never)]
1255 public Size2D MinimumSize
1257 get => (Size2D)GetValue(MinimumSizeProperty);
1258 set => SetValue(MinimumSizeProperty, value);
1261 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1262 [EditorBrowsable(EditorBrowsableState.Never)]
1263 public Size2D MaximumSize
1265 get => (Size2D)GetValue(MaximumSizeProperty);
1266 set => SetValue(MaximumSizeProperty, value);
1269 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1270 [EditorBrowsable(EditorBrowsableState.Never)]
1271 public bool? InheritPosition
1273 get => (bool?)GetValue(InheritPositionProperty);
1274 set => SetValue(InheritPositionProperty, value);
1277 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1278 [EditorBrowsable(EditorBrowsableState.Never)]
1279 public ClippingModeType? ClippingMode
1281 get => (ClippingModeType?)GetValue(ClippingModeProperty);
1282 set => SetValue(ClippingModeProperty, value);
1285 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1286 [EditorBrowsable(EditorBrowsableState.Never)]
1291 Size tmp = (Size)GetValue(SizeProperty);
1292 return (null != tmp) ? tmp : size = new Size((float width, float height, float depth) => { Size = new Size(width, height, depth); }, 0, 0, 0);
1294 set => SetValue(SizeProperty, value);
1297 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1298 [EditorBrowsable(EditorBrowsableState.Never)]
1299 public bool? InheritLayoutDirection
1301 get => (bool?)GetValue(InheritLayoutDirectionProperty);
1302 set => SetValue(InheritLayoutDirectionProperty, value);
1305 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1306 [EditorBrowsable(EditorBrowsableState.Never)]
1307 public ViewLayoutDirectionType? LayoutDirection
1309 get => (ViewLayoutDirectionType?)GetValue(LayoutDirectionProperty);
1310 set => SetValue(LayoutDirectionProperty, value);
1313 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1314 [EditorBrowsable(EditorBrowsableState.Never)]
1315 public Extents Margin
1319 Extents tmp = (Extents)GetValue(MarginProperty);
1320 return (null != tmp) ? tmp : margin = new Extents(OnMarginChanged, 0, 0, 0, 0);
1322 set => SetValue(MarginProperty, value);
1325 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1326 [EditorBrowsable(EditorBrowsableState.Never)]
1327 public float? Weight
1329 get => (float?)GetValue(WeightProperty);
1330 set => SetValue(WeightProperty, value);
1333 /// <summary> View BackgroundColor </summary>
1334 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1335 [EditorBrowsable(EditorBrowsableState.Never)]
1336 public Selector<Color> BackgroundColor
1340 Selector<Color> color = (Selector<Color>)GetValue(BackgroundColorSelectorProperty);
1341 return (null != color) ? color : backgroundColorSelector = new Selector<Color>();
1343 set => SetValue(BackgroundColorSelectorProperty, value);
1346 /// <summary>View BackgroundBorder</summary>
1347 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1348 [EditorBrowsable(EditorBrowsableState.Never)]
1349 public Selector<Rectangle> BackgroundImageBorder
1353 Selector<Rectangle> border = (Selector<Rectangle>)GetValue(BackgroundImageBorderSelectorProperty);
1354 return (null != border) ? border : backgroundImageBorderSelector = new Selector<Rectangle>();
1356 set => SetValue(BackgroundImageBorderSelectorProperty, value);
1360 /// Describes a shadow as an image for a View.
1361 /// It is null by default.
1364 /// The mutually exclusive with "BoxShadow".
1366 [EditorBrowsable(EditorBrowsableState.Never)]
1367 public Selector<ImageShadow> ImageShadow
1369 get => (Selector<ImageShadow>)GetValue(ImageShadowProperty);
1370 set => SetValue(ImageShadowProperty, value);
1374 /// Describes a box shaped shadow drawing for a View.
1375 /// It is null by default.
1378 /// The mutually exclusive with "ImageShadow".
1380 [EditorBrowsable(EditorBrowsableState.Never)]
1381 public Selector<Shadow> BoxShadow
1383 get => (Selector<Shadow>)GetValue(BoxShadowProperty);
1384 set => SetValue(BoxShadowProperty, value);
1387 private void OnPaddingChanged(ushort start, ushort end, ushort top, ushort bottom)
1389 Padding = new Extents(start, end, top, bottom);
1392 private void OnMarginChanged(ushort start, ushort end, ushort top, ushort bottom)
1394 Margin = new Extents(start, end, top, bottom);