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