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;
60 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
61 [EditorBrowsable(EditorBrowsableState.Never)]
62 public static readonly BindableProperty TranslatableTextSelectorProperty = BindableProperty.Create("TranslatableTextSelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
64 var textFieldStyle = (TextFieldStyle)bindable;
65 if (null == textFieldStyle.translatableTextSelector)
67 textFieldStyle.translatableTextSelector = new Selector<string>();
69 textFieldStyle.translatableTextSelector.Clone((Selector<string>)newValue);
71 defaultValueCreator: (bindable) =>
73 var textFieldStyle = (TextFieldStyle)bindable;
74 return textFieldStyle.translatableTextSelector;
76 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
77 [EditorBrowsable(EditorBrowsableState.Never)]
78 public static readonly BindableProperty TranslatablePlaceholderTextSelectorProperty = BindableProperty.Create("TranslatablePlaceholderTextSelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
80 var textFieldStyle = (TextFieldStyle)bindable;
81 if (null == textFieldStyle.translatablePlaceholderTextSelector)
83 textFieldStyle.translatablePlaceholderTextSelector = new Selector<string>();
85 textFieldStyle.translatablePlaceholderTextSelector.Clone((Selector<string>)newValue);
87 defaultValueCreator: (bindable) =>
89 var textFieldStyle = (TextFieldStyle)bindable;
90 return textFieldStyle.translatablePlaceholderTextSelector;
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 TextSelectorProperty = BindableProperty.Create("Text", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
96 var textFieldStyle = (TextFieldStyle)bindable;
97 if (null == textFieldStyle.textSelector)
99 textFieldStyle.textSelector = new Selector<string>();
101 textFieldStyle.textSelector.Clone((Selector<string>)newValue);
103 defaultValueCreator: (bindable) =>
105 var textFieldStyle = (TextFieldStyle)bindable;
106 return textFieldStyle.textSelector;
108 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
109 [EditorBrowsable(EditorBrowsableState.Never)]
110 public static readonly BindableProperty FontFamilySelectorProperty = BindableProperty.Create("FontFamilySelector", typeof(Selector<string>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
112 var textFieldStyle = (TextFieldStyle)bindable;
113 if (null == textFieldStyle.fontFamilySelector)
115 textFieldStyle.fontFamilySelector = new Selector<string>();
117 textFieldStyle.fontFamilySelector.Clone((Selector<string>)newValue);
119 defaultValueCreator: (bindable) =>
121 var textFieldStyle = (TextFieldStyle)bindable;
122 return textFieldStyle.fontFamilySelector;
124 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
125 [EditorBrowsable(EditorBrowsableState.Never)]
126 public static readonly BindableProperty PointSizeSelectorProperty = BindableProperty.Create("PointSizeSelector", typeof(Selector<float?>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
128 var textFieldStyle = (TextFieldStyle)bindable;
129 if (null == textFieldStyle.pointSizeSelector)
131 textFieldStyle.pointSizeSelector = new Selector<float?>();
133 textFieldStyle.pointSizeSelector.Clone((Selector<float?>)newValue);
135 defaultValueCreator: (bindable) =>
137 var textFieldStyle = (TextFieldStyle)bindable;
138 return textFieldStyle.pointSizeSelector;
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 TextColorSelectorProperty = BindableProperty.Create("TextColorSelector", typeof(Selector<Color>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
144 var textFieldStyle = (TextFieldStyle)bindable;
145 if (null == textFieldStyle.textColorSelector)
147 textFieldStyle.textColorSelector = new Selector<Color>();
149 textFieldStyle.textColorSelector.Clone((Selector<Color>)newValue);
151 defaultValueCreator: (bindable) =>
153 var textFieldStyle = (TextFieldStyle)bindable;
154 return textFieldStyle.textColorSelector;
156 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
157 [EditorBrowsable(EditorBrowsableState.Never)]
158 public static readonly BindableProperty PlaceholderTextColorSelectorProperty = BindableProperty.Create("PlaceholderTextColorSelector", typeof(Selector<Color>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
160 var textFieldStyle = (TextFieldStyle)bindable;
161 if (null == textFieldStyle.placeholderTextColorSelector)
163 textFieldStyle.placeholderTextColorSelector = new Selector<Color>();
165 textFieldStyle.placeholderTextColorSelector.Clone((Selector<Color>)newValue);
167 defaultValueCreator: (bindable) =>
169 var textFieldStyle = (TextFieldStyle)bindable;
170 return textFieldStyle.placeholderTextColorSelector;
172 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
173 [EditorBrowsable(EditorBrowsableState.Never)]
174 public static readonly BindableProperty PrimaryCursorColorSelectorProperty = BindableProperty.Create("PrimaryCursorColorSelector", typeof(Selector<Color>), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
176 var textFieldStyle = (TextFieldStyle)bindable;
177 if (null == textFieldStyle.primaryCursorColorSelector)
179 textFieldStyle.primaryCursorColorSelector = new Selector<Color>();
181 textFieldStyle.primaryCursorColorSelector.Clone((Selector<Color>)newValue);
183 defaultValueCreator: (bindable) =>
185 var textFieldStyle = (TextFieldStyle)bindable;
186 return textFieldStyle.primaryCursorColorSelector;
189 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
190 [EditorBrowsable(EditorBrowsableState.Never)]
191 public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create("PlaceholderText", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
193 var textFieldStyle = (TextFieldStyle)bindable;
194 textFieldStyle.placeholderText = (string)newValue;
196 defaultValueCreator: (bindable) =>
198 var textFieldStyle = (TextFieldStyle)bindable;
199 return textFieldStyle.placeholderText;
201 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
202 [EditorBrowsable(EditorBrowsableState.Never)]
203 public static readonly BindableProperty PlaceholderTextFocusedProperty = BindableProperty.Create("PlaceholderTextFocused", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
205 var textFieldStyle = (TextFieldStyle)bindable;
206 textFieldStyle.placeholderTextFocused = (string)newValue;
208 defaultValueCreator: (bindable) =>
210 var textFieldStyle = (TextFieldStyle)bindable;
211 return textFieldStyle.placeholderTextFocused;
213 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
214 [EditorBrowsable(EditorBrowsableState.Never)]
215 public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create("MaxLength", typeof(int?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
217 var textFieldStyle = (TextFieldStyle)bindable;
218 textFieldStyle.maxLength = (int?)newValue;
220 defaultValueCreator: (bindable) =>
222 var textFieldStyle = (TextFieldStyle)bindable;
223 return textFieldStyle.maxLength;
225 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
226 [EditorBrowsable(EditorBrowsableState.Never)]
227 public static readonly BindableProperty ExceedPolicyProperty = BindableProperty.Create("ExceedPolicy", typeof(int?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
229 var textFieldStyle = (TextFieldStyle)bindable;
230 textFieldStyle.exceedPolicy = (int?)newValue;
232 defaultValueCreator: (bindable) =>
234 var textFieldStyle = (TextFieldStyle)bindable;
235 return textFieldStyle.exceedPolicy;
237 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
238 [EditorBrowsable(EditorBrowsableState.Never)]
239 public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create("HorizontalAlignment", typeof(HorizontalAlignment?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
241 var textFieldStyle = (TextFieldStyle)bindable;
242 textFieldStyle.horizontalAlignment = (HorizontalAlignment?)newValue;
244 defaultValueCreator: (bindable) =>
246 var textFieldStyle = (TextFieldStyle)bindable;
247 return textFieldStyle.horizontalAlignment;
249 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
250 [EditorBrowsable(EditorBrowsableState.Never)]
251 public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create("VerticalAlignment", typeof(VerticalAlignment?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
253 var textFieldStyle = (TextFieldStyle)bindable;
254 textFieldStyle.verticalAlignment = (VerticalAlignment?)newValue;
256 defaultValueCreator: (bindable) =>
258 var textFieldStyle = (TextFieldStyle)bindable;
259 return textFieldStyle.verticalAlignment;
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 SecondaryCursorColorProperty = BindableProperty.Create("SecondaryCursorColor", typeof(Vector4), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
265 var textFieldStyle = (TextFieldStyle)bindable;
266 textFieldStyle.secondaryCursorColor = (Vector4)newValue;
268 defaultValueCreator: (bindable) =>
270 var textFieldStyle = (TextFieldStyle)bindable;
271 return textFieldStyle.secondaryCursorColor;
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 EnableCursorBlinkProperty = BindableProperty.Create("EnableCursorBlink", typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
277 var textFieldStyle = (TextFieldStyle)bindable;
278 textFieldStyle.enableCursorBlink = (bool?)newValue;
280 defaultValueCreator: (bindable) =>
282 var textFieldStyle = (TextFieldStyle)bindable;
283 return textFieldStyle.enableCursorBlink;
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 CursorBlinkIntervalProperty = BindableProperty.Create("CursorBlinkInterval", typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
289 var textFieldStyle = (TextFieldStyle)bindable;
290 textFieldStyle.cursorBlinkInterval = (float?)newValue;
292 defaultValueCreator: (bindable) =>
294 var textFieldStyle = (TextFieldStyle)bindable;
295 return textFieldStyle.cursorBlinkInterval;
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 CursorBlinkDurationProperty = BindableProperty.Create("CursorBlinkDuration", typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
301 var textFieldStyle = (TextFieldStyle)bindable;
302 textFieldStyle.cursorBlinkDuration = (float?)newValue;
304 defaultValueCreator: (bindable) =>
306 var textFieldStyle = (TextFieldStyle)bindable;
307 return textFieldStyle.cursorBlinkDuration;
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 CursorWidthProperty = BindableProperty.Create("CursorWidth", typeof(int?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
313 var textFieldStyle = (TextFieldStyle)bindable;
314 textFieldStyle.cursorWidth = (int?)newValue;
316 defaultValueCreator: (bindable) =>
318 var textFieldStyle = (TextFieldStyle)bindable;
319 return textFieldStyle.cursorWidth;
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 GrabHandleImageProperty = BindableProperty.Create("GrabHandleImage", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
325 var textFieldStyle = (TextFieldStyle)bindable;
326 textFieldStyle.grabHandleImage = (string)newValue;
328 defaultValueCreator: (bindable) =>
330 var textFieldStyle = (TextFieldStyle)bindable;
331 return textFieldStyle.grabHandleImage;
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 GrabHandlePressedImageProperty = BindableProperty.Create("GrabHandlePressedImage", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
337 var textFieldStyle = (TextFieldStyle)bindable;
338 textFieldStyle.grabHandlePressedImage = (string)newValue;
340 defaultValueCreator: (bindable) =>
342 var textFieldStyle = (TextFieldStyle)bindable;
343 return textFieldStyle.grabHandlePressedImage;
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 ScrollThresholdProperty = BindableProperty.Create("ScrollThreshold", typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
349 var textFieldStyle = (TextFieldStyle)bindable;
350 textFieldStyle.scrollThreshold = (float?)newValue;
352 defaultValueCreator: (bindable) =>
354 var textFieldStyle = (TextFieldStyle)bindable;
355 return textFieldStyle.scrollThreshold;
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 ScrollSpeedProperty = BindableProperty.Create("ScrollSpeed", typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
361 var textFieldStyle = (TextFieldStyle)bindable;
362 textFieldStyle.scrollSpeed = (float?)newValue;
364 defaultValueCreator: (bindable) =>
366 var textFieldStyle = (TextFieldStyle)bindable;
367 return textFieldStyle.scrollSpeed;
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 SelectionHighlightColorProperty = BindableProperty.Create("SelectionHighlightColor", typeof(Vector4), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
373 var textFieldStyle = (TextFieldStyle)bindable;
374 textFieldStyle.selectionHighlightColor = (Vector4)newValue;
376 defaultValueCreator: (bindable) =>
378 var textFieldStyle = (TextFieldStyle)bindable;
379 return textFieldStyle.selectionHighlightColor;
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 DecorationBoundingBoxProperty = BindableProperty.Create("DecorationBoundingBox", typeof(Rectangle), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
385 var textFieldStyle = (TextFieldStyle)bindable;
386 textFieldStyle.decorationBoundingBox = (Rectangle)newValue;
388 defaultValueCreator: (bindable) =>
390 var textFieldStyle = (TextFieldStyle)bindable;
391 return textFieldStyle.decorationBoundingBox;
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 InputColorProperty = BindableProperty.Create("InputColor", typeof(Vector4), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
397 var textFieldStyle = (TextFieldStyle)bindable;
398 textFieldStyle.inputColor = (Vector4)newValue;
400 defaultValueCreator: (bindable) =>
402 var textFieldStyle = (TextFieldStyle)bindable;
403 return textFieldStyle.inputColor;
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 EnableMarkupProperty = BindableProperty.Create("EnableMarkup", typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
409 var textFieldStyle = (TextFieldStyle)bindable;
410 textFieldStyle.enableMarkup = (bool?)newValue;
412 defaultValueCreator: (bindable) =>
414 var textFieldStyle = (TextFieldStyle)bindable;
415 return textFieldStyle.enableMarkup;
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 InputFontFamilyProperty = BindableProperty.Create("InputFontFamily", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
421 var textFieldStyle = (TextFieldStyle)bindable;
422 textFieldStyle.inputFontFamily = (string)newValue;
424 defaultValueCreator: (bindable) =>
426 var textFieldStyle = (TextFieldStyle)bindable;
427 return textFieldStyle.inputFontFamily;
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 InputPointSizeProperty = BindableProperty.Create("InputPointSize", typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
433 var textFieldStyle = (TextFieldStyle)bindable;
434 textFieldStyle.inputPointSize = (float?)newValue;
436 defaultValueCreator: (bindable) =>
438 var textFieldStyle = (TextFieldStyle)bindable;
439 return textFieldStyle.inputPointSize;
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 InputUnderlineProperty = BindableProperty.Create("InputUnderline", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
445 var textFieldStyle = (TextFieldStyle)bindable;
446 textFieldStyle.inputUnderline = (string)newValue;
448 defaultValueCreator: (bindable) =>
450 var textFieldStyle = (TextFieldStyle)bindable;
451 return textFieldStyle.inputUnderline;
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 InputShadowProperty = BindableProperty.Create("InputShadow", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
457 var textFieldStyle = (TextFieldStyle)bindable;
458 textFieldStyle.inputShadow = (string)newValue;
460 defaultValueCreator: (bindable) =>
462 var textFieldStyle = (TextFieldStyle)bindable;
463 return textFieldStyle.inputShadow;
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 EmbossProperty = BindableProperty.Create("Emboss", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
469 var textFieldStyle = (TextFieldStyle)bindable;
470 textFieldStyle.emboss = (string)newValue;
472 defaultValueCreator: (bindable) =>
474 var textFieldStyle = (TextFieldStyle)bindable;
475 return textFieldStyle.emboss;
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 InputEmbossProperty = BindableProperty.Create("InputEmboss", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
481 var textFieldStyle = (TextFieldStyle)bindable;
482 textFieldStyle.inputEmboss = (string)newValue;
484 defaultValueCreator: (bindable) =>
486 var textFieldStyle = (TextFieldStyle)bindable;
487 return textFieldStyle.inputEmboss;
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 InputOutlineProperty = BindableProperty.Create("InputOutline", typeof(string), typeof(TextFieldStyle), String.Empty, propertyChanged: (bindable, oldValue, newValue) =>
493 var textFieldStyle = (TextFieldStyle)bindable;
494 textFieldStyle.inputOutline = (string)newValue;
496 defaultValueCreator: (bindable) =>
498 var textFieldStyle = (TextFieldStyle)bindable;
499 return textFieldStyle.inputOutline;
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 PixelSizeProperty = BindableProperty.Create("PixelSize", typeof(float?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
505 var textFieldStyle = (TextFieldStyle)bindable;
506 textFieldStyle.pixelSize = (float?)newValue;
508 defaultValueCreator: (bindable) =>
510 var textFieldStyle = (TextFieldStyle)bindable;
511 return textFieldStyle.pixelSize;
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 EnableSelectionProperty = BindableProperty.Create("EnableSelection", typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
517 var textFieldStyle = (TextFieldStyle)bindable;
518 textFieldStyle.enableSelection = (bool?)newValue;
520 defaultValueCreator: (bindable) =>
522 var textFieldStyle = (TextFieldStyle)bindable;
523 return textFieldStyle.enableSelection;
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 EllipsisProperty = BindableProperty.Create("Ellipsis", typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
529 var textFieldStyle = (TextFieldStyle)bindable;
530 textFieldStyle.ellipsis = (bool?)newValue;
532 defaultValueCreator: (bindable) =>
534 var textFieldStyle = (TextFieldStyle)bindable;
535 return textFieldStyle.ellipsis;
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 MatchSystemLanguageDirectionProperty = BindableProperty.Create("MatchSystemLanguageDirection", typeof(bool?), typeof(TextFieldStyle), null, propertyChanged: (bindable, oldValue, newValue) =>
541 var textFieldStyle = (TextFieldStyle)bindable;
542 textFieldStyle.matchSystemLanguageDirection = (bool?)newValue;
544 defaultValueCreator: (bindable) =>
546 var textFieldStyle = (TextFieldStyle)bindable;
547 return textFieldStyle.matchSystemLanguageDirection;
550 private Selector<string> translatableTextSelector;
551 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
552 [EditorBrowsable(EditorBrowsableState.Never)]
553 public Selector<string> TranslatableText
557 return (Selector<string>)GetValue(TranslatableTextSelectorProperty);
561 SetValue(TranslatableTextSelectorProperty, value);
565 private Selector<string> translatablePlaceholderTextSelector;
566 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
567 [EditorBrowsable(EditorBrowsableState.Never)]
568 public Selector<string> TranslatablePlaceholderText
572 return (Selector<string>)GetValue(TranslatablePlaceholderTextSelectorProperty);
576 SetValue(TranslatablePlaceholderTextSelectorProperty, value);
580 private Selector<string> textSelector;
581 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
582 [EditorBrowsable(EditorBrowsableState.Never)]
583 public Selector<string> Text
587 return (Selector<string>)GetValue(TextSelectorProperty);
591 SetValue(TextSelectorProperty, value);
595 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
596 [EditorBrowsable(EditorBrowsableState.Never)]
597 public string PlaceholderText
601 string temp = (string)GetValue(PlaceholderTextProperty);
606 SetValue(PlaceholderTextProperty, value);
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 string PlaceholderTextFocused
616 string temp = (string)GetValue(PlaceholderTextFocusedProperty);
621 SetValue(PlaceholderTextFocusedProperty, value);
625 private Selector<string> fontFamilySelector;
626 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
627 [EditorBrowsable(EditorBrowsableState.Never)]
628 public Selector<string> FontFamily
632 return (Selector<string>)GetValue(FontFamilySelectorProperty);
636 SetValue(FontFamilySelectorProperty, value);
640 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
641 [EditorBrowsable(EditorBrowsableState.Never)]
642 public int? MaxLength
646 int? temp = (int?)GetValue(MaxLengthProperty);
651 SetValue(MaxLengthProperty, value);
655 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
656 [EditorBrowsable(EditorBrowsableState.Never)]
657 public int? ExceedPolicy
661 int? temp = (int?)GetValue(ExceedPolicyProperty);
666 SetValue(ExceedPolicyProperty, value);
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 HorizontalAlignment? HorizontalAlignment
676 HorizontalAlignment? temp = (HorizontalAlignment?)GetValue(HorizontalAlignmentProperty);
681 SetValue(HorizontalAlignmentProperty, value);
685 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
686 [EditorBrowsable(EditorBrowsableState.Never)]
687 public VerticalAlignment? VerticalAlignment
691 VerticalAlignment? temp = (VerticalAlignment?)GetValue(VerticalAlignmentProperty);
696 SetValue(VerticalAlignmentProperty, value);
700 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
701 [EditorBrowsable(EditorBrowsableState.Never)]
702 public Vector4 SecondaryCursorColor
706 Vector4 temp = (Vector4)GetValue(SecondaryCursorColorProperty);
711 SetValue(SecondaryCursorColorProperty, value);
715 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
716 [EditorBrowsable(EditorBrowsableState.Never)]
717 public bool? EnableCursorBlink
721 bool? temp = (bool?)GetValue(EnableCursorBlinkProperty);
726 SetValue(EnableCursorBlinkProperty, value);
730 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
731 [EditorBrowsable(EditorBrowsableState.Never)]
732 public float? CursorBlinkInterval
736 float? temp = (float?)GetValue(CursorBlinkIntervalProperty);
741 SetValue(CursorBlinkIntervalProperty, value);
745 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
746 [EditorBrowsable(EditorBrowsableState.Never)]
747 public float? CursorBlinkDuration
751 float? temp = (float?)GetValue(CursorBlinkDurationProperty);
756 SetValue(CursorBlinkDurationProperty, value);
760 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
761 [EditorBrowsable(EditorBrowsableState.Never)]
762 public int? CursorWidth
766 int? temp = (int?)GetValue(CursorWidthProperty);
771 SetValue(CursorWidthProperty, value);
775 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
776 [EditorBrowsable(EditorBrowsableState.Never)]
777 public string GrabHandleImage
781 string temp = (string)GetValue(GrabHandleImageProperty);
786 SetValue(GrabHandleImageProperty, value);
790 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
791 [EditorBrowsable(EditorBrowsableState.Never)]
792 public string GrabHandlePressedImage
796 string temp = (string)GetValue(GrabHandlePressedImageProperty);
801 SetValue(GrabHandlePressedImageProperty, value);
805 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
806 [EditorBrowsable(EditorBrowsableState.Never)]
807 public float? ScrollThreshold
811 float? temp = (float?)GetValue(ScrollThresholdProperty);
816 SetValue(ScrollThresholdProperty, value);
820 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
821 [EditorBrowsable(EditorBrowsableState.Never)]
822 public float? ScrollSpeed
826 float? temp = (float?)GetValue(ScrollSpeedProperty);
831 SetValue(ScrollSpeedProperty, value);
835 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
836 [EditorBrowsable(EditorBrowsableState.Never)]
837 public Vector4 SelectionHighlightColor
841 Vector4 temp = (Vector4)GetValue(SelectionHighlightColorProperty);
846 SetValue(SelectionHighlightColorProperty, value);
850 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
851 [EditorBrowsable(EditorBrowsableState.Never)]
852 public Rectangle DecorationBoundingBox
856 Rectangle temp = (Rectangle)GetValue(DecorationBoundingBoxProperty);
861 SetValue(DecorationBoundingBoxProperty, 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 Vector4 InputColor
871 Vector4 temp = (Vector4)GetValue(InputColorProperty);
876 SetValue(InputColorProperty, value);
880 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
881 [EditorBrowsable(EditorBrowsableState.Never)]
882 public bool? EnableMarkup
886 bool? temp = (bool?)GetValue(EnableMarkupProperty);
891 SetValue(EnableMarkupProperty, value);
895 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
896 [EditorBrowsable(EditorBrowsableState.Never)]
897 public string InputFontFamily
901 string temp = (string)GetValue(InputFontFamilyProperty);
906 SetValue(InputFontFamilyProperty, value);
910 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
911 [EditorBrowsable(EditorBrowsableState.Never)]
912 public float? InputPointSize
916 float? temp = (float?)GetValue(InputPointSizeProperty);
921 SetValue(InputPointSizeProperty, 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 string InputUnderline
931 string temp = (string)GetValue(InputUnderlineProperty);
936 SetValue(InputUnderlineProperty, value);
940 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
941 [EditorBrowsable(EditorBrowsableState.Never)]
942 public string InputShadow
946 string temp = (string)GetValue(InputShadowProperty);
951 SetValue(InputShadowProperty, value);
955 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
956 [EditorBrowsable(EditorBrowsableState.Never)]
961 string temp = (string)GetValue(EmbossProperty);
966 SetValue(EmbossProperty, value);
970 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
971 [EditorBrowsable(EditorBrowsableState.Never)]
972 public string InputEmboss
976 string temp = (string)GetValue(InputEmbossProperty);
981 SetValue(InputEmbossProperty, value);
985 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
986 [EditorBrowsable(EditorBrowsableState.Never)]
987 public string InputOutline
991 string temp = (string)GetValue(InputOutlineProperty);
996 SetValue(InputOutlineProperty, value);
1000 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1001 [EditorBrowsable(EditorBrowsableState.Never)]
1002 public float? PixelSize
1006 float? temp = (float?)GetValue(PixelSizeProperty);
1011 SetValue(PixelSizeProperty, value);
1015 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1016 [EditorBrowsable(EditorBrowsableState.Never)]
1017 public bool? EnableSelection
1021 bool? temp = (bool?)GetValue(EnableSelectionProperty);
1026 SetValue(EnableSelectionProperty, value);
1030 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1031 [EditorBrowsable(EditorBrowsableState.Never)]
1032 public bool? Ellipsis
1036 bool? temp = (bool?)GetValue(EllipsisProperty);
1041 SetValue(EllipsisProperty, value);
1045 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1046 [EditorBrowsable(EditorBrowsableState.Never)]
1047 public bool? MatchSystemLanguageDirection
1051 bool? temp = (bool?)GetValue(MatchSystemLanguageDirectionProperty);
1056 SetValue(MatchSystemLanguageDirectionProperty, value);
1060 private Selector<Color> textColorSelector;
1061 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1062 [EditorBrowsable(EditorBrowsableState.Never)]
1063 public Selector<Color> TextColor
1067 return (Selector<Color>)GetValue(TextColorSelectorProperty);
1071 SetValue(TextColorSelectorProperty, value);
1075 private Selector<float?> pointSizeSelector;
1076 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1077 [EditorBrowsable(EditorBrowsableState.Never)]
1078 public Selector<float?> PointSize
1082 return (Selector<float?>)GetValue(PointSizeSelectorProperty);
1086 SetValue(PointSizeSelectorProperty, value);
1090 private Selector<Color> placeholderTextColorSelector;
1091 /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API.
1092 [EditorBrowsable(EditorBrowsableState.Never)]
1093 public Selector<Color> PlaceholderTextColor
1097 return (Selector<Color>)GetValue(PlaceholderTextColorSelectorProperty);
1101 SetValue(PlaceholderTextColorSelectorProperty, value);
1105 private Selector<Color> primaryCursorColorSelector;
1107 /// Gets or sets primary cursor color.
1109 /// <since_tizen> 6 </since_tizen>
1110 /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
1111 [EditorBrowsable(EditorBrowsableState.Never)]
1112 public Selector<Color> PrimaryCursorColor
1116 return (Selector<Color>)GetValue(PrimaryCursorColorSelectorProperty);
1120 SetValue(PrimaryCursorColorSelectorProperty, value);