[NUI] Fix background blank issue of Switch (#1281)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / Style / TextFieldStyle.cs
1 /*
2  * Copyright(c) 2019 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17 using System;
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
20
21 namespace Tizen.NUI.BaseComponents
22 {
23     /// <summary>
24     /// The base class for Children attributes in Components.
25     /// </summary>
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
29     {
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
61         static TextFieldStyle() { }
62
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) =>
66         {
67             var textFieldStyle = (TextFieldStyle)bindable;
68             if (null == textFieldStyle.translatableTextSelector)
69             {
70                 textFieldStyle.translatableTextSelector = new Selector<string>();
71             }
72             textFieldStyle.translatableTextSelector.Clone((Selector<string>)newValue);
73         },
74         defaultValueCreator: (bindable) =>
75         {
76             var textFieldStyle = (TextFieldStyle)bindable;
77             return textFieldStyle.translatableTextSelector;
78         });
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) =>
82         {
83             var textFieldStyle = (TextFieldStyle)bindable;
84             if (null == textFieldStyle.translatablePlaceholderTextSelector)
85             {
86                 textFieldStyle.translatablePlaceholderTextSelector = new Selector<string>();
87             }
88             textFieldStyle.translatablePlaceholderTextSelector.Clone((Selector<string>)newValue);
89         },
90         defaultValueCreator: (bindable) =>
91         {
92             var textFieldStyle = (TextFieldStyle)bindable;
93             return textFieldStyle.translatablePlaceholderTextSelector;
94         });
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) =>
98         {
99             var textFieldStyle = (TextFieldStyle)bindable;
100             if (null == textFieldStyle.textSelector)
101             {
102                 textFieldStyle.textSelector = new Selector<string>();
103             }
104             textFieldStyle.textSelector.Clone((Selector<string>)newValue);
105         },
106         defaultValueCreator: (bindable) =>
107         {
108             var textFieldStyle = (TextFieldStyle)bindable;
109             return textFieldStyle.textSelector;
110         });
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) =>
114         {
115             var textFieldStyle = (TextFieldStyle)bindable;
116             if (null == textFieldStyle.fontFamilySelector)
117             {
118                 textFieldStyle.fontFamilySelector = new Selector<string>();
119             }
120             textFieldStyle.fontFamilySelector.Clone((Selector<string>)newValue);
121         },
122         defaultValueCreator: (bindable) =>
123         {
124             var textFieldStyle = (TextFieldStyle)bindable;
125             return textFieldStyle.fontFamilySelector;
126         });
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) =>
130         {
131             var textFieldStyle = (TextFieldStyle)bindable;
132             if (null == textFieldStyle.pointSizeSelector)
133             {
134                 textFieldStyle.pointSizeSelector = new Selector<float?>();
135             }
136             textFieldStyle.pointSizeSelector.Clone((Selector<float?>)newValue);
137         },
138         defaultValueCreator: (bindable) =>
139         {
140             var textFieldStyle = (TextFieldStyle)bindable;
141             return textFieldStyle.pointSizeSelector;
142         });
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) =>
146         {
147             var textFieldStyle = (TextFieldStyle)bindable;
148             if (null == textFieldStyle.textColorSelector)
149             {
150                 textFieldStyle.textColorSelector = new Selector<Color>();
151             }
152             textFieldStyle.textColorSelector.Clone((Selector<Color>)newValue);
153         },
154         defaultValueCreator: (bindable) =>
155         {
156             var textFieldStyle = (TextFieldStyle)bindable;
157             return textFieldStyle.textColorSelector;
158         });
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) =>
162         {
163             var textFieldStyle = (TextFieldStyle)bindable;
164             if (null == textFieldStyle.placeholderTextColorSelector)
165             {
166                 textFieldStyle.placeholderTextColorSelector = new Selector<Vector4>();
167             }
168             textFieldStyle.placeholderTextColorSelector.Clone((Selector<Vector4>)newValue);
169         },
170         defaultValueCreator: (bindable) =>
171         {
172             var textFieldStyle = (TextFieldStyle)bindable;
173             return textFieldStyle.placeholderTextColorSelector;
174         });
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) =>
178         {
179             var textFieldStyle = (TextFieldStyle)bindable;
180             if (null == textFieldStyle.primaryCursorColorSelector)
181             {
182                 textFieldStyle.primaryCursorColorSelector = new Selector<Vector4>();
183             }
184             textFieldStyle.primaryCursorColorSelector.Clone((Selector<Vector4>)newValue);
185         },
186         defaultValueCreator: (bindable) =>
187         {
188             var textFieldStyle = (TextFieldStyle)bindable;
189             return textFieldStyle.primaryCursorColorSelector;
190         });
191
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) =>
195         {
196             var textFieldStyle = (TextFieldStyle)bindable;
197             textFieldStyle.placeholderText = (string)newValue;
198         },
199         defaultValueCreator: (bindable) =>
200         {
201             var textFieldStyle = (TextFieldStyle)bindable;
202             return textFieldStyle.placeholderText;
203         });
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) =>
207         {
208             var textFieldStyle = (TextFieldStyle)bindable;
209             textFieldStyle.placeholderTextFocused = (string)newValue;
210         },
211         defaultValueCreator: (bindable) =>
212         {
213             var textFieldStyle = (TextFieldStyle)bindable;
214             return textFieldStyle.placeholderTextFocused;
215         });
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) =>
219         {
220             var textFieldStyle = (TextFieldStyle)bindable;
221             textFieldStyle.maxLength = (int?)newValue;
222         },
223         defaultValueCreator: (bindable) =>
224         {
225             var textFieldStyle = (TextFieldStyle)bindable;
226             return textFieldStyle.maxLength;
227         });
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) =>
231         {
232             var textFieldStyle = (TextFieldStyle)bindable;
233             textFieldStyle.exceedPolicy = (int?)newValue;
234         },
235         defaultValueCreator: (bindable) =>
236         {
237             var textFieldStyle = (TextFieldStyle)bindable;
238             return textFieldStyle.exceedPolicy;
239         });
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) =>
243         {
244             var textFieldStyle = (TextFieldStyle)bindable;
245             textFieldStyle.horizontalAlignment = (HorizontalAlignment?)newValue;
246         },
247         defaultValueCreator: (bindable) =>
248         {
249             var textFieldStyle = (TextFieldStyle)bindable;
250             return textFieldStyle.horizontalAlignment;
251         });
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) =>
255         {
256             var textFieldStyle = (TextFieldStyle)bindable;
257             textFieldStyle.verticalAlignment = (VerticalAlignment?)newValue;
258         },
259         defaultValueCreator: (bindable) =>
260         {
261             var textFieldStyle = (TextFieldStyle)bindable;
262             return textFieldStyle.verticalAlignment;
263         });
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) =>
267         {
268             var textFieldStyle = (TextFieldStyle)bindable;
269             textFieldStyle.secondaryCursorColor = (Vector4)newValue;
270         },
271         defaultValueCreator: (bindable) =>
272         {
273             var textFieldStyle = (TextFieldStyle)bindable;
274             return textFieldStyle.secondaryCursorColor;
275         });
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) =>
279         {
280             var textFieldStyle = (TextFieldStyle)bindable;
281             textFieldStyle.enableCursorBlink = (bool?)newValue;
282         },
283         defaultValueCreator: (bindable) =>
284         {
285             var textFieldStyle = (TextFieldStyle)bindable;
286             return textFieldStyle.enableCursorBlink;
287         });
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) =>
291         {
292             var textFieldStyle = (TextFieldStyle)bindable;
293             textFieldStyle.cursorBlinkInterval = (float?)newValue;
294         },
295         defaultValueCreator: (bindable) =>
296         {
297             var textFieldStyle = (TextFieldStyle)bindable;
298             return textFieldStyle.cursorBlinkInterval;
299         });
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) =>
303         {
304             var textFieldStyle = (TextFieldStyle)bindable;
305             textFieldStyle.cursorBlinkDuration = (float?)newValue;
306         },
307         defaultValueCreator: (bindable) =>
308         {
309             var textFieldStyle = (TextFieldStyle)bindable;
310             return textFieldStyle.cursorBlinkDuration;
311         });
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) =>
315         {
316             var textFieldStyle = (TextFieldStyle)bindable;
317             textFieldStyle.cursorWidth = (int?)newValue;
318         },
319         defaultValueCreator: (bindable) =>
320         {
321             var textFieldStyle = (TextFieldStyle)bindable;
322             return textFieldStyle.cursorWidth;
323         });
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) =>
327         {
328             var textFieldStyle = (TextFieldStyle)bindable;
329             textFieldStyle.grabHandleImage = (string)newValue;
330         },
331         defaultValueCreator: (bindable) =>
332         {
333             var textFieldStyle = (TextFieldStyle)bindable;
334             return textFieldStyle.grabHandleImage;
335         });
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) =>
339         {
340             var textFieldStyle = (TextFieldStyle)bindable;
341             textFieldStyle.grabHandlePressedImage = (string)newValue;
342         },
343         defaultValueCreator: (bindable) =>
344         {
345             var textFieldStyle = (TextFieldStyle)bindable;
346             return textFieldStyle.grabHandlePressedImage;
347         });
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) =>
351         {
352             var textFieldStyle = (TextFieldStyle)bindable;
353             textFieldStyle.scrollThreshold = (float?)newValue;
354         },
355         defaultValueCreator: (bindable) =>
356         {
357             var textFieldStyle = (TextFieldStyle)bindable;
358             return textFieldStyle.scrollThreshold;
359         });
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) =>
363         {
364             var textFieldStyle = (TextFieldStyle)bindable;
365             textFieldStyle.scrollSpeed = (float?)newValue;
366         },
367         defaultValueCreator: (bindable) =>
368         {
369             var textFieldStyle = (TextFieldStyle)bindable;
370             return textFieldStyle.scrollSpeed;
371         });
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) =>
375         {
376             var textFieldStyle = (TextFieldStyle)bindable;
377             textFieldStyle.selectionHighlightColor = (Vector4)newValue;
378         },
379         defaultValueCreator: (bindable) =>
380         {
381             var textFieldStyle = (TextFieldStyle)bindable;
382             return textFieldStyle.selectionHighlightColor;
383         });
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) =>
387         {
388             var textFieldStyle = (TextFieldStyle)bindable;
389             textFieldStyle.decorationBoundingBox = (Rectangle)newValue;
390         },
391         defaultValueCreator: (bindable) =>
392         {
393             var textFieldStyle = (TextFieldStyle)bindable;
394             return textFieldStyle.decorationBoundingBox;
395         });
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) =>
399         {
400             var textFieldStyle = (TextFieldStyle)bindable;
401             textFieldStyle.inputColor = (Vector4)newValue;
402         },
403         defaultValueCreator: (bindable) =>
404         {
405             var textFieldStyle = (TextFieldStyle)bindable;
406             return textFieldStyle.inputColor;
407         });
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) =>
411         {
412             var textFieldStyle = (TextFieldStyle)bindable;
413             textFieldStyle.enableMarkup = (bool?)newValue;
414         },
415         defaultValueCreator: (bindable) =>
416         {
417             var textFieldStyle = (TextFieldStyle)bindable;
418             return textFieldStyle.enableMarkup;
419         });
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) =>
423         {
424             var textFieldStyle = (TextFieldStyle)bindable;
425             textFieldStyle.inputFontFamily = (string)newValue;
426         },
427         defaultValueCreator: (bindable) =>
428         {
429             var textFieldStyle = (TextFieldStyle)bindable;
430             return textFieldStyle.inputFontFamily;
431         });
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) =>
435         {
436             var textFieldStyle = (TextFieldStyle)bindable;
437             textFieldStyle.inputPointSize = (float?)newValue;
438         },
439         defaultValueCreator: (bindable) =>
440         {
441             var textFieldStyle = (TextFieldStyle)bindable;
442             return textFieldStyle.inputPointSize;
443         });
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) =>
447         {
448             var textFieldStyle = (TextFieldStyle)bindable;
449             textFieldStyle.inputUnderline = (string)newValue;
450         },
451         defaultValueCreator: (bindable) =>
452         {
453             var textFieldStyle = (TextFieldStyle)bindable;
454             return textFieldStyle.inputUnderline;
455         });
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) =>
459         {
460             var textFieldStyle = (TextFieldStyle)bindable;
461             textFieldStyle.inputShadow = (string)newValue;
462         },
463         defaultValueCreator: (bindable) =>
464         {
465             var textFieldStyle = (TextFieldStyle)bindable;
466             return textFieldStyle.inputShadow;
467         });
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) =>
471         {
472             var textFieldStyle = (TextFieldStyle)bindable;
473             textFieldStyle.emboss = (string)newValue;
474         },
475         defaultValueCreator: (bindable) =>
476         {
477             var textFieldStyle = (TextFieldStyle)bindable;
478             return textFieldStyle.emboss;
479         });
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) =>
483         {
484             var textFieldStyle = (TextFieldStyle)bindable;
485             textFieldStyle.inputEmboss = (string)newValue;
486         },
487         defaultValueCreator: (bindable) =>
488         {
489             var textFieldStyle = (TextFieldStyle)bindable;
490             return textFieldStyle.inputEmboss;
491         });
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) =>
495         {
496             var textFieldStyle = (TextFieldStyle)bindable;
497             textFieldStyle.inputOutline = (string)newValue;
498         },
499         defaultValueCreator: (bindable) =>
500         {
501             var textFieldStyle = (TextFieldStyle)bindable;
502             return textFieldStyle.inputOutline;
503         });
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) =>
507         {
508             var textFieldStyle = (TextFieldStyle)bindable;
509             textFieldStyle.pixelSize = (float?)newValue;
510         },
511         defaultValueCreator: (bindable) =>
512         {
513             var textFieldStyle = (TextFieldStyle)bindable;
514             return textFieldStyle.pixelSize;
515         });
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) =>
519         {
520             var textFieldStyle = (TextFieldStyle)bindable;
521             textFieldStyle.enableSelection = (bool?)newValue;
522         },
523         defaultValueCreator: (bindable) =>
524         {
525             var textFieldStyle = (TextFieldStyle)bindable;
526             return textFieldStyle.enableSelection;
527         });
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) =>
531         {
532             var textFieldStyle = (TextFieldStyle)bindable;
533             textFieldStyle.ellipsis = (bool?)newValue;
534         },
535         defaultValueCreator: (bindable) =>
536         {
537             var textFieldStyle = (TextFieldStyle)bindable;
538             return textFieldStyle.ellipsis;
539         });
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) =>
543         {
544             var textFieldStyle = (TextFieldStyle)bindable;
545             textFieldStyle.matchSystemLanguageDirection = (bool?)newValue;
546         },
547         defaultValueCreator: (bindable) =>
548         {
549             var textFieldStyle = (TextFieldStyle)bindable;
550             return textFieldStyle.matchSystemLanguageDirection;
551         });
552
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
557         {
558             get
559             {
560                 return (Selector<string>)GetValue(TranslatableTextSelectorProperty);
561             }
562             set
563             {
564                 SetValue(TranslatableTextSelectorProperty, value);
565             }
566         }
567
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
572         {
573             get
574             {
575                 return (Selector<string>)GetValue(TranslatablePlaceholderTextSelectorProperty);
576             }
577             set
578             {
579                 SetValue(TranslatablePlaceholderTextSelectorProperty, value);
580             }
581         }
582
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
587         {
588             get
589             {
590                 return (Selector<string>)GetValue(TextSelectorProperty);
591             }
592             set
593             {
594                 SetValue(TextSelectorProperty, value);
595             }
596         }
597
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
601         {
602             get
603             {
604                 string temp = (string)GetValue(PlaceholderTextProperty);
605                 return temp;
606             }
607             set
608             {
609                 SetValue(PlaceholderTextProperty, value);
610             }
611         }
612
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
616         {
617             get
618             {
619                 string temp = (string)GetValue(PlaceholderTextFocusedProperty);
620                 return temp;
621             }
622             set
623             {
624                 SetValue(PlaceholderTextFocusedProperty, value);
625             }
626         }
627
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
632         {
633             get
634             {
635                 return (Selector<string>)GetValue(FontFamilySelectorProperty);
636             }
637             set
638             {
639                 SetValue(FontFamilySelectorProperty, value);
640             }
641         }
642
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
646         {
647             get
648             {
649                 int? temp = (int?)GetValue(MaxLengthProperty);
650                 return temp;
651             }
652             set
653             {
654                 SetValue(MaxLengthProperty, value);
655             }
656         }
657
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
661         {
662             get
663             {
664                 int? temp = (int?)GetValue(ExceedPolicyProperty);
665                 return temp;
666             }
667             set
668             {
669                 SetValue(ExceedPolicyProperty, value);
670             }
671         }
672
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
676         {
677             get
678             {
679                 HorizontalAlignment? temp = (HorizontalAlignment?)GetValue(HorizontalAlignmentProperty);
680                 return temp;
681             }
682             set
683             {
684                 SetValue(HorizontalAlignmentProperty, value);
685             }
686         }
687
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
691         {
692             get
693             {
694                 VerticalAlignment? temp = (VerticalAlignment?)GetValue(VerticalAlignmentProperty);
695                 return temp;
696             }
697             set
698             {
699                 SetValue(VerticalAlignmentProperty, value);
700             }
701         }
702
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
706         {
707             get
708             {
709                 Vector4 temp = (Vector4)GetValue(SecondaryCursorColorProperty);
710                 return temp;
711             }
712             set
713             {
714                 SetValue(SecondaryCursorColorProperty, value);
715             }
716         }
717
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
721         {
722             get
723             {
724                 bool? temp = (bool?)GetValue(EnableCursorBlinkProperty);
725                 return temp;
726             }
727             set
728             {
729                 SetValue(EnableCursorBlinkProperty, value);
730             }
731         }
732
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
736         {
737             get
738             {
739                 float? temp = (float?)GetValue(CursorBlinkIntervalProperty);
740                 return temp;
741             }
742             set
743             {
744                 SetValue(CursorBlinkIntervalProperty, value);
745             }
746         }
747
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
751         {
752             get
753             {
754                 float? temp = (float?)GetValue(CursorBlinkDurationProperty);
755                 return temp;
756             }
757             set
758             {
759                 SetValue(CursorBlinkDurationProperty, value);
760             }
761         }
762
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
766         {
767             get
768             {
769                 int? temp = (int?)GetValue(CursorWidthProperty);
770                 return temp;
771             }
772             set
773             {
774                 SetValue(CursorWidthProperty, value);
775             }
776         }
777
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
781         {
782             get
783             {
784                 string temp = (string)GetValue(GrabHandleImageProperty);
785                 return temp;
786             }
787             set
788             {
789                 SetValue(GrabHandleImageProperty, value);
790             }
791         }
792
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
796         {
797             get
798             {
799                 string temp = (string)GetValue(GrabHandlePressedImageProperty);
800                 return temp;
801             }
802             set
803             {
804                 SetValue(GrabHandlePressedImageProperty, value);
805             }
806         }
807
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
811         {
812             get
813             {
814                 float? temp = (float?)GetValue(ScrollThresholdProperty);
815                 return temp;
816             }
817             set
818             {
819                 SetValue(ScrollThresholdProperty, value);
820             }
821         }
822
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
826         {
827             get
828             {
829                 float? temp = (float?)GetValue(ScrollSpeedProperty);
830                 return temp;
831             }
832             set
833             {
834                 SetValue(ScrollSpeedProperty, value);
835             }
836         }
837
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
841         {
842             get
843             {
844                 Vector4 temp = (Vector4)GetValue(SelectionHighlightColorProperty);
845                 return temp;
846             }
847             set
848             {
849                 SetValue(SelectionHighlightColorProperty, value);
850             }
851         }
852
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
856         {
857             get
858             {
859                 Rectangle temp = (Rectangle)GetValue(DecorationBoundingBoxProperty);
860                 return temp;
861             }
862             set
863             {
864                 SetValue(DecorationBoundingBoxProperty, value);
865             }
866         }
867
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
871         {
872             get
873             {
874                 Vector4 temp = (Vector4)GetValue(InputColorProperty);
875                 return temp;
876             }
877             set
878             {
879                 SetValue(InputColorProperty, value);
880             }
881         }
882
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
886         {
887             get
888             {
889                 bool? temp = (bool?)GetValue(EnableMarkupProperty);
890                 return temp;
891             }
892             set
893             {
894                 SetValue(EnableMarkupProperty, value);
895             }
896         }
897
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
901         {
902             get
903             {
904                 string temp = (string)GetValue(InputFontFamilyProperty);
905                 return temp;
906             }
907             set
908             {
909                 SetValue(InputFontFamilyProperty, value);
910             }
911         }
912
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
916         {
917             get
918             {
919                 float? temp = (float?)GetValue(InputPointSizeProperty);
920                 return temp;
921             }
922             set
923             {
924                 SetValue(InputPointSizeProperty, value);
925             }
926         }
927
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
931         {
932             get
933             {
934                 string temp = (string)GetValue(InputUnderlineProperty);
935                 return temp;
936             }
937             set
938             {
939                 SetValue(InputUnderlineProperty, value);
940             }
941         }
942
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
946         {
947             get
948             {
949                 string temp = (string)GetValue(InputShadowProperty);
950                 return temp;
951             }
952             set
953             {
954                 SetValue(InputShadowProperty, value);
955             }
956         }
957
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)]
960         public string Emboss
961         {
962             get
963             {
964                 string temp = (string)GetValue(EmbossProperty);
965                 return temp;
966             }
967             set
968             {
969                 SetValue(EmbossProperty, value);
970             }
971         }
972
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
976         {
977             get
978             {
979                 string temp = (string)GetValue(InputEmbossProperty);
980                 return temp;
981             }
982             set
983             {
984                 SetValue(InputEmbossProperty, value);
985             }
986         }
987
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
991         {
992             get
993             {
994                 string temp = (string)GetValue(InputOutlineProperty);
995                 return temp;
996             }
997             set
998             {
999                 SetValue(InputOutlineProperty, value);
1000             }
1001         }
1002
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
1006         {
1007             get
1008             {
1009                 float? temp = (float?)GetValue(PixelSizeProperty);
1010                 return temp;
1011             }
1012             set
1013             {
1014                 SetValue(PixelSizeProperty, value);
1015             }
1016         }
1017
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
1021         {
1022             get
1023             {
1024                 bool? temp = (bool?)GetValue(EnableSelectionProperty);
1025                 return temp;
1026             }
1027             set
1028             {
1029                 SetValue(EnableSelectionProperty, value);
1030             }
1031         }
1032
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
1036         {
1037             get
1038             {
1039                 bool? temp = (bool?)GetValue(EllipsisProperty);
1040                 return temp;
1041             }
1042             set
1043             {
1044                 SetValue(EllipsisProperty, value);
1045             }
1046         }
1047
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
1051         {
1052             get
1053             {
1054                 bool? temp = (bool?)GetValue(MatchSystemLanguageDirectionProperty);
1055                 return temp;
1056             }
1057             set
1058             {
1059                 SetValue(MatchSystemLanguageDirectionProperty, value);
1060             }
1061         }
1062
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
1067         {
1068             get
1069             {
1070                 return (Selector<Color>)GetValue(TextColorSelectorProperty);
1071             }
1072             set
1073             {
1074                 SetValue(TextColorSelectorProperty, value);
1075             }
1076         }
1077
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
1082         {
1083             get
1084             {
1085                 return (Selector<float?>)GetValue(PointSizeSelectorProperty);
1086             }
1087             set
1088             {
1089                 SetValue(PointSizeSelectorProperty, value);
1090             }
1091         }
1092
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
1097         {
1098             get
1099             {
1100                 return (Selector<Vector4>)GetValue(PlaceholderTextColorSelectorProperty);
1101             }
1102             set
1103             {
1104                 SetValue(PlaceholderTextColorSelectorProperty, value);
1105             }
1106         }
1107
1108         private Selector<Vector4> primaryCursorColorSelector;
1109         /// <summary>
1110         /// Gets or sets primary cursor color.
1111         /// </summary>
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
1116         {
1117             get
1118             {
1119                 return (Selector<Vector4>)GetValue(PrimaryCursorColorSelectorProperty);
1120             }
1121             set
1122             {
1123                 SetValue(PrimaryCursorColorSelectorProperty, value);
1124             }
1125         }
1126     }
1127 }