0a13350664ca9c510a3aef04f248bba1c70947c6
[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         /// 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) =>
63         {
64             var textFieldStyle = (TextFieldStyle)bindable;
65             if (null == textFieldStyle.translatableTextSelector)
66             {
67                 textFieldStyle.translatableTextSelector = new Selector<string>();
68             }
69             textFieldStyle.translatableTextSelector.Clone((Selector<string>)newValue);
70         },
71         defaultValueCreator: (bindable) =>
72         {
73             var textFieldStyle = (TextFieldStyle)bindable;
74             return textFieldStyle.translatableTextSelector;
75         });
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) =>
79         {
80             var textFieldStyle = (TextFieldStyle)bindable;
81             if (null == textFieldStyle.translatablePlaceholderTextSelector)
82             {
83                 textFieldStyle.translatablePlaceholderTextSelector = new Selector<string>();
84             }
85             textFieldStyle.translatablePlaceholderTextSelector.Clone((Selector<string>)newValue);
86         },
87         defaultValueCreator: (bindable) =>
88         {
89             var textFieldStyle = (TextFieldStyle)bindable;
90             return textFieldStyle.translatablePlaceholderTextSelector;
91         });
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) =>
95         {
96             var textFieldStyle = (TextFieldStyle)bindable;
97             if (null == textFieldStyle.textSelector)
98             {
99                 textFieldStyle.textSelector = new Selector<string>();
100             }
101             textFieldStyle.textSelector.Clone((Selector<string>)newValue);
102         },
103         defaultValueCreator: (bindable) =>
104         {
105             var textFieldStyle = (TextFieldStyle)bindable;
106             return textFieldStyle.textSelector;
107         });
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) =>
111         {
112             var textFieldStyle = (TextFieldStyle)bindable;
113             if (null == textFieldStyle.fontFamilySelector)
114             {
115                 textFieldStyle.fontFamilySelector = new Selector<string>();
116             }
117             textFieldStyle.fontFamilySelector.Clone((Selector<string>)newValue);
118         },
119         defaultValueCreator: (bindable) =>
120         {
121             var textFieldStyle = (TextFieldStyle)bindable;
122             return textFieldStyle.fontFamilySelector;
123         });
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) =>
127         {
128             var textFieldStyle = (TextFieldStyle)bindable;
129             if (null == textFieldStyle.pointSizeSelector)
130             {
131                 textFieldStyle.pointSizeSelector = new Selector<float?>();
132             }
133             textFieldStyle.pointSizeSelector.Clone((Selector<float?>)newValue);
134         },
135         defaultValueCreator: (bindable) =>
136         {
137             var textFieldStyle = (TextFieldStyle)bindable;
138             return textFieldStyle.pointSizeSelector;
139         });
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) =>
143         {
144             var textFieldStyle = (TextFieldStyle)bindable;
145             if (null == textFieldStyle.textColorSelector)
146             {
147                 textFieldStyle.textColorSelector = new Selector<Color>();
148             }
149             textFieldStyle.textColorSelector.Clone((Selector<Color>)newValue);
150         },
151         defaultValueCreator: (bindable) =>
152         {
153             var textFieldStyle = (TextFieldStyle)bindable;
154             return textFieldStyle.textColorSelector;
155         });
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) =>
159         {
160             var textFieldStyle = (TextFieldStyle)bindable;
161             if (null == textFieldStyle.placeholderTextColorSelector)
162             {
163                 textFieldStyle.placeholderTextColorSelector = new Selector<Color>();
164             }
165             textFieldStyle.placeholderTextColorSelector.Clone((Selector<Color>)newValue);
166         },
167         defaultValueCreator: (bindable) =>
168         {
169             var textFieldStyle = (TextFieldStyle)bindable;
170             return textFieldStyle.placeholderTextColorSelector;
171         });
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) =>
175         {
176             var textFieldStyle = (TextFieldStyle)bindable;
177             if (null == textFieldStyle.primaryCursorColorSelector)
178             {
179                 textFieldStyle.primaryCursorColorSelector = new Selector<Color>();
180             }
181             textFieldStyle.primaryCursorColorSelector.Clone((Selector<Color>)newValue);
182         },
183         defaultValueCreator: (bindable) =>
184         {
185             var textFieldStyle = (TextFieldStyle)bindable;
186             return textFieldStyle.primaryCursorColorSelector;
187         });
188
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) =>
192         {
193             var textFieldStyle = (TextFieldStyle)bindable;
194             textFieldStyle.placeholderText = (string)newValue;
195         },
196         defaultValueCreator: (bindable) =>
197         {
198             var textFieldStyle = (TextFieldStyle)bindable;
199             return textFieldStyle.placeholderText;
200         });
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) =>
204         {
205             var textFieldStyle = (TextFieldStyle)bindable;
206             textFieldStyle.placeholderTextFocused = (string)newValue;
207         },
208         defaultValueCreator: (bindable) =>
209         {
210             var textFieldStyle = (TextFieldStyle)bindable;
211             return textFieldStyle.placeholderTextFocused;
212         });
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) =>
216         {
217             var textFieldStyle = (TextFieldStyle)bindable;
218             textFieldStyle.maxLength = (int?)newValue;
219         },
220         defaultValueCreator: (bindable) =>
221         {
222             var textFieldStyle = (TextFieldStyle)bindable;
223             return textFieldStyle.maxLength;
224         });
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) =>
228         {
229             var textFieldStyle = (TextFieldStyle)bindable;
230             textFieldStyle.exceedPolicy = (int?)newValue;
231         },
232         defaultValueCreator: (bindable) =>
233         {
234             var textFieldStyle = (TextFieldStyle)bindable;
235             return textFieldStyle.exceedPolicy;
236         });
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) =>
240         {
241             var textFieldStyle = (TextFieldStyle)bindable;
242             textFieldStyle.horizontalAlignment = (HorizontalAlignment?)newValue;
243         },
244         defaultValueCreator: (bindable) =>
245         {
246             var textFieldStyle = (TextFieldStyle)bindable;
247             return textFieldStyle.horizontalAlignment;
248         });
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) =>
252         {
253             var textFieldStyle = (TextFieldStyle)bindable;
254             textFieldStyle.verticalAlignment = (VerticalAlignment?)newValue;
255         },
256         defaultValueCreator: (bindable) =>
257         {
258             var textFieldStyle = (TextFieldStyle)bindable;
259             return textFieldStyle.verticalAlignment;
260         });
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) =>
264         {
265             var textFieldStyle = (TextFieldStyle)bindable;
266             textFieldStyle.secondaryCursorColor = (Vector4)newValue;
267         },
268         defaultValueCreator: (bindable) =>
269         {
270             var textFieldStyle = (TextFieldStyle)bindable;
271             return textFieldStyle.secondaryCursorColor;
272         });
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) =>
276         {
277             var textFieldStyle = (TextFieldStyle)bindable;
278             textFieldStyle.enableCursorBlink = (bool?)newValue;
279         },
280         defaultValueCreator: (bindable) =>
281         {
282             var textFieldStyle = (TextFieldStyle)bindable;
283             return textFieldStyle.enableCursorBlink;
284         });
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) =>
288         {
289             var textFieldStyle = (TextFieldStyle)bindable;
290             textFieldStyle.cursorBlinkInterval = (float?)newValue;
291         },
292         defaultValueCreator: (bindable) =>
293         {
294             var textFieldStyle = (TextFieldStyle)bindable;
295             return textFieldStyle.cursorBlinkInterval;
296         });
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) =>
300         {
301             var textFieldStyle = (TextFieldStyle)bindable;
302             textFieldStyle.cursorBlinkDuration = (float?)newValue;
303         },
304         defaultValueCreator: (bindable) =>
305         {
306             var textFieldStyle = (TextFieldStyle)bindable;
307             return textFieldStyle.cursorBlinkDuration;
308         });
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) =>
312         {
313             var textFieldStyle = (TextFieldStyle)bindable;
314             textFieldStyle.cursorWidth = (int?)newValue;
315         },
316         defaultValueCreator: (bindable) =>
317         {
318             var textFieldStyle = (TextFieldStyle)bindable;
319             return textFieldStyle.cursorWidth;
320         });
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) =>
324         {
325             var textFieldStyle = (TextFieldStyle)bindable;
326             textFieldStyle.grabHandleImage = (string)newValue;
327         },
328         defaultValueCreator: (bindable) =>
329         {
330             var textFieldStyle = (TextFieldStyle)bindable;
331             return textFieldStyle.grabHandleImage;
332         });
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) =>
336         {
337             var textFieldStyle = (TextFieldStyle)bindable;
338             textFieldStyle.grabHandlePressedImage = (string)newValue;
339         },
340         defaultValueCreator: (bindable) =>
341         {
342             var textFieldStyle = (TextFieldStyle)bindable;
343             return textFieldStyle.grabHandlePressedImage;
344         });
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) =>
348         {
349             var textFieldStyle = (TextFieldStyle)bindable;
350             textFieldStyle.scrollThreshold = (float?)newValue;
351         },
352         defaultValueCreator: (bindable) =>
353         {
354             var textFieldStyle = (TextFieldStyle)bindable;
355             return textFieldStyle.scrollThreshold;
356         });
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) =>
360         {
361             var textFieldStyle = (TextFieldStyle)bindable;
362             textFieldStyle.scrollSpeed = (float?)newValue;
363         },
364         defaultValueCreator: (bindable) =>
365         {
366             var textFieldStyle = (TextFieldStyle)bindable;
367             return textFieldStyle.scrollSpeed;
368         });
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) =>
372         {
373             var textFieldStyle = (TextFieldStyle)bindable;
374             textFieldStyle.selectionHighlightColor = (Vector4)newValue;
375         },
376         defaultValueCreator: (bindable) =>
377         {
378             var textFieldStyle = (TextFieldStyle)bindable;
379             return textFieldStyle.selectionHighlightColor;
380         });
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) =>
384         {
385             var textFieldStyle = (TextFieldStyle)bindable;
386             textFieldStyle.decorationBoundingBox = (Rectangle)newValue;
387         },
388         defaultValueCreator: (bindable) =>
389         {
390             var textFieldStyle = (TextFieldStyle)bindable;
391             return textFieldStyle.decorationBoundingBox;
392         });
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) =>
396         {
397             var textFieldStyle = (TextFieldStyle)bindable;
398             textFieldStyle.inputColor = (Vector4)newValue;
399         },
400         defaultValueCreator: (bindable) =>
401         {
402             var textFieldStyle = (TextFieldStyle)bindable;
403             return textFieldStyle.inputColor;
404         });
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) =>
408         {
409             var textFieldStyle = (TextFieldStyle)bindable;
410             textFieldStyle.enableMarkup = (bool?)newValue;
411         },
412         defaultValueCreator: (bindable) =>
413         {
414             var textFieldStyle = (TextFieldStyle)bindable;
415             return textFieldStyle.enableMarkup;
416         });
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) =>
420         {
421             var textFieldStyle = (TextFieldStyle)bindable;
422             textFieldStyle.inputFontFamily = (string)newValue;
423         },
424         defaultValueCreator: (bindable) =>
425         {
426             var textFieldStyle = (TextFieldStyle)bindable;
427             return textFieldStyle.inputFontFamily;
428         });
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) =>
432         {
433             var textFieldStyle = (TextFieldStyle)bindable;
434             textFieldStyle.inputPointSize = (float?)newValue;
435         },
436         defaultValueCreator: (bindable) =>
437         {
438             var textFieldStyle = (TextFieldStyle)bindable;
439             return textFieldStyle.inputPointSize;
440         });
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) =>
444         {
445             var textFieldStyle = (TextFieldStyle)bindable;
446             textFieldStyle.inputUnderline = (string)newValue;
447         },
448         defaultValueCreator: (bindable) =>
449         {
450             var textFieldStyle = (TextFieldStyle)bindable;
451             return textFieldStyle.inputUnderline;
452         });
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) =>
456         {
457             var textFieldStyle = (TextFieldStyle)bindable;
458             textFieldStyle.inputShadow = (string)newValue;
459         },
460         defaultValueCreator: (bindable) =>
461         {
462             var textFieldStyle = (TextFieldStyle)bindable;
463             return textFieldStyle.inputShadow;
464         });
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) =>
468         {
469             var textFieldStyle = (TextFieldStyle)bindable;
470             textFieldStyle.emboss = (string)newValue;
471         },
472         defaultValueCreator: (bindable) =>
473         {
474             var textFieldStyle = (TextFieldStyle)bindable;
475             return textFieldStyle.emboss;
476         });
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) =>
480         {
481             var textFieldStyle = (TextFieldStyle)bindable;
482             textFieldStyle.inputEmboss = (string)newValue;
483         },
484         defaultValueCreator: (bindable) =>
485         {
486             var textFieldStyle = (TextFieldStyle)bindable;
487             return textFieldStyle.inputEmboss;
488         });
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) =>
492         {
493             var textFieldStyle = (TextFieldStyle)bindable;
494             textFieldStyle.inputOutline = (string)newValue;
495         },
496         defaultValueCreator: (bindable) =>
497         {
498             var textFieldStyle = (TextFieldStyle)bindable;
499             return textFieldStyle.inputOutline;
500         });
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) =>
504         {
505             var textFieldStyle = (TextFieldStyle)bindable;
506             textFieldStyle.pixelSize = (float?)newValue;
507         },
508         defaultValueCreator: (bindable) =>
509         {
510             var textFieldStyle = (TextFieldStyle)bindable;
511             return textFieldStyle.pixelSize;
512         });
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) =>
516         {
517             var textFieldStyle = (TextFieldStyle)bindable;
518             textFieldStyle.enableSelection = (bool?)newValue;
519         },
520         defaultValueCreator: (bindable) =>
521         {
522             var textFieldStyle = (TextFieldStyle)bindable;
523             return textFieldStyle.enableSelection;
524         });
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) =>
528         {
529             var textFieldStyle = (TextFieldStyle)bindable;
530             textFieldStyle.ellipsis = (bool?)newValue;
531         },
532         defaultValueCreator: (bindable) =>
533         {
534             var textFieldStyle = (TextFieldStyle)bindable;
535             return textFieldStyle.ellipsis;
536         });
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) =>
540         {
541             var textFieldStyle = (TextFieldStyle)bindable;
542             textFieldStyle.matchSystemLanguageDirection = (bool?)newValue;
543         },
544         defaultValueCreator: (bindable) =>
545         {
546             var textFieldStyle = (TextFieldStyle)bindable;
547             return textFieldStyle.matchSystemLanguageDirection;
548         });
549
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
554         {
555             get
556             {
557                 return (Selector<string>)GetValue(TranslatableTextSelectorProperty);
558             }
559             set
560             {
561                 SetValue(TranslatableTextSelectorProperty, value);
562             }
563         }
564
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
569         {
570             get
571             {
572                 return (Selector<string>)GetValue(TranslatablePlaceholderTextSelectorProperty);
573             }
574             set
575             {
576                 SetValue(TranslatablePlaceholderTextSelectorProperty, value);
577             }
578         }
579
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
584         {
585             get
586             {
587                 return (Selector<string>)GetValue(TextSelectorProperty);
588             }
589             set
590             {
591                 SetValue(TextSelectorProperty, value);
592             }
593         }
594
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
598         {
599             get
600             {
601                 string temp = (string)GetValue(PlaceholderTextProperty);
602                 return temp;
603             }
604             set
605             {
606                 SetValue(PlaceholderTextProperty, value);
607             }
608         }
609
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
613         {
614             get
615             {
616                 string temp = (string)GetValue(PlaceholderTextFocusedProperty);
617                 return temp;
618             }
619             set
620             {
621                 SetValue(PlaceholderTextFocusedProperty, value);
622             }
623         }
624
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
629         {
630             get
631             {
632                 return (Selector<string>)GetValue(FontFamilySelectorProperty);
633             }
634             set
635             {
636                 SetValue(FontFamilySelectorProperty, value);
637             }
638         }
639
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
643         {
644             get
645             {
646                 int? temp = (int?)GetValue(MaxLengthProperty);
647                 return temp;
648             }
649             set
650             {
651                 SetValue(MaxLengthProperty, value);
652             }
653         }
654
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
658         {
659             get
660             {
661                 int? temp = (int?)GetValue(ExceedPolicyProperty);
662                 return temp;
663             }
664             set
665             {
666                 SetValue(ExceedPolicyProperty, value);
667             }
668         }
669
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
673         {
674             get
675             {
676                 HorizontalAlignment? temp = (HorizontalAlignment?)GetValue(HorizontalAlignmentProperty);
677                 return temp;
678             }
679             set
680             {
681                 SetValue(HorizontalAlignmentProperty, value);
682             }
683         }
684
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
688         {
689             get
690             {
691                 VerticalAlignment? temp = (VerticalAlignment?)GetValue(VerticalAlignmentProperty);
692                 return temp;
693             }
694             set
695             {
696                 SetValue(VerticalAlignmentProperty, value);
697             }
698         }
699
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
703         {
704             get
705             {
706                 Vector4 temp = (Vector4)GetValue(SecondaryCursorColorProperty);
707                 return temp;
708             }
709             set
710             {
711                 SetValue(SecondaryCursorColorProperty, value);
712             }
713         }
714
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
718         {
719             get
720             {
721                 bool? temp = (bool?)GetValue(EnableCursorBlinkProperty);
722                 return temp;
723             }
724             set
725             {
726                 SetValue(EnableCursorBlinkProperty, value);
727             }
728         }
729
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
733         {
734             get
735             {
736                 float? temp = (float?)GetValue(CursorBlinkIntervalProperty);
737                 return temp;
738             }
739             set
740             {
741                 SetValue(CursorBlinkIntervalProperty, value);
742             }
743         }
744
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
748         {
749             get
750             {
751                 float? temp = (float?)GetValue(CursorBlinkDurationProperty);
752                 return temp;
753             }
754             set
755             {
756                 SetValue(CursorBlinkDurationProperty, value);
757             }
758         }
759
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
763         {
764             get
765             {
766                 int? temp = (int?)GetValue(CursorWidthProperty);
767                 return temp;
768             }
769             set
770             {
771                 SetValue(CursorWidthProperty, value);
772             }
773         }
774
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
778         {
779             get
780             {
781                 string temp = (string)GetValue(GrabHandleImageProperty);
782                 return temp;
783             }
784             set
785             {
786                 SetValue(GrabHandleImageProperty, value);
787             }
788         }
789
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
793         {
794             get
795             {
796                 string temp = (string)GetValue(GrabHandlePressedImageProperty);
797                 return temp;
798             }
799             set
800             {
801                 SetValue(GrabHandlePressedImageProperty, value);
802             }
803         }
804
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
808         {
809             get
810             {
811                 float? temp = (float?)GetValue(ScrollThresholdProperty);
812                 return temp;
813             }
814             set
815             {
816                 SetValue(ScrollThresholdProperty, value);
817             }
818         }
819
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
823         {
824             get
825             {
826                 float? temp = (float?)GetValue(ScrollSpeedProperty);
827                 return temp;
828             }
829             set
830             {
831                 SetValue(ScrollSpeedProperty, value);
832             }
833         }
834
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
838         {
839             get
840             {
841                 Vector4 temp = (Vector4)GetValue(SelectionHighlightColorProperty);
842                 return temp;
843             }
844             set
845             {
846                 SetValue(SelectionHighlightColorProperty, value);
847             }
848         }
849
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
853         {
854             get
855             {
856                 Rectangle temp = (Rectangle)GetValue(DecorationBoundingBoxProperty);
857                 return temp;
858             }
859             set
860             {
861                 SetValue(DecorationBoundingBoxProperty, value);
862             }
863         }
864
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
868         {
869             get
870             {
871                 Vector4 temp = (Vector4)GetValue(InputColorProperty);
872                 return temp;
873             }
874             set
875             {
876                 SetValue(InputColorProperty, value);
877             }
878         }
879
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
883         {
884             get
885             {
886                 bool? temp = (bool?)GetValue(EnableMarkupProperty);
887                 return temp;
888             }
889             set
890             {
891                 SetValue(EnableMarkupProperty, value);
892             }
893         }
894
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
898         {
899             get
900             {
901                 string temp = (string)GetValue(InputFontFamilyProperty);
902                 return temp;
903             }
904             set
905             {
906                 SetValue(InputFontFamilyProperty, value);
907             }
908         }
909
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
913         {
914             get
915             {
916                 float? temp = (float?)GetValue(InputPointSizeProperty);
917                 return temp;
918             }
919             set
920             {
921                 SetValue(InputPointSizeProperty, value);
922             }
923         }
924
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
928         {
929             get
930             {
931                 string temp = (string)GetValue(InputUnderlineProperty);
932                 return temp;
933             }
934             set
935             {
936                 SetValue(InputUnderlineProperty, value);
937             }
938         }
939
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
943         {
944             get
945             {
946                 string temp = (string)GetValue(InputShadowProperty);
947                 return temp;
948             }
949             set
950             {
951                 SetValue(InputShadowProperty, value);
952             }
953         }
954
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)]
957         public string Emboss
958         {
959             get
960             {
961                 string temp = (string)GetValue(EmbossProperty);
962                 return temp;
963             }
964             set
965             {
966                 SetValue(EmbossProperty, value);
967             }
968         }
969
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
973         {
974             get
975             {
976                 string temp = (string)GetValue(InputEmbossProperty);
977                 return temp;
978             }
979             set
980             {
981                 SetValue(InputEmbossProperty, value);
982             }
983         }
984
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
988         {
989             get
990             {
991                 string temp = (string)GetValue(InputOutlineProperty);
992                 return temp;
993             }
994             set
995             {
996                 SetValue(InputOutlineProperty, value);
997             }
998         }
999
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
1003         {
1004             get
1005             {
1006                 float? temp = (float?)GetValue(PixelSizeProperty);
1007                 return temp;
1008             }
1009             set
1010             {
1011                 SetValue(PixelSizeProperty, value);
1012             }
1013         }
1014
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
1018         {
1019             get
1020             {
1021                 bool? temp = (bool?)GetValue(EnableSelectionProperty);
1022                 return temp;
1023             }
1024             set
1025             {
1026                 SetValue(EnableSelectionProperty, value);
1027             }
1028         }
1029
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
1033         {
1034             get
1035             {
1036                 bool? temp = (bool?)GetValue(EllipsisProperty);
1037                 return temp;
1038             }
1039             set
1040             {
1041                 SetValue(EllipsisProperty, value);
1042             }
1043         }
1044
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
1048         {
1049             get
1050             {
1051                 bool? temp = (bool?)GetValue(MatchSystemLanguageDirectionProperty);
1052                 return temp;
1053             }
1054             set
1055             {
1056                 SetValue(MatchSystemLanguageDirectionProperty, value);
1057             }
1058         }
1059
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
1064         {
1065             get
1066             {
1067                 return (Selector<Color>)GetValue(TextColorSelectorProperty);
1068             }
1069             set
1070             {
1071                 SetValue(TextColorSelectorProperty, value);
1072             }
1073         }
1074
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
1079         {
1080             get
1081             {
1082                 return (Selector<float?>)GetValue(PointSizeSelectorProperty);
1083             }
1084             set
1085             {
1086                 SetValue(PointSizeSelectorProperty, value);
1087             }
1088         }
1089
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
1094         {
1095             get
1096             {
1097                 return (Selector<Color>)GetValue(PlaceholderTextColorSelectorProperty);
1098             }
1099             set
1100             {
1101                 SetValue(PlaceholderTextColorSelectorProperty, value);
1102             }
1103         }
1104
1105         private Selector<Color> primaryCursorColorSelector;
1106         /// <summary>
1107         /// Gets or sets primary cursor color.
1108         /// </summary>
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
1113         {
1114             get
1115             {
1116                 return (Selector<Color>)GetValue(PrimaryCursorColorSelectorProperty);
1117             }
1118             set
1119             {
1120                 SetValue(PrimaryCursorColorSelectorProperty, value);
1121             }
1122         }
1123     }
1124 }