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.ComponentModel;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.BaseComponents
24 /// The base class for Children attributes in Components.
26 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
27 [EditorBrowsable(EditorBrowsableState.Never)]
28 public class TextFieldStyle : ViewStyle
30 private string placeholderText;
31 private string placeholderTextFocused;
32 private int? maxLength;
33 private int? exceedPolicy;
34 private HorizontalAlignment? horizontalAlignment;
35 private VerticalAlignment? verticalAlignment;
36 private Vector4 secondaryCursorColor;
37 private bool? enableCursorBlink;
38 private float? cursorBlinkInterval;
39 private float? cursorBlinkDuration;
40 private int? cursorWidth;
41 private string grabHandleImage;
42 private string grabHandlePressedImage;
43 private float? scrollThreshold;
44 private float? scrollSpeed;
45 private Vector4 selectionHighlightColor;
46 private Rectangle decorationBoundingBox;
47 private Vector4 inputColor;
48 private bool? enableMarkup;
49 private string inputFontFamily;
50 private float? inputPointSize;
51 private string inputUnderline;
52 private string inputShadow;
53 private string emboss;
54 private string inputEmboss;
55 private string inputOutline;
56 private float? pixelSize;
57 private bool? enableSelection;
58 private bool? ellipsis;
59 private bool? matchSystemLanguageDirection;
61 static TextFieldStyle() { }
63 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
64 [EditorBrowsable(EditorBrowsableState.Never)]
65 public static readonly BindableProperty TranslatableTextSelectorProperty = BindableProperty.Create("TranslatableTextSelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
67 var textFieldStyle = (TextFieldStyle)bindable;
68 if (null == textFieldStyle.translatableTextSelector)
70 textFieldStyle.translatableTextSelector = new Selector<string>();
72 textFieldStyle.translatableTextSelector.Clone((Selector<string>)newValue);
74 defaultValueCreator: (bindable) =>
76 var textFieldStyle = (TextFieldStyle)bindable;
77 return textFieldStyle.translatableTextSelector;
79 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
80 [EditorBrowsable(EditorBrowsableState.Never)]
81 public static readonly BindableProperty TranslatablePlaceholderTextSelectorProperty = BindableProperty.Create("TranslatablePlaceholderTextSelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
83 var textFieldStyle = (TextFieldStyle)bindable;
84 if (null == textFieldStyle.translatablePlaceholderTextSelector)
86 textFieldStyle.translatablePlaceholderTextSelector = new Selector<string>();
88 textFieldStyle.translatablePlaceholderTextSelector.Clone((Selector<string>)newValue);
90 defaultValueCreator: (bindable) =>
92 var textFieldStyle = (TextFieldStyle)bindable;
93 return textFieldStyle.translatablePlaceholderTextSelector;
95 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
96 [EditorBrowsable(EditorBrowsableState.Never)]
97 public static readonly BindableProperty TextSelectorProperty = BindableProperty.Create(nameof(Text), typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
99 var textFieldStyle = (TextFieldStyle)bindable;
100 if (null == textFieldStyle.textSelector)
102 textFieldStyle.textSelector = new Selector<string>();
104 textFieldStyle.textSelector.Clone((Selector<string>)newValue);
106 defaultValueCreator: (bindable) =>
108 var textFieldStyle = (TextFieldStyle)bindable;
109 return textFieldStyle.textSelector;
111 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
112 [EditorBrowsable(EditorBrowsableState.Never)]
113 public static readonly BindableProperty FontFamilySelectorProperty = BindableProperty.Create("FontFamilySelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
115 var textFieldStyle = (TextFieldStyle)bindable;
116 if (null == textFieldStyle.fontFamilySelector)
118 textFieldStyle.fontFamilySelector = new Selector<string>();
120 textFieldStyle.fontFamilySelector.Clone((Selector<string>)newValue);
122 defaultValueCreator: (bindable) =>
124 var textFieldStyle = (TextFieldStyle)bindable;
125 return textFieldStyle.fontFamilySelector;
127 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
128 [EditorBrowsable(EditorBrowsableState.Never)]
129 public static readonly BindableProperty PointSizeSelectorProperty = BindableProperty.Create("PointSizeSelector", typeof(Selector<float?>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
131 var textFieldStyle = (TextFieldStyle)bindable;
132 if (null == textFieldStyle.pointSizeSelector)
134 textFieldStyle.pointSizeSelector = new Selector<float?>();
136 textFieldStyle.pointSizeSelector.Clone((Selector<float?>)newValue);
138 defaultValueCreator: (bindable) =>
140 var textFieldStyle = (TextFieldStyle)bindable;
141 return textFieldStyle.pointSizeSelector;
143 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
144 [EditorBrowsable(EditorBrowsableState.Never)]
145 public static readonly BindableProperty TextColorSelectorProperty = BindableProperty.Create("TextColorSelector", typeof(Selector<Color>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
147 var textFieldStyle = (TextFieldStyle)bindable;
148 if (null == textFieldStyle.textColorSelector)
150 textFieldStyle.textColorSelector = new Selector<Color>();
152 textFieldStyle.textColorSelector.Clone((Selector<Color>)newValue);
154 defaultValueCreator: (bindable) =>
156 var textFieldStyle = (TextFieldStyle)bindable;
157 return textFieldStyle.textColorSelector;
159 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
160 [EditorBrowsable(EditorBrowsableState.Never)]
161 public static readonly BindableProperty PlaceholderTextColorSelectorProperty = BindableProperty.Create("PlaceholderTextColorSelector", typeof(Selector<Vector4>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
163 var textFieldStyle = (TextFieldStyle)bindable;
164 if (null == textFieldStyle.placeholderTextColorSelector)
166 textFieldStyle.placeholderTextColorSelector = new Selector<Vector4>();
168 textFieldStyle.placeholderTextColorSelector.Clone((Selector<Vector4>)newValue);
170 defaultValueCreator: (bindable) =>
172 var textFieldStyle = (TextFieldStyle)bindable;
173 return textFieldStyle.placeholderTextColorSelector;
175 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
176 [EditorBrowsable(EditorBrowsableState.Never)]
177 public static readonly BindableProperty PrimaryCursorColorSelectorProperty = BindableProperty.Create("PrimaryCursorColorSelector", typeof(Selector<Vector4>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
179 var textFieldStyle = (TextFieldStyle)bindable;
180 if (null == textFieldStyle.primaryCursorColorSelector)
182 textFieldStyle.primaryCursorColorSelector = new Selector<Vector4>();
184 textFieldStyle.primaryCursorColorSelector.Clone((Selector<Vector4>)newValue);
186 defaultValueCreator: (bindable) =>
188 var textFieldStyle = (TextFieldStyle)bindable;
189 return textFieldStyle.primaryCursorColorSelector;
192 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
193 [EditorBrowsable(EditorBrowsableState.Never)]
194 public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create(nameof(PlaceholderText), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
196 var textFieldStyle = (TextFieldStyle)bindable;
197 textFieldStyle.placeholderText = (string)newValue;
199 defaultValueCreator: (bindable) =>
201 var textFieldStyle = (TextFieldStyle)bindable;
202 return textFieldStyle.placeholderText;
204 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
205 [EditorBrowsable(EditorBrowsableState.Never)]
206 public static readonly BindableProperty PlaceholderTextFocusedProperty = BindableProperty.Create(nameof(PlaceholderTextFocused), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
208 var textFieldStyle = (TextFieldStyle)bindable;
209 textFieldStyle.placeholderTextFocused = (string)newValue;
211 defaultValueCreator: (bindable) =>
213 var textFieldStyle = (TextFieldStyle)bindable;
214 return textFieldStyle.placeholderTextFocused;
216 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
217 [EditorBrowsable(EditorBrowsableState.Never)]
218 public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create(nameof(MaxLength), typeof(int?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
220 var textFieldStyle = (TextFieldStyle)bindable;
221 textFieldStyle.maxLength = (int?)newValue;
223 defaultValueCreator: (bindable) =>
225 var textFieldStyle = (TextFieldStyle)bindable;
226 return textFieldStyle.maxLength;
228 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
229 [EditorBrowsable(EditorBrowsableState.Never)]
230 public static readonly BindableProperty ExceedPolicyProperty = BindableProperty.Create(nameof(ExceedPolicy), typeof(int?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
232 var textFieldStyle = (TextFieldStyle)bindable;
233 textFieldStyle.exceedPolicy = (int?)newValue;
235 defaultValueCreator: (bindable) =>
237 var textFieldStyle = (TextFieldStyle)bindable;
238 return textFieldStyle.exceedPolicy;
240 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
241 [EditorBrowsable(EditorBrowsableState.Never)]
242 public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create(nameof(HorizontalAlignment), typeof(HorizontalAlignment?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
244 var textFieldStyle = (TextFieldStyle)bindable;
245 textFieldStyle.horizontalAlignment = (HorizontalAlignment?)newValue;
247 defaultValueCreator: (bindable) =>
249 var textFieldStyle = (TextFieldStyle)bindable;
250 return textFieldStyle.horizontalAlignment;
252 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
253 [EditorBrowsable(EditorBrowsableState.Never)]
254 public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create(nameof(VerticalAlignment), typeof(VerticalAlignment?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
256 var textFieldStyle = (TextFieldStyle)bindable;
257 textFieldStyle.verticalAlignment = (VerticalAlignment?)newValue;
259 defaultValueCreator: (bindable) =>
261 var textFieldStyle = (TextFieldStyle)bindable;
262 return textFieldStyle.verticalAlignment;
264 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
265 [EditorBrowsable(EditorBrowsableState.Never)]
266 public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create(nameof(SecondaryCursorColor), typeof(Vector4), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
268 var textFieldStyle = (TextFieldStyle)bindable;
269 textFieldStyle.secondaryCursorColor = (Vector4)newValue;
271 defaultValueCreator: (bindable) =>
273 var textFieldStyle = (TextFieldStyle)bindable;
274 return textFieldStyle.secondaryCursorColor;
276 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
277 [EditorBrowsable(EditorBrowsableState.Never)]
278 public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create(nameof(EnableCursorBlink), typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
280 var textFieldStyle = (TextFieldStyle)bindable;
281 textFieldStyle.enableCursorBlink = (bool?)newValue;
283 defaultValueCreator: (bindable) =>
285 var textFieldStyle = (TextFieldStyle)bindable;
286 return textFieldStyle.enableCursorBlink;
288 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
289 [EditorBrowsable(EditorBrowsableState.Never)]
290 public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create(nameof(CursorBlinkInterval), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
292 var textFieldStyle = (TextFieldStyle)bindable;
293 textFieldStyle.cursorBlinkInterval = (float?)newValue;
295 defaultValueCreator: (bindable) =>
297 var textFieldStyle = (TextFieldStyle)bindable;
298 return textFieldStyle.cursorBlinkInterval;
300 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
301 [EditorBrowsable(EditorBrowsableState.Never)]
302 public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create(nameof(CursorBlinkDuration), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
304 var textFieldStyle = (TextFieldStyle)bindable;
305 textFieldStyle.cursorBlinkDuration = (float?)newValue;
307 defaultValueCreator: (bindable) =>
309 var textFieldStyle = (TextFieldStyle)bindable;
310 return textFieldStyle.cursorBlinkDuration;
312 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
313 [EditorBrowsable(EditorBrowsableState.Never)]
314 public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create(nameof(CursorWidth), typeof(int?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
316 var textFieldStyle = (TextFieldStyle)bindable;
317 textFieldStyle.cursorWidth = (int?)newValue;
319 defaultValueCreator: (bindable) =>
321 var textFieldStyle = (TextFieldStyle)bindable;
322 return textFieldStyle.cursorWidth;
324 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
325 [EditorBrowsable(EditorBrowsableState.Never)]
326 public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create(nameof(GrabHandleImage), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
328 var textFieldStyle = (TextFieldStyle)bindable;
329 textFieldStyle.grabHandleImage = (string)newValue;
331 defaultValueCreator: (bindable) =>
333 var textFieldStyle = (TextFieldStyle)bindable;
334 return textFieldStyle.grabHandleImage;
336 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
337 [EditorBrowsable(EditorBrowsableState.Never)]
338 public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create(nameof(GrabHandlePressedImage), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
340 var textFieldStyle = (TextFieldStyle)bindable;
341 textFieldStyle.grabHandlePressedImage = (string)newValue;
343 defaultValueCreator: (bindable) =>
345 var textFieldStyle = (TextFieldStyle)bindable;
346 return textFieldStyle.grabHandlePressedImage;
348 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
349 [EditorBrowsable(EditorBrowsableState.Never)]
350 public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create(nameof(ScrollThreshold), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
352 var textFieldStyle = (TextFieldStyle)bindable;
353 textFieldStyle.scrollThreshold = (float?)newValue;
355 defaultValueCreator: (bindable) =>
357 var textFieldStyle = (TextFieldStyle)bindable;
358 return textFieldStyle.scrollThreshold;
360 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
361 [EditorBrowsable(EditorBrowsableState.Never)]
362 public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create(nameof(ScrollSpeed), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
364 var textFieldStyle = (TextFieldStyle)bindable;
365 textFieldStyle.scrollSpeed = (float?)newValue;
367 defaultValueCreator: (bindable) =>
369 var textFieldStyle = (TextFieldStyle)bindable;
370 return textFieldStyle.scrollSpeed;
372 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
373 [EditorBrowsable(EditorBrowsableState.Never)]
374 public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create(nameof(SelectionHighlightColor), typeof(Vector4), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
376 var textFieldStyle = (TextFieldStyle)bindable;
377 textFieldStyle.selectionHighlightColor = (Vector4)newValue;
379 defaultValueCreator: (bindable) =>
381 var textFieldStyle = (TextFieldStyle)bindable;
382 return textFieldStyle.selectionHighlightColor;
384 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
385 [EditorBrowsable(EditorBrowsableState.Never)]
386 public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create(nameof(DecorationBoundingBox), typeof(Rectangle), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
388 var textFieldStyle = (TextFieldStyle)bindable;
389 textFieldStyle.decorationBoundingBox = (Rectangle)newValue;
391 defaultValueCreator: (bindable) =>
393 var textFieldStyle = (TextFieldStyle)bindable;
394 return textFieldStyle.decorationBoundingBox;
396 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
397 [EditorBrowsable(EditorBrowsableState.Never)]
398 public static readonly BindableProperty InputColorProperty = BindableProperty.Create(nameof(InputColor), typeof(Vector4), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
400 var textFieldStyle = (TextFieldStyle)bindable;
401 textFieldStyle.inputColor = (Vector4)newValue;
403 defaultValueCreator: (bindable) =>
405 var textFieldStyle = (TextFieldStyle)bindable;
406 return textFieldStyle.inputColor;
408 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
409 [EditorBrowsable(EditorBrowsableState.Never)]
410 public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create(nameof(EnableMarkup), typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
412 var textFieldStyle = (TextFieldStyle)bindable;
413 textFieldStyle.enableMarkup = (bool?)newValue;
415 defaultValueCreator: (bindable) =>
417 var textFieldStyle = (TextFieldStyle)bindable;
418 return textFieldStyle.enableMarkup;
420 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
421 [EditorBrowsable(EditorBrowsableState.Never)]
422 public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create(nameof(InputFontFamily), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
424 var textFieldStyle = (TextFieldStyle)bindable;
425 textFieldStyle.inputFontFamily = (string)newValue;
427 defaultValueCreator: (bindable) =>
429 var textFieldStyle = (TextFieldStyle)bindable;
430 return textFieldStyle.inputFontFamily;
432 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
433 [EditorBrowsable(EditorBrowsableState.Never)]
434 public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create(nameof(InputPointSize), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
436 var textFieldStyle = (TextFieldStyle)bindable;
437 textFieldStyle.inputPointSize = (float?)newValue;
439 defaultValueCreator: (bindable) =>
441 var textFieldStyle = (TextFieldStyle)bindable;
442 return textFieldStyle.inputPointSize;
444 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
445 [EditorBrowsable(EditorBrowsableState.Never)]
446 public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create(nameof(InputUnderline), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
448 var textFieldStyle = (TextFieldStyle)bindable;
449 textFieldStyle.inputUnderline = (string)newValue;
451 defaultValueCreator: (bindable) =>
453 var textFieldStyle = (TextFieldStyle)bindable;
454 return textFieldStyle.inputUnderline;
456 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
457 [EditorBrowsable(EditorBrowsableState.Never)]
458 public static readonly BindableProperty InputShadowProperty = BindableProperty.Create(nameof(InputShadow), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
460 var textFieldStyle = (TextFieldStyle)bindable;
461 textFieldStyle.inputShadow = (string)newValue;
463 defaultValueCreator: (bindable) =>
465 var textFieldStyle = (TextFieldStyle)bindable;
466 return textFieldStyle.inputShadow;
468 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
469 [EditorBrowsable(EditorBrowsableState.Never)]
470 public static readonly BindableProperty EmbossProperty = BindableProperty.Create(nameof(Emboss), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
472 var textFieldStyle = (TextFieldStyle)bindable;
473 textFieldStyle.emboss = (string)newValue;
475 defaultValueCreator: (bindable) =>
477 var textFieldStyle = (TextFieldStyle)bindable;
478 return textFieldStyle.emboss;
480 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
481 [EditorBrowsable(EditorBrowsableState.Never)]
482 public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create(nameof(InputEmboss), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
484 var textFieldStyle = (TextFieldStyle)bindable;
485 textFieldStyle.inputEmboss = (string)newValue;
487 defaultValueCreator: (bindable) =>
489 var textFieldStyle = (TextFieldStyle)bindable;
490 return textFieldStyle.inputEmboss;
492 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
493 [EditorBrowsable(EditorBrowsableState.Never)]
494 public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create(nameof(InputOutline), typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
496 var textFieldStyle = (TextFieldStyle)bindable;
497 textFieldStyle.inputOutline = (string)newValue;
499 defaultValueCreator: (bindable) =>
501 var textFieldStyle = (TextFieldStyle)bindable;
502 return textFieldStyle.inputOutline;
504 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
505 [EditorBrowsable(EditorBrowsableState.Never)]
506 public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create(nameof(PixelSize), typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
508 var textFieldStyle = (TextFieldStyle)bindable;
509 textFieldStyle.pixelSize = (float?)newValue;
511 defaultValueCreator: (bindable) =>
513 var textFieldStyle = (TextFieldStyle)bindable;
514 return textFieldStyle.pixelSize;
516 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
517 [EditorBrowsable(EditorBrowsableState.Never)]
518 public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create(nameof(EnableSelection), typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
520 var textFieldStyle = (TextFieldStyle)bindable;
521 textFieldStyle.enableSelection = (bool?)newValue;
523 defaultValueCreator: (bindable) =>
525 var textFieldStyle = (TextFieldStyle)bindable;
526 return textFieldStyle.enableSelection;
528 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
529 [EditorBrowsable(EditorBrowsableState.Never)]
530 public static readonly BindableProperty EllipsisProperty = BindableProperty.Create(nameof(Ellipsis), typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
532 var textFieldStyle = (TextFieldStyle)bindable;
533 textFieldStyle.ellipsis = (bool?)newValue;
535 defaultValueCreator: (bindable) =>
537 var textFieldStyle = (TextFieldStyle)bindable;
538 return textFieldStyle.ellipsis;
540 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
541 [EditorBrowsable(EditorBrowsableState.Never)]
542 public static readonly BindableProperty MatchSystemLanguageDirectionProperty = BindableProperty.Create(nameof(MatchSystemLanguageDirection), typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
544 var textFieldStyle = (TextFieldStyle)bindable;
545 textFieldStyle.matchSystemLanguageDirection = (bool?)newValue;
547 defaultValueCreator: (bindable) =>
549 var textFieldStyle = (TextFieldStyle)bindable;
550 return textFieldStyle.matchSystemLanguageDirection;
553 private Selector<string> translatableTextSelector;
554 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
555 [EditorBrowsable(EditorBrowsableState.Never)]
556 public Selector<string> TranslatableText
560 return (Selector<string>)GetValue(TranslatableTextSelectorProperty);
564 SetValue(TranslatableTextSelectorProperty, value);
568 private Selector<string> translatablePlaceholderTextSelector;
569 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
570 [EditorBrowsable(EditorBrowsableState.Never)]
571 public Selector<string> TranslatablePlaceholderText
575 return (Selector<string>)GetValue(TranslatablePlaceholderTextSelectorProperty);
579 SetValue(TranslatablePlaceholderTextSelectorProperty, value);
583 private Selector<string> textSelector;
584 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
585 [EditorBrowsable(EditorBrowsableState.Never)]
586 public Selector<string> Text
590 return (Selector<string>)GetValue(TextSelectorProperty);
594 SetValue(TextSelectorProperty, value);
598 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
599 [EditorBrowsable(EditorBrowsableState.Never)]
600 public string PlaceholderText
604 string temp = (string)GetValue(PlaceholderTextProperty);
609 SetValue(PlaceholderTextProperty, value);
613 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
614 [EditorBrowsable(EditorBrowsableState.Never)]
615 public string PlaceholderTextFocused
619 string temp = (string)GetValue(PlaceholderTextFocusedProperty);
624 SetValue(PlaceholderTextFocusedProperty, value);
628 private Selector<string> fontFamilySelector;
629 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
630 [EditorBrowsable(EditorBrowsableState.Never)]
631 public Selector<string> FontFamily
635 return (Selector<string>)GetValue(FontFamilySelectorProperty);
639 SetValue(FontFamilySelectorProperty, value);
643 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
644 [EditorBrowsable(EditorBrowsableState.Never)]
645 public int? MaxLength
649 int? temp = (int?)GetValue(MaxLengthProperty);
654 SetValue(MaxLengthProperty, value);
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 int? ExceedPolicy
664 int? temp = (int?)GetValue(ExceedPolicyProperty);
669 SetValue(ExceedPolicyProperty, value);
673 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
674 [EditorBrowsable(EditorBrowsableState.Never)]
675 public HorizontalAlignment? HorizontalAlignment
679 HorizontalAlignment? temp = (HorizontalAlignment?)GetValue(HorizontalAlignmentProperty);
684 SetValue(HorizontalAlignmentProperty, value);
688 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
689 [EditorBrowsable(EditorBrowsableState.Never)]
690 public VerticalAlignment? VerticalAlignment
694 VerticalAlignment? temp = (VerticalAlignment?)GetValue(VerticalAlignmentProperty);
699 SetValue(VerticalAlignmentProperty, value);
703 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
704 [EditorBrowsable(EditorBrowsableState.Never)]
705 public Vector4 SecondaryCursorColor
709 Vector4 temp = (Vector4)GetValue(SecondaryCursorColorProperty);
714 SetValue(SecondaryCursorColorProperty, value);
718 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
719 [EditorBrowsable(EditorBrowsableState.Never)]
720 public bool? EnableCursorBlink
724 bool? temp = (bool?)GetValue(EnableCursorBlinkProperty);
729 SetValue(EnableCursorBlinkProperty, value);
733 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
734 [EditorBrowsable(EditorBrowsableState.Never)]
735 public float? CursorBlinkInterval
739 float? temp = (float?)GetValue(CursorBlinkIntervalProperty);
744 SetValue(CursorBlinkIntervalProperty, value);
748 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
749 [EditorBrowsable(EditorBrowsableState.Never)]
750 public float? CursorBlinkDuration
754 float? temp = (float?)GetValue(CursorBlinkDurationProperty);
759 SetValue(CursorBlinkDurationProperty, value);
763 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
764 [EditorBrowsable(EditorBrowsableState.Never)]
765 public int? CursorWidth
769 int? temp = (int?)GetValue(CursorWidthProperty);
774 SetValue(CursorWidthProperty, value);
778 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
779 [EditorBrowsable(EditorBrowsableState.Never)]
780 public string GrabHandleImage
784 string temp = (string)GetValue(GrabHandleImageProperty);
789 SetValue(GrabHandleImageProperty, value);
793 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
794 [EditorBrowsable(EditorBrowsableState.Never)]
795 public string GrabHandlePressedImage
799 string temp = (string)GetValue(GrabHandlePressedImageProperty);
804 SetValue(GrabHandlePressedImageProperty, value);
808 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
809 [EditorBrowsable(EditorBrowsableState.Never)]
810 public float? ScrollThreshold
814 float? temp = (float?)GetValue(ScrollThresholdProperty);
819 SetValue(ScrollThresholdProperty, value);
823 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
824 [EditorBrowsable(EditorBrowsableState.Never)]
825 public float? ScrollSpeed
829 float? temp = (float?)GetValue(ScrollSpeedProperty);
834 SetValue(ScrollSpeedProperty, 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 Vector4 SelectionHighlightColor
844 Vector4 temp = (Vector4)GetValue(SelectionHighlightColorProperty);
849 SetValue(SelectionHighlightColorProperty, value);
853 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
854 [EditorBrowsable(EditorBrowsableState.Never)]
855 public Rectangle DecorationBoundingBox
859 Rectangle temp = (Rectangle)GetValue(DecorationBoundingBoxProperty);
864 SetValue(DecorationBoundingBoxProperty, value);
868 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
869 [EditorBrowsable(EditorBrowsableState.Never)]
870 public Vector4 InputColor
874 Vector4 temp = (Vector4)GetValue(InputColorProperty);
879 SetValue(InputColorProperty, value);
883 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
884 [EditorBrowsable(EditorBrowsableState.Never)]
885 public bool? EnableMarkup
889 bool? temp = (bool?)GetValue(EnableMarkupProperty);
894 SetValue(EnableMarkupProperty, value);
898 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
899 [EditorBrowsable(EditorBrowsableState.Never)]
900 public string InputFontFamily
904 string temp = (string)GetValue(InputFontFamilyProperty);
909 SetValue(InputFontFamilyProperty, value);
913 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
914 [EditorBrowsable(EditorBrowsableState.Never)]
915 public float? InputPointSize
919 float? temp = (float?)GetValue(InputPointSizeProperty);
924 SetValue(InputPointSizeProperty, value);
928 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
929 [EditorBrowsable(EditorBrowsableState.Never)]
930 public string InputUnderline
934 string temp = (string)GetValue(InputUnderlineProperty);
939 SetValue(InputUnderlineProperty, value);
943 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
944 [EditorBrowsable(EditorBrowsableState.Never)]
945 public string InputShadow
949 string temp = (string)GetValue(InputShadowProperty);
954 SetValue(InputShadowProperty, 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)]
964 string temp = (string)GetValue(EmbossProperty);
969 SetValue(EmbossProperty, 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 string InputEmboss
979 string temp = (string)GetValue(InputEmbossProperty);
984 SetValue(InputEmbossProperty, value);
988 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
989 [EditorBrowsable(EditorBrowsableState.Never)]
990 public string InputOutline
994 string temp = (string)GetValue(InputOutlineProperty);
999 SetValue(InputOutlineProperty, 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 float? PixelSize
1009 float? temp = (float?)GetValue(PixelSizeProperty);
1014 SetValue(PixelSizeProperty, value);
1018 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1019 [EditorBrowsable(EditorBrowsableState.Never)]
1020 public bool? EnableSelection
1024 bool? temp = (bool?)GetValue(EnableSelectionProperty);
1029 SetValue(EnableSelectionProperty, 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 bool? Ellipsis
1039 bool? temp = (bool?)GetValue(EllipsisProperty);
1044 SetValue(EllipsisProperty, value);
1048 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1049 [EditorBrowsable(EditorBrowsableState.Never)]
1050 public bool? MatchSystemLanguageDirection
1054 bool? temp = (bool?)GetValue(MatchSystemLanguageDirectionProperty);
1059 SetValue(MatchSystemLanguageDirectionProperty, value);
1063 private Selector<Color> textColorSelector;
1064 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1065 [EditorBrowsable(EditorBrowsableState.Never)]
1066 public Selector<Color> TextColor
1070 return (Selector<Color>)GetValue(TextColorSelectorProperty);
1074 SetValue(TextColorSelectorProperty, value);
1078 private Selector<float?> pointSizeSelector;
1079 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1080 [EditorBrowsable(EditorBrowsableState.Never)]
1081 public Selector<float?> PointSize
1085 return (Selector<float?>)GetValue(PointSizeSelectorProperty);
1089 SetValue(PointSizeSelectorProperty, value);
1093 private Selector<Vector4> placeholderTextColorSelector;
1094 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1095 [EditorBrowsable(EditorBrowsableState.Never)]
1096 public Selector<Vector4> PlaceholderTextColor
1100 return (Selector<Vector4>)GetValue(PlaceholderTextColorSelectorProperty);
1104 SetValue(PlaceholderTextColorSelectorProperty, value);
1108 private Selector<Vector4> primaryCursorColorSelector;
1110 /// Gets or sets primary cursor color.
1112 /// <since_tizen> 6 </since_tizen>
1113 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1114 [EditorBrowsable(EditorBrowsableState.Never)]
1115 public Selector<Vector4> PrimaryCursorColor
1119 return (Selector<Vector4>)GetValue(PrimaryCursorColorSelectorProperty);
1123 SetValue(PrimaryCursorColorSelectorProperty, value);