[NUI] Revert "Sync with dalihub & API5 branch (#631)" (#635)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / BaseComponents / TextField.cs
1 /*
2  * Copyright(c) 2018 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 extern alias TizenSystemSettings;
18 using TizenSystemSettings.Tizen.System;
19
20 using System;
21 using System.Runtime.InteropServices;
22 using System.Globalization;
23 using System.ComponentModel;
24 using Tizen.NUI.Binding;
25
26 namespace Tizen.NUI.BaseComponents
27 {
28     /// <summary>
29     /// A control which provides a single line editable text field.
30     /// </summary>
31     /// <since_tizen> 3 </since_tizen>
32     public class TextField : View
33     {
34         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
35         [EditorBrowsable(EditorBrowsableState.Never)]
36         public static readonly BindableProperty TextProperty = BindableProperty.Create("Text", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
37         {
38             var textField = (TextField)bindable;
39             if (newValue != null)
40             {
41                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
42             }
43         },
44         defaultValueCreator:(bindable) =>
45         {
46             var textField = (TextField)bindable;
47             string temp;
48             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.TEXT).Get(out temp);
49             return temp;
50         });
51         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
52         [EditorBrowsable(EditorBrowsableState.Never)]
53         public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create("PlaceholderText", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
54         {
55             var textField = (TextField)bindable;
56             if (newValue != null)
57             {
58                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue((string)newValue));
59             }
60         },
61         defaultValueCreator:(bindable) =>
62         {
63             var textField = (TextField)bindable;
64             string temp;
65             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
66             return temp;
67         });
68         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
69         [EditorBrowsable(EditorBrowsableState.Never)]
70         public static readonly BindableProperty PlaceholderTextFocusedProperty = BindableProperty.Create("PlaceholderTextFocused", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
71         {
72             var textField = (TextField)bindable;
73             if (newValue != null)
74             {
75                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue((string)newValue));
76             }
77         },
78         defaultValueCreator:(bindable) =>
79         {
80             var textField = (TextField)bindable;
81             string temp;
82             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
83             return temp;
84         });
85         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
86         [EditorBrowsable(EditorBrowsableState.Never)]
87         public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create("FontFamily", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
88         {
89             var textField = (TextField)bindable;
90             if (newValue != null)
91             {
92                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
93             }
94         },
95         defaultValueCreator:(bindable) =>
96         {
97             var textField = (TextField)bindable;
98             string temp;
99             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.FONT_FAMILY).Get(out temp);
100             return temp;
101         });
102         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
103         [EditorBrowsable(EditorBrowsableState.Never)]
104         public static readonly BindableProperty FontStyleProperty = BindableProperty.Create("FontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
105         {
106             var textField = (TextField)bindable;
107             if (newValue != null)
108             {
109                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
110             }
111         },
112         defaultValueCreator:(bindable) =>
113         {
114             var textField = (TextField)bindable;
115             PropertyMap temp = new PropertyMap();
116             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.FONT_STYLE).Get(temp);
117             return temp;
118         });
119         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
120         [EditorBrowsable(EditorBrowsableState.Never)]
121         public static readonly BindableProperty PointSizeProperty = BindableProperty.Create("PointSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
122         {
123             var textField = (TextField)bindable;
124             if (newValue != null)
125             {
126                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
127             }
128         },
129         defaultValueCreator:(bindable) =>
130         {
131             var textField = (TextField)bindable;
132             float temp = 0.0f;
133             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.POINT_SIZE).Get(out temp);
134             return temp;
135         });
136         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
137         [EditorBrowsable(EditorBrowsableState.Never)]
138         public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create("MaxLength", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
139         {
140             var textField = (TextField)bindable;
141             if (newValue != null)
142             {
143                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue((int)newValue));
144             }
145         },
146         defaultValueCreator:(bindable) =>
147         {
148             var textField = (TextField)bindable;
149             int temp = 0;
150             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.MAX_LENGTH).Get(out temp);
151             return temp;
152         });
153         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
154         [EditorBrowsable(EditorBrowsableState.Never)]
155         public static readonly BindableProperty ExceedPolicyProperty = BindableProperty.Create("ExceedPolicy", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
156         {
157             var textField = (TextField)bindable;
158             if (newValue != null)
159             {
160                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
161             }
162         },
163         defaultValueCreator:(bindable) =>
164         {
165             var textField = (TextField)bindable;
166             int temp = 0;
167             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EXCEED_POLICY).Get(out temp);
168             return temp;
169         });
170         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
171         [EditorBrowsable(EditorBrowsableState.Never)]
172         public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create("HorizontalAlignment", typeof(HorizontalAlignment), typeof(TextField), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) =>
173         {
174             var textField = (TextField)bindable;
175             string valueToString = "";
176             if (newValue != null)
177             {
178                 switch ((HorizontalAlignment)newValue)
179                 {
180                     case HorizontalAlignment.Begin:
181                     {
182                         valueToString = "BEGIN";
183                         break;
184                     }
185                     case HorizontalAlignment.Center:
186                     {
187                         valueToString = "CENTER";
188                         break;
189                     }
190                     case HorizontalAlignment.End:
191                     {
192                         valueToString = "END";
193                         break;
194                     }
195                     default:
196                     {
197                         valueToString = "BEGIN";
198                         break;
199                     }
200                 }
201                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
202             }
203         },
204         defaultValueCreator:(bindable) =>
205         {
206             var textField = (TextField)bindable;
207             string temp;
208             if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
209             {
210                 NUILog.Error("HorizontalAlignment get error!");
211             }
212
213             switch (temp)
214             {
215                 case "BEGIN":                    return HorizontalAlignment.Begin;
216                 case "CENTER":                    return HorizontalAlignment.Center;
217                 case "END":                    return HorizontalAlignment.End;
218                 default:                    return HorizontalAlignment.Begin;
219             }
220         });
221         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
222         [EditorBrowsable(EditorBrowsableState.Never)]
223         public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create("VerticalAlignment", typeof(VerticalAlignment), typeof(TextField), VerticalAlignment.Bottom, propertyChanged: (bindable, oldValue, newValue) =>
224         {
225             var textField = (TextField)bindable;
226             string valueToString = "";
227             if (newValue != null)
228             {
229                 switch ((VerticalAlignment)newValue)
230                 {
231                     case VerticalAlignment.Top: { valueToString = "TOP"; break; }
232                     case VerticalAlignment.Center: { valueToString = "CENTER"; break; }
233                     case VerticalAlignment.Bottom: { valueToString = "BOTTOM"; break; }
234                     default:  { valueToString = "BOTTOM"; break; }
235                 }
236                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
237             }
238         },
239         defaultValueCreator:(bindable) =>
240         {
241             var textField = (TextField)bindable;
242             string temp;
243             if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
244             {
245                 NUILog.Error("VerticalAlignment get error!");
246             }
247
248             switch (temp)
249             {
250                 case "TOP": return VerticalAlignment.Top;
251                 case "CENTER": return VerticalAlignment.Center;
252                 case "BOTTOM": return VerticalAlignment.Bottom;
253                 default: return VerticalAlignment.Bottom;
254             }
255         });
256         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
257         [EditorBrowsable(EditorBrowsableState.Never)]
258         public static readonly BindableProperty TextColorProperty = BindableProperty.Create("TextColor", typeof(Color), typeof(TextField), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) =>
259         {
260             var textField = (TextField)bindable;
261             if (newValue != null)
262             {
263                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
264             }
265         },
266         defaultValueCreator:(bindable) =>
267         {
268             var textField = (TextField)bindable;
269             Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
270             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR).Get(temp);
271             return temp;
272         });
273         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
274         [EditorBrowsable(EditorBrowsableState.Never)]
275         public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create("PlaceholderTextColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
276         {
277             var textField = (TextField)bindable;
278             if (newValue != null)
279             {
280                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
281             }
282         },
283         defaultValueCreator:(bindable) =>
284         {
285             var textField = (TextField)bindable;
286             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
287             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
288             return temp;
289         });
290         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
291         [EditorBrowsable(EditorBrowsableState.Never)]
292         public static readonly BindableProperty ShadowOffsetProperty = BindableProperty.Create("ShadowOffset", typeof(Vector2), typeof(TextField), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
293         {
294             var textField = (TextField)bindable;
295             if (newValue != null)
296             {
297                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue));
298             }
299         },
300         defaultValueCreator:(bindable) =>
301         {
302             var textField = (TextField)bindable;
303             Vector2 temp = new Vector2(0.0f, 0.0f);
304             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET).Get(temp);
305             return temp;
306         });
307         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
308         [EditorBrowsable(EditorBrowsableState.Never)]
309         public static readonly BindableProperty ShadowColorProperty = BindableProperty.Create("ShadowColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
310         {
311             var textField = (TextField)bindable;
312             if (newValue != null)
313             {
314                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
315             }
316         },
317         defaultValueCreator:(bindable) =>
318         {
319             var textField = (TextField)bindable;
320             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
321             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR).Get(temp);
322             return temp;
323         });
324         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
325         [EditorBrowsable(EditorBrowsableState.Never)]
326         public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create("PrimaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
327         {
328             var textField = (TextField)bindable;
329             if (newValue != null)
330             {
331                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
332             }
333         },
334         defaultValueCreator:(bindable) =>
335         {
336             var textField = (TextField)bindable;
337             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
338             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
339             return temp;
340         });
341         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
342         [EditorBrowsable(EditorBrowsableState.Never)]
343         public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create("SecondaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
344         {
345             var textField = (TextField)bindable;
346             if (newValue != null)
347             {
348                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
349             }
350         },
351         defaultValueCreator:(bindable) =>
352         {
353             var textField = (TextField)bindable;
354             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
355             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
356             return temp;
357         });
358         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
359         [EditorBrowsable(EditorBrowsableState.Never)]
360         public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create("EnableCursorBlink", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
361         {
362             var textField = (TextField)bindable;
363             if (newValue != null)
364             {
365                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
366             }
367         },
368         defaultValueCreator:(bindable) =>
369         {
370             var textField = (TextField)bindable;
371             bool temp = false;
372             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
373             return temp;
374         });
375         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
376         [EditorBrowsable(EditorBrowsableState.Never)]
377         public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create("CursorBlinkInterval", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
378         {
379             var textField = (TextField)bindable;
380             if (newValue != null)
381             {
382                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
383             }
384         },
385         defaultValueCreator:(bindable) =>
386         {
387             var textField = (TextField)bindable;
388             float temp = 0.0f;
389             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
390             return temp;
391         });
392         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
393         [EditorBrowsable(EditorBrowsableState.Never)]
394         public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create("CursorBlinkDuration", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
395         {
396             var textField = (TextField)bindable;
397             if (newValue != null)
398             {
399                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
400             }
401         },
402         defaultValueCreator:(bindable) =>
403         {
404             var textField = (TextField)bindable;
405             float temp = 0.0f;
406             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION).Get(out temp);
407             return temp;
408         });
409         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
410         [EditorBrowsable(EditorBrowsableState.Never)]
411         public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create("CursorWidth", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
412         {
413             var textField = (TextField)bindable;
414             if (newValue != null)
415             {
416                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
417             }
418         },
419         defaultValueCreator:(bindable) =>
420         {
421             var textField = (TextField)bindable;
422             int temp = 0;
423             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH).Get(out temp);
424             return temp;
425         });
426         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
427         [EditorBrowsable(EditorBrowsableState.Never)]
428         public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create("GrabHandleImage", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
429         {
430             var textField = (TextField)bindable;
431             if (newValue != null)
432             {
433                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
434             }
435         },
436         defaultValueCreator:(bindable) =>
437         {
438             var textField = (TextField)bindable;
439             string temp;
440             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
441             return temp;
442         });
443         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
444         [EditorBrowsable(EditorBrowsableState.Never)]
445         public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create("GrabHandlePressedImage", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
446         {
447             var textField = (TextField)bindable;
448             if (newValue != null)
449             {
450                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
451             }
452         },
453         defaultValueCreator:(bindable) =>
454         {
455             var textField = (TextField)bindable;
456             string temp;
457             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
458             return temp;
459         });
460         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
461         [EditorBrowsable(EditorBrowsableState.Never)]
462         public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create("ScrollThreshold", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
463         {
464             var textField = (TextField)bindable;
465             if (newValue != null)
466             {
467                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
468             }
469         },
470         defaultValueCreator:(bindable) =>
471         {
472             var textField = (TextField)bindable;
473             float temp = 0.0f;
474             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD).Get(out temp);
475             return temp;
476         });
477         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
478         [EditorBrowsable(EditorBrowsableState.Never)]
479         public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create("ScrollSpeed", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
480         {
481             var textField = (TextField)bindable;
482             if (newValue != null)
483             {
484                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
485             }
486         },
487         defaultValueCreator:(bindable) =>
488         {
489             var textField = (TextField)bindable;
490             float temp = 0.0f;
491             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED).Get(out temp);
492             return temp;
493         });
494         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
495         [EditorBrowsable(EditorBrowsableState.Never)]
496         public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create("SelectionHandleImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
497         {
498             var textField = (TextField)bindable;
499             if (newValue != null)
500             {
501                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
502             }
503         },
504         defaultValueCreator:(bindable) =>
505         {
506             var textField = (TextField)bindable;
507             PropertyMap temp = new PropertyMap();
508             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
509             return temp;
510         });
511         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
512         [EditorBrowsable(EditorBrowsableState.Never)]
513         public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create("SelectionHandleImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
514         {
515             var textField = (TextField)bindable;
516             if (newValue != null)
517             {
518                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
519             }
520         },
521         defaultValueCreator:(bindable) =>
522         {
523             var textField = (TextField)bindable;
524             PropertyMap temp = new PropertyMap();
525             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
526             return temp;
527         });
528         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
529         [EditorBrowsable(EditorBrowsableState.Never)]
530         public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create("SelectionHandlePressedImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
531         {
532             var textField = (TextField)bindable;
533             if (newValue != null)
534             {
535                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
536             }
537         },
538         defaultValueCreator:(bindable) =>
539         {
540             var textField = (TextField)bindable;
541             PropertyMap temp = new PropertyMap();
542             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
543             return temp;
544         });
545         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
546         [EditorBrowsable(EditorBrowsableState.Never)]
547         public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create("SelectionHandlePressedImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
548         {
549             var textField = (TextField)bindable;
550             if (newValue != null)
551             {
552                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
553             }
554         },
555         defaultValueCreator:(bindable) =>
556         {
557             var textField = (TextField)bindable;
558             PropertyMap temp = new PropertyMap();
559             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
560             return temp;
561         });
562         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
563         [EditorBrowsable(EditorBrowsableState.Never)]
564         public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create("SelectionHandleMarkerImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
565         {
566             var textField = (TextField)bindable;
567             if (newValue != null)
568             {
569                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
570             }
571         },
572         defaultValueCreator:(bindable) =>
573         {
574             var textField = (TextField)bindable;
575             PropertyMap temp = new PropertyMap();
576             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
577             return temp;
578         });
579         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
580         [EditorBrowsable(EditorBrowsableState.Never)]
581         public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create("SelectionHandleMarkerImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
582         {
583             var textField = (TextField)bindable;
584             if (newValue != null)
585             {
586                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
587             }
588         },
589         defaultValueCreator:(bindable) =>
590         {
591             var textField = (TextField)bindable;
592             PropertyMap temp = new PropertyMap();
593             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
594             return temp;
595         });
596         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
597         [EditorBrowsable(EditorBrowsableState.Never)]
598         public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create("SelectionHighlightColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
599         {
600             var textField = (TextField)bindable;
601             if (newValue != null)
602             {
603                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
604             }
605         },
606         defaultValueCreator:(bindable) =>
607         {
608             var textField = (TextField)bindable;
609             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
610             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
611             return temp;
612         });
613         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
614         [EditorBrowsable(EditorBrowsableState.Never)]
615         public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create("DecorationBoundingBox", typeof(Rectangle), typeof(TextField), new Rectangle(0,0,0,0), propertyChanged: (bindable, oldValue, newValue) =>
616         {
617             var textField = (TextField)bindable;
618             if (newValue != null)
619             {
620                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
621             }
622         },
623         defaultValueCreator:(bindable) =>
624         {
625             var textField = (TextField)bindable;
626             Rectangle temp = new Rectangle(0, 0, 0, 0);
627             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
628             return temp;
629         });
630         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
631         [EditorBrowsable(EditorBrowsableState.Never)]
632         public static readonly BindableProperty InputMethodSettingsProperty = BindableProperty.Create("InputMethodSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
633         {
634             var textField = (TextField)bindable;
635             if (newValue != null)
636             {
637                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
638             }
639         },
640         defaultValueCreator:(bindable) =>
641         {
642             var textField = (TextField)bindable;
643             PropertyMap temp = new PropertyMap();
644             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
645             return temp;
646         });
647         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
648         [EditorBrowsable(EditorBrowsableState.Never)]
649         public static readonly BindableProperty InputColorProperty = BindableProperty.Create("InputColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
650         {
651             var textField = (TextField)bindable;
652             if (newValue != null)
653             {
654                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
655             }
656         },
657         defaultValueCreator:(bindable) =>
658         {
659             var textField = (TextField)bindable;
660             Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
661             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR).Get(temp);
662             return temp;
663         });
664         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
665         [EditorBrowsable(EditorBrowsableState.Never)]
666         public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create("EnableMarkup", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
667         {
668             var textField = (TextField)bindable;
669             if (newValue != null)
670             {
671                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
672             }
673         },
674         defaultValueCreator:(bindable) =>
675         {
676             var textField = (TextField)bindable;
677             bool temp = false;
678             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP).Get(out temp);
679             return temp;
680         });
681         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
682         [EditorBrowsable(EditorBrowsableState.Never)]
683         public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create("InputFontFamily", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
684         {
685             var textField = (TextField)bindable;
686             if (newValue != null)
687             {
688                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
689             }
690         },
691         defaultValueCreator:(bindable) =>
692         {
693             var textField = (TextField)bindable;
694             string temp;
695             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
696             return temp;
697         });
698         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
699         [EditorBrowsable(EditorBrowsableState.Never)]
700         public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create("InputFontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
701         {
702             var textField = (TextField)bindable;
703             if (newValue != null)
704             {
705                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
706             }
707         },
708         defaultValueCreator:(bindable) =>
709         {
710             var textField = (TextField)bindable;
711             PropertyMap temp = new PropertyMap();
712             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE).Get(temp);
713             return temp;
714         });
715         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
716         [EditorBrowsable(EditorBrowsableState.Never)]
717         public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create("InputPointSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
718         {
719             var textField = (TextField)bindable;
720             if (newValue != null)
721             {
722                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
723             }
724         },
725         defaultValueCreator:(bindable) =>
726         {
727             var textField = (TextField)bindable;
728             float temp = 0.0f;
729             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE).Get(out temp);
730             return temp;
731         });
732         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
733         [EditorBrowsable(EditorBrowsableState.Never)]
734         public static readonly BindableProperty UnderlineProperty = BindableProperty.Create("Underline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
735         {
736             var textField = (TextField)bindable;
737             if (newValue != null)
738             {
739                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
740             }
741         },
742         defaultValueCreator:(bindable) =>
743         {
744             var textField = (TextField)bindable;
745             PropertyMap temp = new PropertyMap();
746             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.UNDERLINE).Get(temp);
747             return temp;
748         });
749         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
750         [EditorBrowsable(EditorBrowsableState.Never)]
751         public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create("InputUnderline", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
752         {
753             var textField = (TextField)bindable;
754             if (newValue != null)
755             {
756                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
757             }
758         },
759         defaultValueCreator:(bindable) =>
760         {
761             var textField = (TextField)bindable;
762             string temp;
763             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE).Get(out temp);
764             return temp;
765         });
766         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
767         [EditorBrowsable(EditorBrowsableState.Never)]
768         public static readonly BindableProperty ShadowProperty = BindableProperty.Create("Shadow", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
769         {
770             var textField = (TextField)bindable;
771             if (newValue != null)
772             {
773                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
774             }
775         },
776         defaultValueCreator:(bindable) =>
777         {
778             var textField = (TextField)bindable;
779             PropertyMap temp = new PropertyMap();
780             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW).Get(temp);
781             return temp;
782         });
783         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
784         [EditorBrowsable(EditorBrowsableState.Never)]
785         public static readonly BindableProperty InputShadowProperty = BindableProperty.Create("InputShadow", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
786         {
787             var textField = (TextField)bindable;
788             if (newValue != null)
789             {
790                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
791             }
792         },
793         defaultValueCreator:(bindable) =>
794         {
795             var textField = (TextField)bindable;
796             string temp;
797             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW).Get(out temp);
798             return temp;
799         });
800         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
801         [EditorBrowsable(EditorBrowsableState.Never)]
802         public static readonly BindableProperty EmbossProperty = BindableProperty.Create("Emboss", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
803         {
804             var textField = (TextField)bindable;
805             if (newValue != null)
806             {
807                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
808             }
809         },
810         defaultValueCreator:(bindable) =>
811         {
812             var textField = (TextField)bindable;
813             string temp;
814             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EMBOSS).Get(out temp);
815             return temp;
816         });
817         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
818         [EditorBrowsable(EditorBrowsableState.Never)]
819         public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create("InputEmboss", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
820         {
821             var textField = (TextField)bindable;
822             if (newValue != null)
823             {
824                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
825             }
826         },
827         defaultValueCreator:(bindable) =>
828         {
829             var textField = (TextField)bindable;
830             string temp;
831             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS).Get(out temp);
832             return temp;
833         });
834         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
835         [EditorBrowsable(EditorBrowsableState.Never)]
836         public static readonly BindableProperty OutlineProperty = BindableProperty.Create("Outline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
837         {
838             var textField = (TextField)bindable;
839             if (newValue != null)
840             {
841                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
842             }
843         },
844         defaultValueCreator:(bindable) =>
845         {
846             var textField = (TextField)bindable;
847             PropertyMap temp = new PropertyMap();
848             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.OUTLINE).Get(temp);
849             return temp;
850         });
851         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
852         [EditorBrowsable(EditorBrowsableState.Never)]
853         public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create("InputOutline", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
854         {
855             var textField = (TextField)bindable;
856             if (newValue != null)
857             {
858                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
859             }
860         },
861         defaultValueCreator:(bindable) =>
862         {
863             var textField = (TextField)bindable;
864             string temp;
865             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE).Get(out temp);
866             return temp;
867         });
868         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
869         [EditorBrowsable(EditorBrowsableState.Never)]
870         public static readonly BindableProperty HiddenInputSettingsProperty = BindableProperty.Create("HiddenInputSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
871         {
872             var textField = (TextField)bindable;
873             if (newValue != null)
874             {
875                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
876             }
877         },
878         defaultValueCreator:(bindable) =>
879         {
880             var textField = (TextField)bindable;
881             Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
882             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS).Get(temp);
883             return temp;
884         });
885         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
886         [EditorBrowsable(EditorBrowsableState.Never)]
887         public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create("PixelSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
888         {
889             var textField = (TextField)bindable;
890             if (newValue != null)
891             {
892                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
893             }
894         },
895         defaultValueCreator:(bindable) =>
896         {
897             var textField = (TextField)bindable;
898             float temp = 0.0f;
899             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE).Get(out temp);
900             return temp;
901         });
902         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
903         [EditorBrowsable(EditorBrowsableState.Never)]
904         public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create("EnableSelection", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
905         {
906             var textField = (TextField)bindable;
907             if (newValue != null)
908             {
909                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
910             }
911         },
912         defaultValueCreator:(bindable) =>
913         {
914             var textField = (TextField)bindable;
915             bool temp = false;
916             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION).Get(out temp);
917             return temp;
918         });
919         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
920         [EditorBrowsable(EditorBrowsableState.Never)]
921         public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create("Placeholder", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
922         {
923             var textField = (TextField)bindable;
924             if (newValue != null)
925             {
926                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
927             }
928         },
929         defaultValueCreator:(bindable) =>
930         {
931             var textField = (TextField)bindable;
932             Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
933             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER).Get(temp);
934             return temp;
935         });
936         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
937         [EditorBrowsable(EditorBrowsableState.Never)]
938         public static readonly BindableProperty EllipsisProperty = BindableProperty.Create("Ellipsis", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
939         {
940             var textField = (TextField)bindable;
941             if (newValue != null)
942             {
943                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue((bool)newValue));
944             }
945         },
946         defaultValueCreator:(bindable) =>
947         {
948             var textField = (TextField)bindable;
949             bool temp = false;
950             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS).Get(out temp);
951             return temp;
952         });
953         /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
954         [EditorBrowsable(EditorBrowsableState.Never)]
955         public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create("EnableShiftSelection", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
956         {
957             var textField = (TextField)bindable;
958             if (newValue != null)
959             {
960                 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
961             }
962         },
963         defaultValueCreator:(bindable) =>
964         {
965             var textField = (TextField)bindable;
966             bool temp = false;
967             Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
968             return temp;
969         });
970
971
972
973         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
974         private string textFieldTextSid = null;
975         private string textFieldPlaceHolderTextSid = null;
976         private bool systemlangTextFlag = false;
977         private InputMethodContext inputMethodCotext = null;
978
979         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
980         {
981             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
982         }
983
984         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
985         {
986             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
987         }
988
989         /// <summary>
990         /// Dispose.
991         /// </summary>
992         /// <since_tizen> 3 </since_tizen>
993         protected override void Dispose(DisposeTypes type)
994         {
995             if (disposed)
996             {
997                 DisposeQueue.Instance.Add(this);
998                 return;
999             }
1000
1001             if (type == DisposeTypes.Explicit)
1002             {
1003                 //Called by User
1004                 //Release your own managed resources here.
1005                 //You should release all of your own disposable objects here.
1006             }
1007
1008             //Release your own unmanaged resources here.
1009             //You should not access any managed member here except static instance.
1010             //because the execution order of Finalizes is non-deterministic.
1011             if (this.HasBody())
1012             {
1013                 if (_textFieldMaxLengthReachedCallbackDelegate != null)
1014                 {
1015                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1016                 }
1017
1018                 if (_textFieldTextChangedCallbackDelegate != null)
1019                 {
1020                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1021                 }
1022             }
1023
1024             if (swigCPtr.Handle != global::System.IntPtr.Zero)
1025             {
1026                 if (swigCMemOwn)
1027                 {
1028                     swigCMemOwn = false;
1029                     // In order to speed up IME hide, temporarily add
1030                     GetInputMethodContext()?.DestroyContext();
1031                     NDalicPINVOKE.delete_TextField(swigCPtr);
1032                 }
1033                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1034             }
1035
1036             base.Dispose(type);
1037         }
1038
1039         /// <summary>
1040         /// The TextChanged event arguments.
1041         /// </summary>
1042         /// <since_tizen> 3 </since_tizen>
1043         public class TextChangedEventArgs : EventArgs
1044         {
1045             private TextField _textField;
1046
1047             /// <summary>
1048             /// TextField.
1049             /// </summary>
1050             /// <since_tizen> 3 </since_tizen>
1051             public TextField TextField
1052             {
1053                 get
1054                 {
1055                     return _textField;
1056                 }
1057                 set
1058                 {
1059                     _textField = value;
1060                 }
1061             }
1062         }
1063
1064         /// <summary>
1065         /// The MaxLengthReached event arguments.
1066         /// </summary>
1067         /// <since_tizen> 3 </since_tizen>
1068         public class MaxLengthReachedEventArgs : EventArgs
1069         {
1070             private TextField _textField;
1071
1072             /// <summary>
1073             /// TextField.
1074             /// </summary>
1075             /// <since_tizen> 3 </since_tizen>
1076             public TextField TextField
1077             {
1078                 get
1079                 {
1080                     return _textField;
1081                 }
1082                 set
1083                 {
1084                     _textField = value;
1085                 }
1086             }
1087         }
1088
1089
1090         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1091         private delegate void TextChangedCallbackDelegate(IntPtr textField);
1092         private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
1093         private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
1094
1095         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1096         private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1097         private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
1098         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
1099
1100         /// <summary>
1101         /// The TextChanged event.
1102         /// </summary>
1103         /// <since_tizen> 3 </since_tizen>
1104         public event EventHandler<TextChangedEventArgs> TextChanged
1105         {
1106             add
1107             {
1108                 if (_textFieldTextChangedEventHandler == null)
1109                 {
1110                     _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1111                     TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1112                 }
1113                 _textFieldTextChangedEventHandler += value;
1114             }
1115             remove
1116             {
1117                 _textFieldTextChangedEventHandler -= value;
1118                 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1119                 {
1120                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1121                 }
1122             }
1123         }
1124
1125         private void OnTextChanged(IntPtr textField)
1126         {
1127             TextChangedEventArgs e = new TextChangedEventArgs();
1128
1129             // Populate all members of "e" (TextChangedEventArgs) with real data
1130             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1131
1132             if (_textFieldTextChangedEventHandler != null)
1133             {
1134                 //here we send all data to user event handlers
1135                 _textFieldTextChangedEventHandler(this, e);
1136             }
1137
1138         }
1139
1140         /// <summary>
1141         /// The MaxLengthReached event.
1142         /// </summary>
1143         /// <since_tizen> 3 </since_tizen>
1144         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1145         {
1146             add
1147             {
1148                 if (_textFieldMaxLengthReachedEventHandler == null)
1149                 {
1150                     _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1151                     MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1152                 }
1153                 _textFieldMaxLengthReachedEventHandler += value;
1154             }
1155             remove
1156             {
1157                 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1158                 {
1159                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1160                 }
1161                 _textFieldMaxLengthReachedEventHandler -= value;
1162             }
1163         }
1164
1165         private void OnMaxLengthReached(IntPtr textField)
1166         {
1167             MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
1168
1169             // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
1170             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1171
1172             if (_textFieldMaxLengthReachedEventHandler != null)
1173             {
1174                 //here we send all data to user event handlers
1175                 _textFieldMaxLengthReachedEventHandler(this, e);
1176             }
1177
1178         }
1179
1180         internal new class Property
1181         {
1182             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
1183             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
1184             internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
1185             internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
1186             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
1187             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
1188             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
1189             internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
1190             internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
1191             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
1192             internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
1193             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
1194             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
1195             internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
1196             internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
1197             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
1198             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
1199             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
1200             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
1201             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
1202             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
1203             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
1204             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1205             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
1206             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
1207             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1208             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1209             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1210             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1211             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1212             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1213             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
1214             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
1215             internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
1216             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
1217             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
1218             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
1219             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
1220             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
1221             internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
1222             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
1223             internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
1224             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
1225             internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
1226             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
1227             internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
1228             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
1229             internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
1230             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
1231             internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
1232             internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
1233             internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
1234             internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
1235         }
1236
1237         internal class InputStyle
1238         {
1239             internal enum Mask
1240             {
1241                 None = 0x0000,
1242                 Color = 0x0001,
1243                 FontFamily = 0x0002,
1244                 PointSize = 0x0004,
1245                 FontStyle = 0x0008,
1246                 Underline = 0x0010,
1247                 Shadow = 0x0020,
1248                 Emboss = 0x0040,
1249                 Outline = 0x0080
1250             }
1251
1252         }
1253
1254         /// <summary>
1255         /// Creates the TextField control.
1256         /// </summary>
1257         /// <since_tizen> 3 </since_tizen>
1258         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
1259         {
1260             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1261         }
1262
1263         internal override bool IsCreateByXaml
1264         {
1265             get
1266             {
1267                 return base.IsCreateByXaml;
1268             }
1269             set
1270             {
1271                 base.IsCreateByXaml = value;
1272
1273                 if (value == true)
1274                 {
1275                     this.TextChanged += (obj, e) =>
1276                     {
1277                         this.Text = this.Text;
1278                     };
1279                 }
1280             }
1281         }
1282
1283         internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
1284         {
1285             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1286         }
1287
1288         /// <summary>
1289         /// Get the InputMethodContext instance.
1290         /// </summary>
1291         /// <returns>The InputMethodContext instance.</returns>
1292         public InputMethodContext GetInputMethodContext()
1293         {
1294             if (inputMethodCotext == null)
1295             {
1296                 /*Avoid raising InputMethodContext reference count.*/
1297                 inputMethodCotext = new InputMethodContext(NDalicPINVOKE.TextField_GetInputMethodContext(swigCPtr), true);
1298                 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1299             }
1300             return inputMethodCotext;
1301         }
1302
1303         internal TextFieldSignal TextChangedSignal()
1304         {
1305             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
1306             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1307             return ret;
1308         }
1309
1310         internal TextFieldSignal MaxLengthReachedSignal()
1311         {
1312             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
1313             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1314             return ret;
1315         }
1316
1317         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
1318         {
1319             SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t(NDalicPINVOKE.TextField_InputStyleChangedSignal(swigCPtr), false);
1320             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1321             return ret;
1322         }
1323
1324         internal enum ExceedPolicyType
1325         {
1326             ExceedPolicyOriginal,
1327             ExceedPolicyClip
1328         }
1329
1330         /// <summary>
1331         /// The TranslatableText property.<br />
1332         /// The text can set the SID value.<br />
1333         /// </summary>
1334         /// <exception cref='ArgumentNullException'>
1335         /// ResourceManager about multilingual is null.
1336         /// </exception>
1337         /// <since_tizen> 4 </since_tizen>
1338         public string TranslatableText
1339         {
1340             get
1341             {
1342                 return textFieldTextSid;
1343             }
1344             set
1345             {
1346                 if (NUIApplication.MultilingualResourceManager == null)
1347                 {
1348                     throw new ArgumentNullException("ResourceManager about multilingual is null");
1349                 }
1350                 textFieldTextSid = value;
1351                 Text = SetTranslatable(textFieldTextSid);
1352                 NotifyPropertyChanged();
1353             }
1354         }
1355         /// <summary>
1356         /// The TranslatablePlaceholderText property.<br />
1357         /// The text can set the SID value.<br />
1358         /// </summary>
1359         /// <exception cref='ArgumentNullException'>
1360         /// ResourceManager about multilingual is null.
1361         /// </exception>
1362         /// <since_tizen> 4 </since_tizen>
1363         public string TranslatablePlaceholderText
1364         {
1365             get
1366             {
1367                 return textFieldPlaceHolderTextSid;
1368             }
1369             set
1370             {
1371                 if (NUIApplication.MultilingualResourceManager == null)
1372                 {
1373                     throw new ArgumentNullException("ResourceManager about multilingual is null");
1374                 }
1375                 textFieldPlaceHolderTextSid = value;
1376                 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1377                 NotifyPropertyChanged();
1378             }
1379         }
1380         private string SetTranslatable(string textFieldSid)
1381         {
1382             string translatableText = null;
1383             translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1384             if (translatableText != null)
1385             {
1386                 if (systemlangTextFlag == false)
1387                 {
1388                     SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1389                     systemlangTextFlag = true;
1390                 }
1391                 return translatableText;
1392             }
1393             else
1394             {
1395                 translatableText = "";
1396                 return translatableText;
1397             }
1398         }
1399         private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1400         {
1401             if (textFieldTextSid != null)
1402             {
1403                 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1404             }
1405             if (textFieldPlaceHolderTextSid != null)
1406             {
1407                 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1408             }
1409         }
1410         /// <summary>
1411         /// The Text property.
1412         /// </summary>
1413         /// <since_tizen> 3 </since_tizen>
1414         public string Text
1415         {
1416             get
1417             {
1418                 return (string)GetValue(TextProperty);
1419             }
1420             set
1421             {
1422                 SetValueAndForceSendChangeSignal(TextProperty, value);
1423                 NotifyPropertyChanged();
1424             }
1425         }
1426
1427         /// <summary>
1428         /// The PlaceholderText property.
1429         /// </summary>
1430         /// <since_tizen> 3 </since_tizen>
1431         public string PlaceholderText
1432         {
1433             get
1434             {
1435                 return (string)GetValue(PlaceholderTextProperty);
1436             }
1437             set
1438             {
1439                 SetValue(PlaceholderTextProperty, value);
1440                 NotifyPropertyChanged();
1441             }
1442         }
1443
1444         /// <summary>
1445         /// The PlaceholderTextFocused property.
1446         /// </summary>
1447         /// <since_tizen> 3 </since_tizen>
1448         public string PlaceholderTextFocused
1449         {
1450             get
1451             {
1452                 return (string)GetValue(PlaceholderTextFocusedProperty);
1453             }
1454             set
1455             {
1456                 SetValue(PlaceholderTextFocusedProperty, value);
1457                 NotifyPropertyChanged();
1458             }
1459         }
1460
1461         /// <summary>
1462         /// The FontFamily property.
1463         /// </summary>
1464         /// <since_tizen> 3 </since_tizen>
1465         public string FontFamily
1466         {
1467             get
1468             {
1469                 return (string)GetValue(FontFamilyProperty);
1470             }
1471             set
1472             {
1473                 SetValue(FontFamilyProperty, value);
1474                 NotifyPropertyChanged();
1475             }
1476         }
1477
1478         /// <summary>
1479         /// The FontStyle property.
1480         /// </summary>
1481         /// <since_tizen> 3 </since_tizen>
1482         public PropertyMap FontStyle
1483         {
1484             get
1485             {
1486                 return (PropertyMap)GetValue(FontStyleProperty);
1487             }
1488             set
1489             {
1490                 SetValue(FontStyleProperty, value);
1491                 NotifyPropertyChanged();
1492             }
1493         }
1494
1495         /// <summary>
1496         /// The PointSize property.
1497         /// </summary>
1498         /// <since_tizen> 3 </since_tizen>
1499         public float PointSize
1500         {
1501             get
1502             {
1503                 return (float)GetValue(PointSizeProperty);
1504             }
1505             set
1506             {
1507                 SetValue(PointSizeProperty, value);
1508                 NotifyPropertyChanged();
1509             }
1510         }
1511
1512         /// <summary>
1513         /// The MaxLength property.
1514         /// </summary>
1515         /// <since_tizen> 3 </since_tizen>
1516         public int MaxLength
1517         {
1518             get
1519             {
1520                 return (int)GetValue(MaxLengthProperty);
1521             }
1522             set
1523             {
1524                 SetValue(MaxLengthProperty, value);
1525                 NotifyPropertyChanged();
1526             }
1527         }
1528
1529         /// <summary>
1530         /// The ExceedPolicy property.
1531         /// </summary>
1532         /// <since_tizen> 3 </since_tizen>
1533         public int ExceedPolicy
1534         {
1535             get
1536             {
1537                 return (int)GetValue(ExceedPolicyProperty);
1538             }
1539             set
1540             {
1541                 SetValue(ExceedPolicyProperty, value);
1542                 NotifyPropertyChanged();
1543             }
1544         }
1545
1546         /// <summary>
1547         /// The HorizontalAlignment property.
1548         /// </summary>
1549         /// <since_tizen> 3 </since_tizen>
1550         public HorizontalAlignment HorizontalAlignment
1551         {
1552             get
1553             {
1554                 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1555             }
1556             set
1557             {
1558                 SetValue(HorizontalAlignmentProperty, value);
1559                 NotifyPropertyChanged();
1560             }
1561         }
1562
1563         /// <summary>
1564         /// The VerticalAlignment property.
1565         /// </summary>
1566         /// <since_tizen> 3 </since_tizen>
1567         public VerticalAlignment VerticalAlignment
1568         {
1569             get
1570             {
1571                 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1572             }
1573             set
1574             {
1575                 SetValue(VerticalAlignmentProperty, value);
1576                 NotifyPropertyChanged();
1577                 NotifyPropertyChanged();
1578             }
1579         }
1580
1581         /// <summary>
1582         /// The TextColor property.
1583         /// </summary>
1584         /// <since_tizen> 3 </since_tizen>
1585         public Color TextColor
1586         {
1587             get
1588             {
1589                 return (Color)GetValue(TextColorProperty);
1590             }
1591             set
1592             {
1593                 SetValue(TextColorProperty, value);
1594                 NotifyPropertyChanged();
1595             }
1596         }
1597
1598         /// <summary>
1599         /// The PlaceholderTextColor property.
1600         /// </summary>
1601         /// <since_tizen> 3 </since_tizen>
1602         public Vector4 PlaceholderTextColor
1603         {
1604             get
1605             {
1606                 return (Vector4)GetValue(PlaceholderTextColorProperty);
1607             }
1608             set
1609             {
1610                 SetValue(PlaceholderTextColorProperty, value);
1611                 NotifyPropertyChanged();
1612             }
1613         }
1614
1615         /// <summary>
1616         /// The ShadowOffset property.
1617         /// </summary>
1618         /// <since_tizen> 3 </since_tizen>
1619         public Vector2 ShadowOffset
1620         {
1621             get
1622             {
1623                 return (Vector2)GetValue(ShadowOffsetProperty);
1624             }
1625             set
1626             {
1627                 SetValue(ShadowOffsetProperty, value);
1628                 NotifyPropertyChanged();
1629             }
1630         }
1631
1632         /// <summary>
1633         /// The ShadowColor property.
1634         /// </summary>
1635         /// <since_tizen> 3 </since_tizen>
1636         public Vector4 ShadowColor
1637         {
1638             get
1639             {
1640                 return (Vector4)GetValue(ShadowColorProperty);
1641             }
1642             set
1643             {
1644                 SetValue(ShadowColorProperty, value);
1645                 NotifyPropertyChanged();
1646             }
1647         }
1648
1649         /// <summary>
1650         /// The PrimaryCursorColor property.
1651         /// </summary>
1652         /// <since_tizen> 3 </since_tizen>
1653         public Vector4 PrimaryCursorColor
1654         {
1655             get
1656             {
1657                 return (Vector4)GetValue(PrimaryCursorColorProperty);
1658             }
1659             set
1660             {
1661                 SetValue(PrimaryCursorColorProperty, value);
1662                 NotifyPropertyChanged();
1663             }
1664         }
1665
1666         /// <summary>
1667         /// The SecondaryCursorColor property.
1668         /// </summary>
1669         /// <since_tizen> 3 </since_tizen>
1670         public Vector4 SecondaryCursorColor
1671         {
1672             get
1673             {
1674                 return (Vector4)GetValue(SecondaryCursorColorProperty);
1675             }
1676             set
1677             {
1678                 SetValue(SecondaryCursorColorProperty, value);
1679                 NotifyPropertyChanged();
1680             }
1681         }
1682
1683         /// <summary>
1684         /// The EnableCursorBlink property.
1685         /// </summary>
1686         /// <since_tizen> 3 </since_tizen>
1687         public bool EnableCursorBlink
1688         {
1689             get
1690             {
1691                 return (bool)GetValue(EnableCursorBlinkProperty);
1692             }
1693             set
1694             {
1695                 SetValue(EnableCursorBlinkProperty, value);
1696                 NotifyPropertyChanged();
1697             }
1698         }
1699
1700         /// <summary>
1701         /// The CursorBlinkInterval property.
1702         /// </summary>
1703         /// <since_tizen> 3 </since_tizen>
1704         public float CursorBlinkInterval
1705         {
1706             get
1707             {
1708                 return (float)GetValue(CursorBlinkIntervalProperty);
1709             }
1710             set
1711             {
1712                 SetValue(CursorBlinkIntervalProperty, value);
1713                 NotifyPropertyChanged();
1714             }
1715         }
1716
1717         /// <summary>
1718         /// The CursorBlinkDuration property.
1719         /// </summary>
1720         /// <since_tizen> 3 </since_tizen>
1721         public float CursorBlinkDuration
1722         {
1723             get
1724             {
1725                 return (float)GetValue(CursorBlinkDurationProperty);
1726             }
1727             set
1728             {
1729                 SetValue(CursorBlinkDurationProperty, value);
1730                 NotifyPropertyChanged();
1731             }
1732         }
1733
1734         /// <summary>
1735         /// The CursorWidth property.
1736         /// </summary>
1737         /// <since_tizen> 3 </since_tizen>
1738         public int CursorWidth
1739         {
1740             get
1741             {
1742                 return (int)GetValue(CursorWidthProperty);
1743             }
1744             set
1745             {
1746                 SetValue(CursorWidthProperty, value);
1747                 NotifyPropertyChanged();
1748             }
1749         }
1750
1751         /// <summary>
1752         /// The GrabHandleImage property.
1753         /// </summary>
1754         /// <since_tizen> 3 </since_tizen>
1755         public string GrabHandleImage
1756         {
1757             get
1758             {
1759                 return (string)GetValue(GrabHandleImageProperty);
1760             }
1761             set
1762             {
1763                 SetValue(GrabHandleImageProperty, value);
1764                 NotifyPropertyChanged();
1765             }
1766         }
1767
1768         /// <summary>
1769         /// The GrabHandlePressedImage property.
1770         /// </summary>
1771         /// <since_tizen> 3 </since_tizen>
1772         public string GrabHandlePressedImage
1773         {
1774             get
1775             {
1776                 return (string)GetValue(GrabHandlePressedImageProperty);
1777             }
1778             set
1779             {
1780                 SetValue(GrabHandlePressedImageProperty, value);
1781                 NotifyPropertyChanged();
1782             }
1783         }
1784
1785         /// <summary>
1786         /// The ScrollThreshold property.
1787         /// </summary>
1788         /// <since_tizen> 3 </since_tizen>
1789         public float ScrollThreshold
1790         {
1791             get
1792             {
1793                 return (float)GetValue(ScrollThresholdProperty);
1794             }
1795             set
1796             {
1797                 SetValue(ScrollThresholdProperty, value);
1798                 NotifyPropertyChanged();
1799             }
1800         }
1801
1802         /// <summary>
1803         /// The ScrollSpeed property.
1804         /// </summary>
1805         /// <since_tizen> 3 </since_tizen>
1806         public float ScrollSpeed
1807         {
1808             get
1809             {
1810                 return (float)GetValue(ScrollSpeedProperty);
1811             }
1812             set
1813             {
1814                 SetValue(ScrollSpeedProperty, value);
1815                 NotifyPropertyChanged();
1816             }
1817         }
1818
1819         /// <summary>
1820         /// The SelectionHandleImageLeft property.
1821         /// </summary>
1822         /// <since_tizen> 3 </since_tizen>
1823         public PropertyMap SelectionHandleImageLeft
1824         {
1825             get
1826             {
1827                 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1828             }
1829             set
1830             {
1831                 SetValue(SelectionHandleImageLeftProperty, value);
1832                 NotifyPropertyChanged();
1833             }
1834         }
1835
1836         /// <summary>
1837         /// The SelectionHandleImageRight property.
1838         /// </summary>
1839         /// <since_tizen> 3 </since_tizen>
1840         public PropertyMap SelectionHandleImageRight
1841         {
1842             get
1843             {
1844                 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1845             }
1846             set
1847             {
1848                 SetValue(SelectionHandleImageRightProperty, value);
1849                 NotifyPropertyChanged();
1850             }
1851         }
1852
1853         /// <summary>
1854         /// The SelectionHandlePressedImageLeft property.
1855         /// </summary>
1856         /// <since_tizen> 3 </since_tizen>
1857         public PropertyMap SelectionHandlePressedImageLeft
1858         {
1859             get
1860             {
1861                 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1862             }
1863             set
1864             {
1865                 SetValue(SelectionHandlePressedImageLeftProperty, value);
1866                 NotifyPropertyChanged();
1867             }
1868         }
1869
1870         /// <summary>
1871         /// The SelectionHandlePressedImageRight property.
1872         /// </summary>
1873         /// <since_tizen> 3 </since_tizen>
1874         public PropertyMap SelectionHandlePressedImageRight
1875         {
1876             get
1877             {
1878                 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1879             }
1880             set
1881             {
1882                 SetValue(SelectionHandlePressedImageRightProperty, value);
1883                 NotifyPropertyChanged();
1884             }
1885         }
1886
1887         /// <summary>
1888         /// The SelectionHandleMarkerImageLeft property.
1889         /// </summary>
1890         /// <since_tizen> 3 </since_tizen>
1891         public PropertyMap SelectionHandleMarkerImageLeft
1892         {
1893             get
1894             {
1895                 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1896             }
1897             set
1898             {
1899                 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1900                 NotifyPropertyChanged();
1901             }
1902         }
1903
1904         /// <summary>
1905         /// The SelectionHandleMarkerImageRight property.
1906         /// </summary>
1907         /// <since_tizen> 3 </since_tizen>
1908         public PropertyMap SelectionHandleMarkerImageRight
1909         {
1910             get
1911             {
1912                 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1913             }
1914             set
1915             {
1916                 SetValue(SelectionHandleMarkerImageRightProperty, value);
1917                 NotifyPropertyChanged();
1918             }
1919         }
1920
1921         /// <summary>
1922         /// The SelectionHighlightColor property.
1923         /// </summary>
1924         /// <since_tizen> 3 </since_tizen>
1925         public Vector4 SelectionHighlightColor
1926         {
1927             get
1928             {
1929                 return (Vector4)GetValue(SelectionHighlightColorProperty);
1930             }
1931             set
1932             {
1933                 SetValue(SelectionHighlightColorProperty, value);
1934                 NotifyPropertyChanged();
1935             }
1936         }
1937
1938         /// <summary>
1939         /// The DecorationBoundingBox property.
1940         /// </summary>
1941         /// <since_tizen> 3 </since_tizen>
1942         public Rectangle DecorationBoundingBox
1943         {
1944             get
1945             {
1946                 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1947             }
1948             set
1949             {
1950                 SetValue(DecorationBoundingBoxProperty, value);
1951                 NotifyPropertyChanged();
1952             }
1953         }
1954
1955         /// <summary>
1956         /// The InputMethodSettings property.
1957         /// </summary>
1958         /// <since_tizen> 3 </since_tizen>
1959         public PropertyMap InputMethodSettings
1960         {
1961             get
1962             {
1963                 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1964             }
1965             set
1966             {
1967                 SetValue(InputMethodSettingsProperty, value);
1968                 NotifyPropertyChanged();
1969             }
1970         }
1971
1972         /// <summary>
1973         /// The InputColor property.
1974         /// </summary>
1975         /// <since_tizen> 3 </since_tizen>
1976         public Vector4 InputColor
1977         {
1978             get
1979             {
1980                 return (Vector4)GetValue(InputColorProperty);
1981             }
1982             set
1983             {
1984                 SetValue(InputColorProperty, value);
1985                 NotifyPropertyChanged();
1986             }
1987         }
1988
1989         /// <summary>
1990         /// The EnableMarkup property.
1991         /// </summary>
1992         /// <since_tizen> 3 </since_tizen>
1993         public bool EnableMarkup
1994         {
1995             get
1996             {
1997                 return (bool)GetValue(EnableMarkupProperty);
1998             }
1999             set
2000             {
2001                 SetValue(EnableMarkupProperty, value);
2002                 NotifyPropertyChanged();
2003             }
2004         }
2005
2006         /// <summary>
2007         /// The InputFontFamily property.
2008         /// </summary>
2009         /// <since_tizen> 3 </since_tizen>
2010         public string InputFontFamily
2011         {
2012             get
2013             {
2014                 return (string)GetValue(InputFontFamilyProperty);
2015             }
2016             set
2017             {
2018                 SetValue(InputFontFamilyProperty, value);
2019                 NotifyPropertyChanged();
2020             }
2021         }
2022
2023         /// <summary>
2024         /// The InputFontStyle property.
2025         /// </summary>
2026         /// <since_tizen> 3 </since_tizen>
2027         public PropertyMap InputFontStyle
2028         {
2029             get
2030             {
2031                 return (PropertyMap)GetValue(InputFontStyleProperty);
2032             }
2033             set
2034             {
2035                 SetValue(InputFontStyleProperty, value);
2036                 NotifyPropertyChanged();
2037             }
2038         }
2039
2040         /// <summary>
2041         /// The InputPointSize property.
2042         /// </summary>
2043         /// <since_tizen> 3 </since_tizen>
2044         public float InputPointSize
2045         {
2046             get
2047             {
2048                 return (float)GetValue(InputPointSizeProperty);
2049             }
2050             set
2051             {
2052                 SetValue(InputPointSizeProperty, value);
2053                 NotifyPropertyChanged();
2054             }
2055         }
2056
2057         /// <summary>
2058         /// The Underline property.
2059         /// </summary>
2060         /// <since_tizen> 3 </since_tizen>
2061         public PropertyMap Underline
2062         {
2063             get
2064             {
2065                 return (PropertyMap)GetValue(UnderlineProperty);
2066             }
2067             set
2068             {
2069                 SetValue(UnderlineProperty, value);
2070                 NotifyPropertyChanged();
2071             }
2072         }
2073
2074         /// <summary>
2075         /// The InputUnderline property.
2076         /// </summary>
2077         /// <since_tizen> 3 </since_tizen>
2078         public string InputUnderline
2079         {
2080             get
2081             {
2082                 return (string)GetValue(InputUnderlineProperty);
2083             }
2084             set
2085             {
2086                 SetValue(InputUnderlineProperty, value);
2087                 NotifyPropertyChanged();
2088             }
2089         }
2090
2091         /// <summary>
2092         /// The Shadow property.
2093         /// </summary>
2094         /// <since_tizen> 3 </since_tizen>
2095         public PropertyMap Shadow
2096         {
2097             get
2098             {
2099                 return (PropertyMap)GetValue(ShadowProperty);
2100             }
2101             set
2102             {
2103                 SetValue(ShadowProperty, value);
2104                 NotifyPropertyChanged();
2105             }
2106         }
2107
2108         /// <summary>
2109         /// The InputShadow property.
2110         /// </summary>
2111         /// <since_tizen> 3 </since_tizen>
2112         public string InputShadow
2113         {
2114             get
2115             {
2116                 return (string)GetValue(InputShadowProperty);
2117             }
2118             set
2119             {
2120                 SetValue(InputShadowProperty, value);
2121                 NotifyPropertyChanged();
2122             }
2123         }
2124
2125         /// <summary>
2126         /// The Emboss property.
2127         /// </summary>
2128         /// <since_tizen> 3 </since_tizen>
2129         public string Emboss
2130         {
2131             get
2132             {
2133                 return (string)GetValue(EmbossProperty);
2134             }
2135             set
2136             {
2137                 SetValue(EmbossProperty, value);
2138                 NotifyPropertyChanged();
2139             }
2140         }
2141
2142         /// <summary>
2143         /// The InputEmboss property.
2144         /// </summary>
2145         /// <since_tizen> 3 </since_tizen>
2146         public string InputEmboss
2147         {
2148             get
2149             {
2150                 return (string)GetValue(InputEmbossProperty);
2151             }
2152             set
2153             {
2154                 SetValue(InputEmbossProperty, value);
2155                 NotifyPropertyChanged();
2156             }
2157         }
2158
2159         /// <summary>
2160         /// The Outline property.
2161         /// </summary>
2162         /// <since_tizen> 3 </since_tizen>
2163         public PropertyMap Outline
2164         {
2165             get
2166             {
2167                 return (PropertyMap)GetValue(OutlineProperty);
2168             }
2169             set
2170             {
2171                 SetValue(OutlineProperty, value);
2172                 NotifyPropertyChanged();
2173             }
2174         }
2175
2176         /// <summary>
2177         /// The InputOutline property.
2178         /// </summary>
2179         /// <since_tizen> 3 </since_tizen>
2180         public string InputOutline
2181         {
2182             get
2183             {
2184                 return (string)GetValue(InputOutlineProperty);
2185             }
2186             set
2187             {
2188                 SetValue(InputOutlineProperty, value);
2189                 NotifyPropertyChanged();
2190             }
2191         }
2192
2193         /// <summary>
2194         /// The HiddenInputSettings property.
2195         /// </summary>
2196         /// <since_tizen> 3 </since_tizen>
2197         public Tizen.NUI.PropertyMap HiddenInputSettings
2198         {
2199             get
2200             {
2201                 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
2202             }
2203             set
2204             {
2205                 SetValue(HiddenInputSettingsProperty, value);
2206                 NotifyPropertyChanged();
2207             }
2208         }
2209
2210         /// <summary>
2211         /// The PixelSize property.
2212         /// </summary>
2213         /// <since_tizen> 3 </since_tizen>
2214         public float PixelSize
2215         {
2216             get
2217             {
2218                 return (float)GetValue(PixelSizeProperty);
2219             }
2220             set
2221             {
2222                 SetValue(PixelSizeProperty, value);
2223                 NotifyPropertyChanged();
2224             }
2225         }
2226
2227         /// <summary>
2228         /// The Enable selection property.
2229         /// </summary>
2230         /// <since_tizen> 3 </since_tizen>
2231         public bool EnableSelection
2232         {
2233             get
2234             {
2235                 return (bool)GetValue(EnableSelectionProperty);
2236             }
2237             set
2238             {
2239                 SetValue(EnableSelectionProperty, value);
2240                 NotifyPropertyChanged();
2241             }
2242         }
2243
2244         /// <summary>
2245         /// The Placeholder property.
2246         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2247         /// </summary>
2248         /// <example>
2249         /// The following example demonstrates how to set the Placeholder property.
2250         /// <code>
2251         /// PropertyMap propertyMap = new PropertyMap();
2252         /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2253         /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2254         /// propertyMap.Add("color", new PropertyValue(Color.Red));
2255         /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2256         /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2257         ///
2258         /// PropertyMap fontStyleMap = new PropertyMap();
2259         /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2260         /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2261         /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2262         /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2263         ///
2264         /// TextField field = new TextField();
2265         /// field.Placeholder = propertyMap;
2266         /// </code>
2267         /// </example>
2268         /// <since_tizen> 3 </since_tizen>
2269         public Tizen.NUI.PropertyMap Placeholder
2270         {
2271             get
2272             {
2273                 return (PropertyMap)GetValue(PlaceholderProperty);
2274             }
2275             set
2276             {
2277                 SetValue(PlaceholderProperty, value);
2278                 NotifyPropertyChanged();
2279             }
2280         }
2281
2282         /// <summary>
2283         /// The Ellipsis property.<br />
2284         /// Enable or disable the ellipsis.<br />
2285         /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2286         /// </summary>
2287         /// <since_tizen> 4 </since_tizen>
2288         public bool Ellipsis
2289         {
2290             get
2291             {
2292                 return (bool)GetValue(EllipsisProperty);
2293             }
2294             set
2295             {
2296                 SetValue(EllipsisProperty, value);
2297                 NotifyPropertyChanged();
2298             }
2299         }
2300
2301         /// <summary>
2302         /// Enables selection of the text using the Shift key.
2303         /// </summary>
2304         /// <since_tizen> 5 </since_tizen>
2305         /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2306         [EditorBrowsable(EditorBrowsableState.Never)]
2307         public bool EnableShiftSelection
2308         {
2309             get
2310             {
2311                 return (bool)GetValue(EnableShiftSelectionProperty);
2312             }
2313             set
2314             {
2315                 SetValue(EnableShiftSelectionProperty, value);
2316                 NotifyPropertyChanged();
2317             }
2318         }
2319     }
2320 }