English Review: NUI_BaseComponents (#422)
[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
978         internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
979         {
980             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
981         }
982
983         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
984         {
985             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
986         }
987
988         /// <summary>
989         /// Dispose.
990         /// </summary>
991         /// <since_tizen> 3 </since_tizen>
992         protected override void Dispose(DisposeTypes type)
993         {
994             if (disposed)
995             {
996                 DisposeQueue.Instance.Add(this);
997                 return;
998             }
999
1000             if (type == DisposeTypes.Explicit)
1001             {
1002                 //Called by User
1003                 //Release your own managed resources here.
1004                 //You should release all of your own disposable objects here.
1005             }
1006
1007             //Release your own unmanaged resources here.
1008             //You should not access any managed member here except static instance.
1009             //because the execution order of Finalizes is non-deterministic.
1010             if (this.HasBody())
1011             {
1012                 if (_textFieldMaxLengthReachedCallbackDelegate != null)
1013                 {
1014                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1015                 }
1016
1017                 if (_textFieldTextChangedCallbackDelegate != null)
1018                 {
1019                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1020                 }
1021             }
1022
1023             if (swigCPtr.Handle != global::System.IntPtr.Zero)
1024             {
1025                 if (swigCMemOwn)
1026                 {
1027                     swigCMemOwn = false;
1028                     // In order to speed up IME hide, temporarily add
1029                     GetInputMethodContext()?.DestroyContext();
1030                     NDalicPINVOKE.delete_TextField(swigCPtr);
1031                 }
1032                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1033             }
1034
1035             base.Dispose(type);
1036         }
1037
1038         /// <summary>
1039         /// The TextChanged event arguments.
1040         /// </summary>
1041         /// <since_tizen> 3 </since_tizen>
1042         public class TextChangedEventArgs : EventArgs
1043         {
1044             private TextField _textField;
1045
1046             /// <summary>
1047             /// TextField.
1048             /// </summary>
1049             /// <since_tizen> 3 </since_tizen>
1050             public TextField TextField
1051             {
1052                 get
1053                 {
1054                     return _textField;
1055                 }
1056                 set
1057                 {
1058                     _textField = value;
1059                 }
1060             }
1061         }
1062
1063         /// <summary>
1064         /// The MaxLengthReached event arguments.
1065         /// </summary>
1066         /// <since_tizen> 3 </since_tizen>
1067         public class MaxLengthReachedEventArgs : EventArgs
1068         {
1069             private TextField _textField;
1070
1071             /// <summary>
1072             /// TextField.
1073             /// </summary>
1074             /// <since_tizen> 3 </since_tizen>
1075             public TextField TextField
1076             {
1077                 get
1078                 {
1079                     return _textField;
1080                 }
1081                 set
1082                 {
1083                     _textField = value;
1084                 }
1085             }
1086         }
1087
1088
1089         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1090         private delegate void TextChangedCallbackDelegate(IntPtr textField);
1091         private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
1092         private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
1093
1094         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1095         private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1096         private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
1097         private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
1098
1099         /// <summary>
1100         /// The TextChanged event.
1101         /// </summary>
1102         /// <since_tizen> 3 </since_tizen>
1103         public event EventHandler<TextChangedEventArgs> TextChanged
1104         {
1105             add
1106             {
1107                 if (_textFieldTextChangedEventHandler == null)
1108                 {
1109                     _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1110                     TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1111                 }
1112                 _textFieldTextChangedEventHandler += value;
1113             }
1114             remove
1115             {
1116                 _textFieldTextChangedEventHandler -= value;
1117                 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1118                 {
1119                     TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1120                 }
1121             }
1122         }
1123
1124         private void OnTextChanged(IntPtr textField)
1125         {
1126             TextChangedEventArgs e = new TextChangedEventArgs();
1127
1128             // Populate all members of "e" (TextChangedEventArgs) with real data
1129             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1130
1131             if (_textFieldTextChangedEventHandler != null)
1132             {
1133                 //here we send all data to user event handlers
1134                 _textFieldTextChangedEventHandler(this, e);
1135             }
1136
1137         }
1138
1139         /// <summary>
1140         /// The MaxLengthReached event.
1141         /// </summary>
1142         /// <since_tizen> 3 </since_tizen>
1143         public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1144         {
1145             add
1146             {
1147                 if (_textFieldMaxLengthReachedEventHandler == null)
1148                 {
1149                     _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1150                     MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1151                 }
1152                 _textFieldMaxLengthReachedEventHandler += value;
1153             }
1154             remove
1155             {
1156                 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1157                 {
1158                     this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1159                 }
1160                 _textFieldMaxLengthReachedEventHandler -= value;
1161             }
1162         }
1163
1164         private void OnMaxLengthReached(IntPtr textField)
1165         {
1166             MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
1167
1168             // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
1169             e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1170
1171             if (_textFieldMaxLengthReachedEventHandler != null)
1172             {
1173                 //here we send all data to user event handlers
1174                 _textFieldMaxLengthReachedEventHandler(this, e);
1175             }
1176
1177         }
1178
1179         internal new class Property
1180         {
1181             internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
1182             internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
1183             internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
1184             internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
1185             internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
1186             internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
1187             internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
1188             internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
1189             internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
1190             internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
1191             internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
1192             internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
1193             internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
1194             internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
1195             internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
1196             internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
1197             internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
1198             internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
1199             internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
1200             internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
1201             internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
1202             internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
1203             internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1204             internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
1205             internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
1206             internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1207             internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1208             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1209             internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1210             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1211             internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1212             internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
1213             internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
1214             internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
1215             internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
1216             internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
1217             internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
1218             internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
1219             internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
1220             internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
1221             internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
1222             internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
1223             internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
1224             internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
1225             internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
1226             internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
1227             internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
1228             internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
1229             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
1230             internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
1231             internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
1232             internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
1233             internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
1234         }
1235
1236         internal class InputStyle
1237         {
1238             internal enum Mask
1239             {
1240                 None = 0x0000,
1241                 Color = 0x0001,
1242                 FontFamily = 0x0002,
1243                 PointSize = 0x0004,
1244                 FontStyle = 0x0008,
1245                 Underline = 0x0010,
1246                 Shadow = 0x0020,
1247                 Emboss = 0x0040,
1248                 Outline = 0x0080
1249             }
1250
1251         }
1252
1253         /// <summary>
1254         /// Creates the TextField control.
1255         /// </summary>
1256         /// <since_tizen> 3 </since_tizen>
1257         public TextField() : this(NDalicPINVOKE.TextField_New(), true)
1258         {
1259             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1260         }
1261
1262         internal override bool IsCreateByXaml
1263         {
1264             get
1265             {
1266                 return base.IsCreateByXaml;
1267             }
1268             set
1269             {
1270                 base.IsCreateByXaml = value;
1271
1272                 if (value == true)
1273                 {
1274                     this.TextChanged += (obj, e) =>
1275                     {
1276                         this.Text = this.Text;
1277                     };
1278                 }
1279             }
1280         }
1281
1282         internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
1283         {
1284             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1285         }
1286
1287         /// <summary>
1288         /// Get the InputMethodContext instance.
1289         /// </summary>
1290         /// <returns>The InputMethodContext instance.</returns>
1291         public InputMethodContext GetInputMethodContext() {
1292             InputMethodContext ret = new InputMethodContext(NDalicPINVOKE.TextField_GetInputMethodContext(swigCPtr), true);
1293             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1294             return ret;
1295         }
1296
1297         internal TextFieldSignal TextChangedSignal()
1298         {
1299             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
1300             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1301             return ret;
1302         }
1303
1304         internal TextFieldSignal MaxLengthReachedSignal()
1305         {
1306             TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
1307             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1308             return ret;
1309         }
1310
1311         internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
1312         {
1313             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);
1314             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1315             return ret;
1316         }
1317
1318         internal enum ExceedPolicyType
1319         {
1320             ExceedPolicyOriginal,
1321             ExceedPolicyClip
1322         }
1323
1324         /// <summary>
1325         /// The TranslatableText property.<br />
1326         /// The text can set the SID value.<br />
1327         /// </summary>
1328         /// <exception cref='ArgumentNullException'>
1329         /// ResourceManager about multilingual is null.
1330         /// </exception>
1331         /// <since_tizen> 4 </since_tizen>
1332         public string TranslatableText
1333         {
1334             get
1335             {
1336                 return textFieldTextSid;
1337             }
1338             set
1339             {
1340                 if (NUIApplication.MultilingualResourceManager == null)
1341                 {
1342                     throw new ArgumentNullException("ResourceManager about multilingual is null");
1343                 }
1344                 textFieldTextSid = value;
1345                 Text = SetTranslatable(textFieldTextSid);
1346                 NotifyPropertyChanged();
1347             }
1348         }
1349         /// <summary>
1350         /// The TranslatablePlaceholderText property.<br />
1351         /// The text can set the SID value.<br />
1352         /// </summary>
1353         /// <exception cref='ArgumentNullException'>
1354         /// ResourceManager about multilingual is null.
1355         /// </exception>
1356         /// <since_tizen> 4 </since_tizen>
1357         public string TranslatablePlaceholderText
1358         {
1359             get
1360             {
1361                 return textFieldPlaceHolderTextSid;
1362             }
1363             set
1364             {
1365                 if (NUIApplication.MultilingualResourceManager == null)
1366                 {
1367                     throw new ArgumentNullException("ResourceManager about multilingual is null");
1368                 }
1369                 textFieldPlaceHolderTextSid = value;
1370                 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1371                 NotifyPropertyChanged();
1372             }
1373         }
1374         private string SetTranslatable(string textFieldSid)
1375         {
1376             string translatableText = null;
1377             translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1378             if (translatableText != null)
1379             {
1380                 if (systemlangTextFlag == false)
1381                 {
1382                     SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1383                     systemlangTextFlag = true;
1384                 }
1385                 return translatableText;
1386             }
1387             else
1388             {
1389                 translatableText = "";
1390                 return translatableText;
1391             }
1392         }
1393         private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1394         {
1395             if (textFieldTextSid != null)
1396             {
1397                 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1398             }
1399             if (textFieldPlaceHolderTextSid != null)
1400             {
1401                 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1402             }
1403         }
1404         /// <summary>
1405         /// The Text property.
1406         /// </summary>
1407         /// <since_tizen> 3 </since_tizen>
1408         public string Text
1409         {
1410             get
1411             {
1412                 return (string)GetValue(TextProperty);
1413             }
1414             set
1415             {
1416                 SetValueAndForceSendChangeSignal(TextProperty, value);
1417                 NotifyPropertyChanged();
1418             }
1419         }
1420
1421         /// <summary>
1422         /// The PlaceholderText property.
1423         /// </summary>
1424         /// <since_tizen> 3 </since_tizen>
1425         public string PlaceholderText
1426         {
1427             get
1428             {
1429                 return (string)GetValue(PlaceholderTextProperty);
1430             }
1431             set
1432             {
1433                 SetValue(PlaceholderTextProperty, value);
1434                 NotifyPropertyChanged();
1435             }
1436         }
1437
1438         /// <summary>
1439         /// The PlaceholderTextFocused property.
1440         /// </summary>
1441         /// <since_tizen> 3 </since_tizen>
1442         public string PlaceholderTextFocused
1443         {
1444             get
1445             {
1446                 return (string)GetValue(PlaceholderTextFocusedProperty);
1447             }
1448             set
1449             {
1450                 SetValue(PlaceholderTextFocusedProperty, value);
1451                 NotifyPropertyChanged();
1452             }
1453         }
1454
1455         /// <summary>
1456         /// The FontFamily property.
1457         /// </summary>
1458         /// <since_tizen> 3 </since_tizen>
1459         public string FontFamily
1460         {
1461             get
1462             {
1463                 return (string)GetValue(FontFamilyProperty);
1464             }
1465             set
1466             {
1467                 SetValue(FontFamilyProperty, value);
1468                 NotifyPropertyChanged();
1469             }
1470         }
1471
1472         /// <summary>
1473         /// The FontStyle property.
1474         /// </summary>
1475         /// <since_tizen> 3 </since_tizen>
1476         public PropertyMap FontStyle
1477         {
1478             get
1479             {
1480                 return (PropertyMap)GetValue(FontStyleProperty);
1481             }
1482             set
1483             {
1484                 SetValue(FontStyleProperty, value);
1485                 NotifyPropertyChanged();
1486             }
1487         }
1488
1489         /// <summary>
1490         /// The PointSize property.
1491         /// </summary>
1492         /// <since_tizen> 3 </since_tizen>
1493         public float PointSize
1494         {
1495             get
1496             {
1497                 return (float)GetValue(PointSizeProperty);
1498             }
1499             set
1500             {
1501                 SetValue(PointSizeProperty, value);
1502                 NotifyPropertyChanged();
1503             }
1504         }
1505
1506         /// <summary>
1507         /// The MaxLength property.
1508         /// </summary>
1509         /// <since_tizen> 3 </since_tizen>
1510         public int MaxLength
1511         {
1512             get
1513             {
1514                 return (int)GetValue(MaxLengthProperty);
1515             }
1516             set
1517             {
1518                 SetValue(MaxLengthProperty, value);
1519                 NotifyPropertyChanged();
1520             }
1521         }
1522
1523         /// <summary>
1524         /// The ExceedPolicy property.
1525         /// </summary>
1526         /// <since_tizen> 3 </since_tizen>
1527         public int ExceedPolicy
1528         {
1529             get
1530             {
1531                 return (int)GetValue(ExceedPolicyProperty);
1532             }
1533             set
1534             {
1535                 SetValue(ExceedPolicyProperty, value);
1536                 NotifyPropertyChanged();
1537             }
1538         }
1539
1540         /// <summary>
1541         /// The HorizontalAlignment property.
1542         /// </summary>
1543         /// <since_tizen> 3 </since_tizen>
1544         public HorizontalAlignment HorizontalAlignment
1545         {
1546             get
1547             {
1548                 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1549             }
1550             set
1551             {
1552                 SetValue(HorizontalAlignmentProperty, value);
1553                 NotifyPropertyChanged();
1554             }
1555         }
1556
1557         /// <summary>
1558         /// The VerticalAlignment property.
1559         /// </summary>
1560         /// <since_tizen> 3 </since_tizen>
1561         public VerticalAlignment VerticalAlignment
1562         {
1563             get
1564             {
1565                 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1566             }
1567             set
1568             {
1569                 SetValue(VerticalAlignmentProperty, value);
1570                 NotifyPropertyChanged();
1571                 NotifyPropertyChanged();
1572             }
1573         }
1574
1575         /// <summary>
1576         /// The TextColor property.
1577         /// </summary>
1578         /// <since_tizen> 3 </since_tizen>
1579         public Color TextColor
1580         {
1581             get
1582             {
1583                 return (Color)GetValue(TextColorProperty);
1584             }
1585             set
1586             {
1587                 SetValue(TextColorProperty, value);
1588                 NotifyPropertyChanged();
1589             }
1590         }
1591
1592         /// <summary>
1593         /// The PlaceholderTextColor property.
1594         /// </summary>
1595         /// <since_tizen> 3 </since_tizen>
1596         public Vector4 PlaceholderTextColor
1597         {
1598             get
1599             {
1600                 return (Vector4)GetValue(PlaceholderTextColorProperty);
1601             }
1602             set
1603             {
1604                 SetValue(PlaceholderTextColorProperty, value);
1605                 NotifyPropertyChanged();
1606             }
1607         }
1608
1609         /// <summary>
1610         /// The ShadowOffset property.
1611         /// </summary>
1612         /// <since_tizen> 3 </since_tizen>
1613         public Vector2 ShadowOffset
1614         {
1615             get
1616             {
1617                 return (Vector2)GetValue(ShadowOffsetProperty);
1618             }
1619             set
1620             {
1621                 SetValue(ShadowOffsetProperty, value);
1622                 NotifyPropertyChanged();
1623             }
1624         }
1625
1626         /// <summary>
1627         /// The ShadowColor property.
1628         /// </summary>
1629         /// <since_tizen> 3 </since_tizen>
1630         public Vector4 ShadowColor
1631         {
1632             get
1633             {
1634                 return (Vector4)GetValue(ShadowColorProperty);
1635             }
1636             set
1637             {
1638                 SetValue(ShadowColorProperty, value);
1639                 NotifyPropertyChanged();
1640             }
1641         }
1642
1643         /// <summary>
1644         /// The PrimaryCursorColor property.
1645         /// </summary>
1646         /// <since_tizen> 3 </since_tizen>
1647         public Vector4 PrimaryCursorColor
1648         {
1649             get
1650             {
1651                 return (Vector4)GetValue(PrimaryCursorColorProperty);
1652             }
1653             set
1654             {
1655                 SetValue(PrimaryCursorColorProperty, value);
1656                 NotifyPropertyChanged();
1657             }
1658         }
1659
1660         /// <summary>
1661         /// The SecondaryCursorColor property.
1662         /// </summary>
1663         /// <since_tizen> 3 </since_tizen>
1664         public Vector4 SecondaryCursorColor
1665         {
1666             get
1667             {
1668                 return (Vector4)GetValue(SecondaryCursorColorProperty);
1669             }
1670             set
1671             {
1672                 SetValue(SecondaryCursorColorProperty, value);
1673                 NotifyPropertyChanged();
1674             }
1675         }
1676
1677         /// <summary>
1678         /// The EnableCursorBlink property.
1679         /// </summary>
1680         /// <since_tizen> 3 </since_tizen>
1681         public bool EnableCursorBlink
1682         {
1683             get
1684             {
1685                 return (bool)GetValue(EnableCursorBlinkProperty);
1686             }
1687             set
1688             {
1689                 SetValue(EnableCursorBlinkProperty, value);
1690                 NotifyPropertyChanged();
1691             }
1692         }
1693
1694         /// <summary>
1695         /// The CursorBlinkInterval property.
1696         /// </summary>
1697         /// <since_tizen> 3 </since_tizen>
1698         public float CursorBlinkInterval
1699         {
1700             get
1701             {
1702                 return (float)GetValue(CursorBlinkIntervalProperty);
1703             }
1704             set
1705             {
1706                 SetValue(CursorBlinkIntervalProperty, value);
1707                 NotifyPropertyChanged();
1708             }
1709         }
1710
1711         /// <summary>
1712         /// The CursorBlinkDuration property.
1713         /// </summary>
1714         /// <since_tizen> 3 </since_tizen>
1715         public float CursorBlinkDuration
1716         {
1717             get
1718             {
1719                 return (float)GetValue(CursorBlinkDurationProperty);
1720             }
1721             set
1722             {
1723                 SetValue(CursorBlinkDurationProperty, value);
1724                 NotifyPropertyChanged();
1725             }
1726         }
1727
1728         /// <summary>
1729         /// The CursorWidth property.
1730         /// </summary>
1731         /// <since_tizen> 3 </since_tizen>
1732         public int CursorWidth
1733         {
1734             get
1735             {
1736                 return (int)GetValue(CursorWidthProperty);
1737             }
1738             set
1739             {
1740                 SetValue(CursorWidthProperty, value);
1741                 NotifyPropertyChanged();
1742             }
1743         }
1744
1745         /// <summary>
1746         /// The GrabHandleImage property.
1747         /// </summary>
1748         /// <since_tizen> 3 </since_tizen>
1749         public string GrabHandleImage
1750         {
1751             get
1752             {
1753                 return (string)GetValue(GrabHandleImageProperty);
1754             }
1755             set
1756             {
1757                 SetValue(GrabHandleImageProperty, value);
1758                 NotifyPropertyChanged();
1759             }
1760         }
1761
1762         /// <summary>
1763         /// The GrabHandlePressedImage property.
1764         /// </summary>
1765         /// <since_tizen> 3 </since_tizen>
1766         public string GrabHandlePressedImage
1767         {
1768             get
1769             {
1770                 return (string)GetValue(GrabHandlePressedImageProperty);
1771             }
1772             set
1773             {
1774                 SetValue(GrabHandlePressedImageProperty, value);
1775                 NotifyPropertyChanged();
1776             }
1777         }
1778
1779         /// <summary>
1780         /// The ScrollThreshold property.
1781         /// </summary>
1782         /// <since_tizen> 3 </since_tizen>
1783         public float ScrollThreshold
1784         {
1785             get
1786             {
1787                 return (float)GetValue(ScrollThresholdProperty);
1788             }
1789             set
1790             {
1791                 SetValue(ScrollThresholdProperty, value);
1792                 NotifyPropertyChanged();
1793             }
1794         }
1795
1796         /// <summary>
1797         /// The ScrollSpeed property.
1798         /// </summary>
1799         /// <since_tizen> 3 </since_tizen>
1800         public float ScrollSpeed
1801         {
1802             get
1803             {
1804                 return (float)GetValue(ScrollSpeedProperty);
1805             }
1806             set
1807             {
1808                 SetValue(ScrollSpeedProperty, value);
1809                 NotifyPropertyChanged();
1810             }
1811         }
1812
1813         /// <summary>
1814         /// The SelectionHandleImageLeft property.
1815         /// </summary>
1816         /// <since_tizen> 3 </since_tizen>
1817         public PropertyMap SelectionHandleImageLeft
1818         {
1819             get
1820             {
1821                 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1822             }
1823             set
1824             {
1825                 SetValue(SelectionHandleImageLeftProperty, value);
1826                 NotifyPropertyChanged();
1827             }
1828         }
1829
1830         /// <summary>
1831         /// The SelectionHandleImageRight property.
1832         /// </summary>
1833         /// <since_tizen> 3 </since_tizen>
1834         public PropertyMap SelectionHandleImageRight
1835         {
1836             get
1837             {
1838                 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1839             }
1840             set
1841             {
1842                 SetValue(SelectionHandleImageRightProperty, value);
1843                 NotifyPropertyChanged();
1844             }
1845         }
1846
1847         /// <summary>
1848         /// The SelectionHandlePressedImageLeft property.
1849         /// </summary>
1850         /// <since_tizen> 3 </since_tizen>
1851         public PropertyMap SelectionHandlePressedImageLeft
1852         {
1853             get
1854             {
1855                 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1856             }
1857             set
1858             {
1859                 SetValue(SelectionHandlePressedImageLeftProperty, value);
1860                 NotifyPropertyChanged();
1861             }
1862         }
1863
1864         /// <summary>
1865         /// The SelectionHandlePressedImageRight property.
1866         /// </summary>
1867         /// <since_tizen> 3 </since_tizen>
1868         public PropertyMap SelectionHandlePressedImageRight
1869         {
1870             get
1871             {
1872                 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1873             }
1874             set
1875             {
1876                 SetValue(SelectionHandlePressedImageRightProperty, value);
1877                 NotifyPropertyChanged();
1878             }
1879         }
1880
1881         /// <summary>
1882         /// The SelectionHandleMarkerImageLeft property.
1883         /// </summary>
1884         /// <since_tizen> 3 </since_tizen>
1885         public PropertyMap SelectionHandleMarkerImageLeft
1886         {
1887             get
1888             {
1889                 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1890             }
1891             set
1892             {
1893                 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1894                 NotifyPropertyChanged();
1895             }
1896         }
1897
1898         /// <summary>
1899         /// The SelectionHandleMarkerImageRight property.
1900         /// </summary>
1901         /// <since_tizen> 3 </since_tizen>
1902         public PropertyMap SelectionHandleMarkerImageRight
1903         {
1904             get
1905             {
1906                 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1907             }
1908             set
1909             {
1910                 SetValue(SelectionHandleMarkerImageRightProperty, value);
1911                 NotifyPropertyChanged();
1912             }
1913         }
1914
1915         /// <summary>
1916         /// The SelectionHighlightColor property.
1917         /// </summary>
1918         /// <since_tizen> 3 </since_tizen>
1919         public Vector4 SelectionHighlightColor
1920         {
1921             get
1922             {
1923                 return (Vector4)GetValue(SelectionHighlightColorProperty);
1924             }
1925             set
1926             {
1927                 SetValue(SelectionHighlightColorProperty, value);
1928                 NotifyPropertyChanged();
1929             }
1930         }
1931
1932         /// <summary>
1933         /// The DecorationBoundingBox property.
1934         /// </summary>
1935         /// <since_tizen> 3 </since_tizen>
1936         public Rectangle DecorationBoundingBox
1937         {
1938             get
1939             {
1940                 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1941             }
1942             set
1943             {
1944                 SetValue(DecorationBoundingBoxProperty, value);
1945                 NotifyPropertyChanged();
1946             }
1947         }
1948
1949         /// <summary>
1950         /// The InputMethodSettings property.
1951         /// </summary>
1952         /// <since_tizen> 3 </since_tizen>
1953         public PropertyMap InputMethodSettings
1954         {
1955             get
1956             {
1957                 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1958             }
1959             set
1960             {
1961                 SetValue(InputMethodSettingsProperty, value);
1962                 NotifyPropertyChanged();
1963             }
1964         }
1965
1966         /// <summary>
1967         /// The InputColor property.
1968         /// </summary>
1969         /// <since_tizen> 3 </since_tizen>
1970         public Vector4 InputColor
1971         {
1972             get
1973             {
1974                 return (Vector4)GetValue(InputColorProperty);
1975             }
1976             set
1977             {
1978                 SetValue(InputColorProperty, value);
1979                 NotifyPropertyChanged();
1980             }
1981         }
1982
1983         /// <summary>
1984         /// The EnableMarkup property.
1985         /// </summary>
1986         /// <since_tizen> 3 </since_tizen>
1987         public bool EnableMarkup
1988         {
1989             get
1990             {
1991                 return (bool)GetValue(EnableMarkupProperty);
1992             }
1993             set
1994             {
1995                 SetValue(EnableMarkupProperty, value);
1996                 NotifyPropertyChanged();
1997             }
1998         }
1999
2000         /// <summary>
2001         /// The InputFontFamily property.
2002         /// </summary>
2003         /// <since_tizen> 3 </since_tizen>
2004         public string InputFontFamily
2005         {
2006             get
2007             {
2008                 return (string)GetValue(InputFontFamilyProperty);
2009             }
2010             set
2011             {
2012                 SetValue(InputFontFamilyProperty, value);
2013                 NotifyPropertyChanged();
2014             }
2015         }
2016
2017         /// <summary>
2018         /// The InputFontStyle property.
2019         /// </summary>
2020         /// <since_tizen> 3 </since_tizen>
2021         public PropertyMap InputFontStyle
2022         {
2023             get
2024             {
2025                 return (PropertyMap)GetValue(InputFontStyleProperty);
2026             }
2027             set
2028             {
2029                 SetValue(InputFontStyleProperty, value);
2030                 NotifyPropertyChanged();
2031             }
2032         }
2033
2034         /// <summary>
2035         /// The InputPointSize property.
2036         /// </summary>
2037         /// <since_tizen> 3 </since_tizen>
2038         public float InputPointSize
2039         {
2040             get
2041             {
2042                 return (float)GetValue(InputPointSizeProperty);
2043             }
2044             set
2045             {
2046                 SetValue(InputPointSizeProperty, value);
2047                 NotifyPropertyChanged();
2048             }
2049         }
2050
2051         /// <summary>
2052         /// The Underline property.
2053         /// </summary>
2054         /// <since_tizen> 3 </since_tizen>
2055         public PropertyMap Underline
2056         {
2057             get
2058             {
2059                 return (PropertyMap)GetValue(UnderlineProperty);
2060             }
2061             set
2062             {
2063                 SetValue(UnderlineProperty, value);
2064                 NotifyPropertyChanged();
2065             }
2066         }
2067
2068         /// <summary>
2069         /// The InputUnderline property.
2070         /// </summary>
2071         /// <since_tizen> 3 </since_tizen>
2072         public string InputUnderline
2073         {
2074             get
2075             {
2076                 return (string)GetValue(InputUnderlineProperty);
2077             }
2078             set
2079             {
2080                 SetValue(InputUnderlineProperty, value);
2081                 NotifyPropertyChanged();
2082             }
2083         }
2084
2085         /// <summary>
2086         /// The Shadow property.
2087         /// </summary>
2088         /// <since_tizen> 3 </since_tizen>
2089         public PropertyMap Shadow
2090         {
2091             get
2092             {
2093                 return (PropertyMap)GetValue(ShadowProperty);
2094             }
2095             set
2096             {
2097                 SetValue(ShadowProperty, value);
2098                 NotifyPropertyChanged();
2099             }
2100         }
2101
2102         /// <summary>
2103         /// The InputShadow property.
2104         /// </summary>
2105         /// <since_tizen> 3 </since_tizen>
2106         public string InputShadow
2107         {
2108             get
2109             {
2110                 return (string)GetValue(InputShadowProperty);
2111             }
2112             set
2113             {
2114                 SetValue(InputShadowProperty, value);
2115                 NotifyPropertyChanged();
2116             }
2117         }
2118
2119         /// <summary>
2120         /// The Emboss property.
2121         /// </summary>
2122         /// <since_tizen> 3 </since_tizen>
2123         public string Emboss
2124         {
2125             get
2126             {
2127                 return (string)GetValue(EmbossProperty);
2128             }
2129             set
2130             {
2131                 SetValue(EmbossProperty, value);
2132                 NotifyPropertyChanged();
2133             }
2134         }
2135
2136         /// <summary>
2137         /// The InputEmboss property.
2138         /// </summary>
2139         /// <since_tizen> 3 </since_tizen>
2140         public string InputEmboss
2141         {
2142             get
2143             {
2144                 return (string)GetValue(InputEmbossProperty);
2145             }
2146             set
2147             {
2148                 SetValue(InputEmbossProperty, value);
2149                 NotifyPropertyChanged();
2150             }
2151         }
2152
2153         /// <summary>
2154         /// The Outline property.
2155         /// </summary>
2156         /// <since_tizen> 3 </since_tizen>
2157         public PropertyMap Outline
2158         {
2159             get
2160             {
2161                 return (PropertyMap)GetValue(OutlineProperty);
2162             }
2163             set
2164             {
2165                 SetValue(OutlineProperty, value);
2166                 NotifyPropertyChanged();
2167             }
2168         }
2169
2170         /// <summary>
2171         /// The InputOutline property.
2172         /// </summary>
2173         /// <since_tizen> 3 </since_tizen>
2174         public string InputOutline
2175         {
2176             get
2177             {
2178                 return (string)GetValue(InputOutlineProperty);
2179             }
2180             set
2181             {
2182                 SetValue(InputOutlineProperty, value);
2183                 NotifyPropertyChanged();
2184             }
2185         }
2186
2187         /// <summary>
2188         /// The HiddenInputSettings property.
2189         /// </summary>
2190         /// <since_tizen> 3 </since_tizen>
2191         public Tizen.NUI.PropertyMap HiddenInputSettings
2192         {
2193             get
2194             {
2195                 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
2196             }
2197             set
2198             {
2199                 SetValue(HiddenInputSettingsProperty, value);
2200                 NotifyPropertyChanged();
2201             }
2202         }
2203
2204         /// <summary>
2205         /// The PixelSize property.
2206         /// </summary>
2207         /// <since_tizen> 3 </since_tizen>
2208         public float PixelSize
2209         {
2210             get
2211             {
2212                 return (float)GetValue(PixelSizeProperty);
2213             }
2214             set
2215             {
2216                 SetValue(PixelSizeProperty, value);
2217                 NotifyPropertyChanged();
2218             }
2219         }
2220
2221         /// <summary>
2222         /// The Enable selection property.
2223         /// </summary>
2224         /// <since_tizen> 3 </since_tizen>
2225         public bool EnableSelection
2226         {
2227             get
2228             {
2229                 return (bool)GetValue(EnableSelectionProperty);
2230             }
2231             set
2232             {
2233                 SetValue(EnableSelectionProperty, value);
2234                 NotifyPropertyChanged();
2235             }
2236         }
2237
2238         /// <summary>
2239         /// The Placeholder property.
2240         /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2241         /// </summary>
2242         /// <example>
2243         /// The following example demonstrates how to set the Placeholder property.
2244         /// <code>
2245         /// PropertyMap propertyMap = new PropertyMap();
2246         /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2247         /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2248         /// propertyMap.Add("color", new PropertyValue(Color.Red));
2249         /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2250         /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2251         ///
2252         /// PropertyMap fontStyleMap = new PropertyMap();
2253         /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2254         /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2255         /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2256         /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2257         ///
2258         /// TextField field = new TextField();
2259         /// field.Placeholder = propertyMap;
2260         /// </code>
2261         /// </example>
2262         /// <since_tizen> 3 </since_tizen>
2263         public Tizen.NUI.PropertyMap Placeholder
2264         {
2265             get
2266             {
2267                 return (PropertyMap)GetValue(PlaceholderProperty);
2268             }
2269             set
2270             {
2271                 SetValue(PlaceholderProperty, value);
2272                 NotifyPropertyChanged();
2273             }
2274         }
2275
2276         /// <summary>
2277         /// The Ellipsis property.<br />
2278         /// Enable or disable the ellipsis.<br />
2279         /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2280         /// </summary>
2281         /// <since_tizen> 4 </since_tizen>
2282         public bool Ellipsis
2283         {
2284             get
2285             {
2286                 return (bool)GetValue(EllipsisProperty);
2287             }
2288             set
2289             {
2290                 SetValue(EllipsisProperty, value);
2291                 NotifyPropertyChanged();
2292             }
2293         }
2294
2295         /// <summary>
2296         /// Enables selection of the text using the Shift key.
2297         /// </summary>
2298         /// <since_tizen> 5 </since_tizen>
2299         /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2300         [EditorBrowsable(EditorBrowsableState.Never)]
2301         public bool EnableShiftSelection
2302         {
2303             get
2304             {
2305                 return (bool)GetValue(EnableShiftSelectionProperty);
2306             }
2307             set
2308             {
2309                 SetValue(EnableShiftSelectionProperty, value);
2310                 NotifyPropertyChanged();
2311             }
2312         }
2313     }
2314 }