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