2 * Copyright(c) 2019 Samsung Electronics Co., Ltd.
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 extern alias TizenSystemSettings;
18 using TizenSystemSettings.Tizen.System;
21 using System.Runtime.InteropServices;
22 using System.Globalization;
23 using System.ComponentModel;
24 using Tizen.NUI.Binding;
26 namespace Tizen.NUI.BaseComponents
29 /// A control which provides a single line editable text field.
31 /// <since_tizen> 3 </since_tizen>
32 public class TextField : View
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) =>
38 var textField = (TextField)bindable;
41 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
44 defaultValueCreator: (bindable) =>
46 var textField = (TextField)bindable;
48 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.TEXT).Get(out temp);
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) =>
55 var textField = (TextField)bindable;
58 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue((string)newValue));
61 defaultValueCreator: (bindable) =>
63 var textField = (TextField)bindable;
65 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
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) =>
72 var textField = (TextField)bindable;
75 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue((string)newValue));
78 defaultValueCreator: (bindable) =>
80 var textField = (TextField)bindable;
82 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
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) =>
89 var textField = (TextField)bindable;
92 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
95 defaultValueCreator: (bindable) =>
97 var textField = (TextField)bindable;
99 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.FONT_FAMILY).Get(out temp);
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) =>
106 var textField = (TextField)bindable;
107 if (newValue != null)
109 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
112 defaultValueCreator: (bindable) =>
114 var textField = (TextField)bindable;
115 PropertyMap temp = new PropertyMap();
116 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.FONT_STYLE).Get(temp);
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) =>
123 var textField = (TextField)bindable;
124 if (newValue != null)
126 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
129 defaultValueCreator: (bindable) =>
131 var textField = (TextField)bindable;
133 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.POINT_SIZE).Get(out temp);
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) =>
140 var textField = (TextField)bindable;
141 if (newValue != null)
143 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue((int)newValue));
146 defaultValueCreator: (bindable) =>
148 var textField = (TextField)bindable;
150 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.MAX_LENGTH).Get(out temp);
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) =>
157 var textField = (TextField)bindable;
158 if (newValue != null)
160 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
163 defaultValueCreator: (bindable) =>
165 var textField = (TextField)bindable;
167 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EXCEED_POLICY).Get(out temp);
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) =>
174 var textField = (TextField)bindable;
175 if (newValue != null)
177 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
180 defaultValueCreator: (bindable) =>
182 var textField = (TextField)bindable;
184 if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
186 NUILog.Error("HorizontalAlignment get error!");
191 case "BEGIN": return HorizontalAlignment.Begin;
192 case "CENTER": return HorizontalAlignment.Center;
193 case "END": return HorizontalAlignment.End;
194 default: return HorizontalAlignment.Begin;
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) =>
201 var textField = (TextField)bindable;
202 if (newValue != null)
204 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
207 defaultValueCreator: (bindable) =>
209 var textField = (TextField)bindable;
211 if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
213 NUILog.Error("VerticalAlignment get error!");
218 case "TOP": return VerticalAlignment.Top;
219 case "CENTER": return VerticalAlignment.Center;
220 case "BOTTOM": return VerticalAlignment.Bottom;
221 default: return VerticalAlignment.Bottom;
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) =>
228 var textField = (TextField)bindable;
229 if (newValue != null)
231 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
234 defaultValueCreator: (bindable) =>
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);
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) =>
245 var textField = (TextField)bindable;
246 if (newValue != null)
248 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
251 defaultValueCreator: (bindable) =>
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);
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) =>
262 var textField = (TextField)bindable;
263 if (newValue != null)
265 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_GRAB_HANDLE, new Tizen.NUI.PropertyValue((bool)newValue));
268 defaultValueCreator: (bindable) =>
270 var textField = (TextField)bindable;
272 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_GRAB_HANDLE).Get(out temp);
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) =>
279 var textField = (TextField)bindable;
280 if (newValue != null)
282 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_GRAB_HANDLE_POPUP, new Tizen.NUI.PropertyValue((bool)newValue));
285 defaultValueCreator: (bindable) =>
287 var textField = (TextField)bindable;
289 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_GRAB_HANDLE_POPUP).Get(out temp);
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) =>
296 var textField = (TextField)bindable;
297 if (newValue != null)
299 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
302 defaultValueCreator: (bindable) =>
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);
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) =>
313 var textField = (TextField)bindable;
314 if (newValue != null)
316 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
319 defaultValueCreator: (bindable) =>
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);
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) =>
330 var textField = (TextField)bindable;
331 if (newValue != null)
333 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
336 defaultValueCreator: (bindable) =>
338 var textField = (TextField)bindable;
340 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
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) =>
347 var textField = (TextField)bindable;
348 if (newValue != null)
350 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
353 defaultValueCreator: (bindable) =>
355 var textField = (TextField)bindable;
357 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
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) =>
364 var textField = (TextField)bindable;
365 if (newValue != null)
367 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
370 defaultValueCreator: (bindable) =>
372 var textField = (TextField)bindable;
374 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION).Get(out temp);
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) =>
381 var textField = (TextField)bindable;
382 if (newValue != null)
384 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
387 defaultValueCreator: (bindable) =>
389 var textField = (TextField)bindable;
391 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH).Get(out temp);
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) =>
398 var textField = (TextField)bindable;
399 if (newValue != null)
401 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
404 defaultValueCreator: (bindable) =>
406 var textField = (TextField)bindable;
408 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
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) =>
415 var textField = (TextField)bindable;
416 if (newValue != null)
418 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
421 defaultValueCreator: (bindable) =>
423 var textField = (TextField)bindable;
425 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
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) =>
432 var textField = (TextField)bindable;
433 if (newValue != null)
435 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
438 defaultValueCreator: (bindable) =>
440 var textField = (TextField)bindable;
442 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD).Get(out temp);
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) =>
449 var textField = (TextField)bindable;
450 if (newValue != null)
452 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
455 defaultValueCreator: (bindable) =>
457 var textField = (TextField)bindable;
459 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED).Get(out temp);
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) =>
466 var textField = (TextField)bindable;
467 if (newValue != null)
469 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
472 defaultValueCreator: (bindable) =>
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);
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) =>
483 var textField = (TextField)bindable;
484 if (newValue != null)
486 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
489 defaultValueCreator: (bindable) =>
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);
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) =>
500 var textField = (TextField)bindable;
501 if (newValue != null)
503 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
506 defaultValueCreator: (bindable) =>
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);
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) =>
517 var textField = (TextField)bindable;
518 if (newValue != null)
520 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
523 defaultValueCreator: (bindable) =>
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);
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) =>
534 var textField = (TextField)bindable;
535 if (newValue != null)
537 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
540 defaultValueCreator: (bindable) =>
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);
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) =>
551 var textField = (TextField)bindable;
552 if (newValue != null)
554 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
557 defaultValueCreator: (bindable) =>
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);
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) =>
568 var textField = (TextField)bindable;
569 if (newValue != null)
571 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
574 defaultValueCreator: (bindable) =>
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);
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) =>
585 var textField = (TextField)bindable;
586 if (newValue != null)
588 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
591 defaultValueCreator: (bindable) =>
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);
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) =>
602 var textField = (TextField)bindable;
603 if (newValue != null)
605 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
608 defaultValueCreator: (bindable) =>
610 var textField = (TextField)bindable;
611 PropertyMap temp = new PropertyMap();
612 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
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) =>
619 var textField = (TextField)bindable;
620 if (newValue != null)
622 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
625 defaultValueCreator: (bindable) =>
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);
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) =>
636 var textField = (TextField)bindable;
637 if (newValue != null)
639 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
642 defaultValueCreator: (bindable) =>
644 var textField = (TextField)bindable;
646 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP).Get(out temp);
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) =>
653 var textField = (TextField)bindable;
654 if (newValue != null)
656 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
659 defaultValueCreator: (bindable) =>
661 var textField = (TextField)bindable;
663 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
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) =>
670 var textField = (TextField)bindable;
671 if (newValue != null)
673 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
676 defaultValueCreator: (bindable) =>
678 var textField = (TextField)bindable;
679 PropertyMap temp = new PropertyMap();
680 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE).Get(temp);
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) =>
687 var textField = (TextField)bindable;
688 if (newValue != null)
690 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
693 defaultValueCreator: (bindable) =>
695 var textField = (TextField)bindable;
697 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE).Get(out temp);
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) =>
704 var textField = (TextField)bindable;
705 if (newValue != null)
707 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
710 defaultValueCreator: (bindable) =>
712 var textField = (TextField)bindable;
713 PropertyMap temp = new PropertyMap();
714 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.UNDERLINE).Get(temp);
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) =>
721 var textField = (TextField)bindable;
722 if (newValue != null)
724 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
727 defaultValueCreator: (bindable) =>
729 var textField = (TextField)bindable;
731 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE).Get(out temp);
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) =>
738 var textField = (TextField)bindable;
739 if (newValue != null)
741 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
744 defaultValueCreator: (bindable) =>
746 var textField = (TextField)bindable;
747 PropertyMap temp = new PropertyMap();
748 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW).Get(temp);
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) =>
755 var textField = (TextField)bindable;
756 if (newValue != null)
758 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
761 defaultValueCreator: (bindable) =>
763 var textField = (TextField)bindable;
765 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW).Get(out temp);
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) =>
772 var textField = (TextField)bindable;
773 if (newValue != null)
775 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
778 defaultValueCreator: (bindable) =>
780 var textField = (TextField)bindable;
782 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EMBOSS).Get(out temp);
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) =>
789 var textField = (TextField)bindable;
790 if (newValue != null)
792 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
795 defaultValueCreator: (bindable) =>
797 var textField = (TextField)bindable;
799 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS).Get(out temp);
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) =>
806 var textField = (TextField)bindable;
807 if (newValue != null)
809 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
812 defaultValueCreator: (bindable) =>
814 var textField = (TextField)bindable;
815 PropertyMap temp = new PropertyMap();
816 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.OUTLINE).Get(temp);
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) =>
823 var textField = (TextField)bindable;
824 if (newValue != null)
826 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
829 defaultValueCreator: (bindable) =>
831 var textField = (TextField)bindable;
833 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE).Get(out temp);
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) =>
840 var textField = (TextField)bindable;
841 if (newValue != null)
843 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
846 defaultValueCreator: (bindable) =>
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);
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) =>
857 var textField = (TextField)bindable;
858 if (newValue != null)
860 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
863 defaultValueCreator: (bindable) =>
865 var textField = (TextField)bindable;
867 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE).Get(out temp);
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) =>
874 var textField = (TextField)bindable;
875 if (newValue != null)
877 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
880 defaultValueCreator: (bindable) =>
882 var textField = (TextField)bindable;
884 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION).Get(out temp);
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) =>
891 var textField = (TextField)bindable;
892 if (newValue != null)
894 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
897 defaultValueCreator: (bindable) =>
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);
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) =>
908 var textField = (TextField)bindable;
909 if (newValue != null)
911 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue((bool)newValue));
914 defaultValueCreator: (bindable) =>
916 var textField = (TextField)bindable;
918 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS).Get(out temp);
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) =>
925 var textField = (TextField)bindable;
926 if (newValue != null)
928 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
931 defaultValueCreator: (bindable) =>
933 var textField = (TextField)bindable;
935 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
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) =>
942 var textField = (TextField)bindable;
943 if (newValue != null)
945 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.MATCH_SYSTEM_LANGUAGE_DIRECTION, new Tizen.NUI.PropertyValue((bool)newValue));
948 defaultValueCreator: (bindable) =>
950 var textField = (TextField)bindable;
952 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.MATCH_SYSTEM_LANGUAGE_DIRECTION).Get(out temp);
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;
967 /// Creates the TextField control.
969 /// <since_tizen> 3 </since_tizen>
970 public TextField() : this(Interop.TextField.TextField_New(), true)
972 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
975 internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.TextField.TextField_SWIGUpcast(cPtr), cMemoryOwn)
977 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
980 internal TextField(TextField handle) : this(Interop.TextField.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
982 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
985 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
986 private delegate void TextChangedCallbackDelegate(IntPtr textField);
988 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
989 private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
992 /// The TextChanged event.
994 /// <since_tizen> 3 </since_tizen>
995 public event EventHandler<TextChangedEventArgs> TextChanged
999 if (_textFieldTextChangedEventHandler == null)
1001 _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1002 TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1004 _textFieldTextChangedEventHandler += value;
1008 _textFieldTextChangedEventHandler -= value;
1009 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1011 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1017 /// The MaxLengthReached event.
1019 /// <since_tizen> 3 </since_tizen>
1020 public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1024 if (_textFieldMaxLengthReachedEventHandler == null)
1026 _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1027 MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1029 _textFieldMaxLengthReachedEventHandler += value;
1033 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1035 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1037 _textFieldMaxLengthReachedEventHandler -= value;
1041 internal enum ExceedPolicyType
1043 ExceedPolicyOriginal,
1048 /// The TranslatableText property.<br />
1049 /// The text can set the SID value.<br />
1051 /// <exception cref='ArgumentNullException'>
1052 /// ResourceManager about multilingual is null.
1054 /// <since_tizen> 4 </since_tizen>
1055 public string TranslatableText
1059 return textFieldTextSid;
1063 if (NUIApplication.MultilingualResourceManager == null)
1065 throw new ArgumentNullException("ResourceManager about multilingual is null");
1067 textFieldTextSid = value;
1068 Text = SetTranslatable(textFieldTextSid);
1069 NotifyPropertyChanged();
1074 /// The TranslatablePlaceholderText property.<br />
1075 /// The text can set the SID value.<br />
1077 /// <exception cref='ArgumentNullException'>
1078 /// ResourceManager about multilingual is null.
1080 /// <since_tizen> 4 </since_tizen>
1081 public string TranslatablePlaceholderText
1085 return textFieldPlaceHolderTextSid;
1089 if (NUIApplication.MultilingualResourceManager == null)
1091 throw new ArgumentNullException("ResourceManager about multilingual is null");
1093 textFieldPlaceHolderTextSid = value;
1094 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1095 NotifyPropertyChanged();
1100 /// The Text property.
1102 /// <since_tizen> 3 </since_tizen>
1107 return (string)GetValue(TextProperty);
1111 SetValueAndForceSendChangeSignal(TextProperty, value);
1112 NotifyPropertyChanged();
1117 /// The PlaceholderText property.
1119 /// <since_tizen> 3 </since_tizen>
1120 public string PlaceholderText
1124 return (string)GetValue(PlaceholderTextProperty);
1128 SetValue(PlaceholderTextProperty, value);
1129 NotifyPropertyChanged();
1134 /// The PlaceholderTextFocused property.
1136 /// <since_tizen> 3 </since_tizen>
1137 public string PlaceholderTextFocused
1141 return (string)GetValue(PlaceholderTextFocusedProperty);
1145 SetValue(PlaceholderTextFocusedProperty, value);
1146 NotifyPropertyChanged();
1151 /// The FontFamily property.
1153 /// <since_tizen> 3 </since_tizen>
1154 public string FontFamily
1158 return (string)GetValue(FontFamilyProperty);
1162 SetValue(FontFamilyProperty, value);
1163 NotifyPropertyChanged();
1168 /// The FontStyle property.
1170 /// <since_tizen> 3 </since_tizen>
1171 public PropertyMap FontStyle
1175 return (PropertyMap)GetValue(FontStyleProperty);
1179 SetValue(FontStyleProperty, value);
1180 NotifyPropertyChanged();
1185 /// The PointSize property.
1187 /// <since_tizen> 3 </since_tizen>
1188 public float PointSize
1192 return (float)GetValue(PointSizeProperty);
1196 SetValue(PointSizeProperty, value);
1197 NotifyPropertyChanged();
1202 /// The MaxLength property.
1204 /// <since_tizen> 3 </since_tizen>
1205 public int MaxLength
1209 return (int)GetValue(MaxLengthProperty);
1213 SetValue(MaxLengthProperty, value);
1214 NotifyPropertyChanged();
1219 /// The ExceedPolicy property.
1221 /// <since_tizen> 3 </since_tizen>
1222 public int ExceedPolicy
1226 return (int)GetValue(ExceedPolicyProperty);
1230 SetValue(ExceedPolicyProperty, value);
1231 NotifyPropertyChanged();
1236 /// The HorizontalAlignment property.
1238 /// <since_tizen> 3 </since_tizen>
1239 public HorizontalAlignment HorizontalAlignment
1243 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1247 SetValue(HorizontalAlignmentProperty, value);
1248 NotifyPropertyChanged();
1253 /// The VerticalAlignment property.
1255 /// <since_tizen> 3 </since_tizen>
1256 public VerticalAlignment VerticalAlignment
1260 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1264 SetValue(VerticalAlignmentProperty, value);
1265 NotifyPropertyChanged();
1266 NotifyPropertyChanged();
1271 /// The TextColor property.
1273 /// <since_tizen> 3 </since_tizen>
1274 public Color TextColor
1278 return (Color)GetValue(TextColorProperty);
1282 SetValue(TextColorProperty, value);
1283 NotifyPropertyChanged();
1288 /// The PlaceholderTextColor property.
1290 /// <since_tizen> 3 </since_tizen>
1291 public Vector4 PlaceholderTextColor
1295 return (Vector4)GetValue(PlaceholderTextColorProperty);
1299 SetValue(PlaceholderTextColorProperty, value);
1300 NotifyPropertyChanged();
1305 /// The ShadowOffset property.
1307 /// <since_tizen> 3 </since_tizen>
1309 /// Deprecated.(API Level 6) Use Shadow instead.
1311 [Obsolete("Please do not use this ShadowOffset(Deprecated). Please use Shadow instead.")]
1312 public Vector2 ShadowOffset
1316 PropertyMap map = new PropertyMap();
1317 GetProperty(TextField.Property.SHADOW).Get(map);
1318 Vector2 shadowOffset = new Vector2();
1319 map.Find(TextField.Property.SHADOW, "offset")?.Get(shadowOffset);
1320 return shadowOffset;
1324 PropertyMap temp = new PropertyMap();
1325 temp.Insert("offset", new PropertyValue(value));
1326 SetValue(ShadowProperty, temp);
1327 NotifyPropertyChanged();
1332 /// The ShadowColor property.
1334 /// <since_tizen> 3 </since_tizen>
1336 /// Deprecated.(API Level 6) Use Shadow instead.
1338 [Obsolete("Please do not use this ShadowColor(Deprecated). Please use Shadow instead.")]
1339 public Vector4 ShadowColor
1343 PropertyMap map = new PropertyMap();
1344 GetProperty(TextField.Property.SHADOW).Get(map);
1345 Vector4 shadowColor = new Vector4();
1346 map.Find(TextField.Property.SHADOW, "color")?.Get(shadowColor);
1351 PropertyMap temp = new PropertyMap();
1352 temp.Insert("color", new PropertyValue(value));
1353 SetValue(ShadowProperty, temp);
1354 NotifyPropertyChanged();
1359 /// The PrimaryCursorColor property.
1361 /// <since_tizen> 3 </since_tizen>
1362 public Vector4 PrimaryCursorColor
1366 return (Vector4)GetValue(PrimaryCursorColorProperty);
1370 SetValue(PrimaryCursorColorProperty, value);
1371 NotifyPropertyChanged();
1376 /// The SecondaryCursorColor property.
1378 /// <since_tizen> 3 </since_tizen>
1379 public Vector4 SecondaryCursorColor
1383 return (Vector4)GetValue(SecondaryCursorColorProperty);
1387 SetValue(SecondaryCursorColorProperty, value);
1388 NotifyPropertyChanged();
1393 /// The EnableCursorBlink property.
1395 /// <since_tizen> 3 </since_tizen>
1396 public bool EnableCursorBlink
1400 return (bool)GetValue(EnableCursorBlinkProperty);
1404 SetValue(EnableCursorBlinkProperty, value);
1405 NotifyPropertyChanged();
1410 /// The CursorBlinkInterval property.
1412 /// <since_tizen> 3 </since_tizen>
1413 public float CursorBlinkInterval
1417 return (float)GetValue(CursorBlinkIntervalProperty);
1421 SetValue(CursorBlinkIntervalProperty, value);
1422 NotifyPropertyChanged();
1427 /// The CursorBlinkDuration property.
1429 /// <since_tizen> 3 </since_tizen>
1430 public float CursorBlinkDuration
1434 return (float)GetValue(CursorBlinkDurationProperty);
1438 SetValue(CursorBlinkDurationProperty, value);
1439 NotifyPropertyChanged();
1444 /// The CursorWidth property.
1446 /// <since_tizen> 3 </since_tizen>
1447 public int CursorWidth
1451 return (int)GetValue(CursorWidthProperty);
1455 SetValue(CursorWidthProperty, value);
1456 NotifyPropertyChanged();
1461 /// The GrabHandleImage property.
1463 /// <since_tizen> 3 </since_tizen>
1464 public string GrabHandleImage
1468 return (string)GetValue(GrabHandleImageProperty);
1472 SetValue(GrabHandleImageProperty, value);
1473 NotifyPropertyChanged();
1478 /// The GrabHandlePressedImage property.
1480 /// <since_tizen> 3 </since_tizen>
1481 public string GrabHandlePressedImage
1485 return (string)GetValue(GrabHandlePressedImageProperty);
1489 SetValue(GrabHandlePressedImageProperty, value);
1490 NotifyPropertyChanged();
1495 /// The ScrollThreshold property.
1497 /// <since_tizen> 3 </since_tizen>
1498 public float ScrollThreshold
1502 return (float)GetValue(ScrollThresholdProperty);
1506 SetValue(ScrollThresholdProperty, value);
1507 NotifyPropertyChanged();
1512 /// The ScrollSpeed property.
1514 /// <since_tizen> 3 </since_tizen>
1515 public float ScrollSpeed
1519 return (float)GetValue(ScrollSpeedProperty);
1523 SetValue(ScrollSpeedProperty, value);
1524 NotifyPropertyChanged();
1529 /// The SelectionHandleImageLeft property.
1531 /// <since_tizen> 3 </since_tizen>
1532 public PropertyMap SelectionHandleImageLeft
1536 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1540 SetValue(SelectionHandleImageLeftProperty, value);
1541 NotifyPropertyChanged();
1546 /// The SelectionHandleImageRight property.
1548 /// <since_tizen> 3 </since_tizen>
1549 public PropertyMap SelectionHandleImageRight
1553 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1557 SetValue(SelectionHandleImageRightProperty, value);
1558 NotifyPropertyChanged();
1563 /// The SelectionHandlePressedImageLeft property.
1565 /// <since_tizen> 3 </since_tizen>
1566 public PropertyMap SelectionHandlePressedImageLeft
1570 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1574 SetValue(SelectionHandlePressedImageLeftProperty, value);
1575 NotifyPropertyChanged();
1580 /// The SelectionHandlePressedImageRight property.
1582 /// <since_tizen> 3 </since_tizen>
1583 public PropertyMap SelectionHandlePressedImageRight
1587 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1591 SetValue(SelectionHandlePressedImageRightProperty, value);
1592 NotifyPropertyChanged();
1597 /// The SelectionHandleMarkerImageLeft property.
1599 /// <since_tizen> 3 </since_tizen>
1600 public PropertyMap SelectionHandleMarkerImageLeft
1604 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1608 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1609 NotifyPropertyChanged();
1614 /// The SelectionHandleMarkerImageRight property.
1616 /// <since_tizen> 3 </since_tizen>
1617 public PropertyMap SelectionHandleMarkerImageRight
1621 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1625 SetValue(SelectionHandleMarkerImageRightProperty, value);
1626 NotifyPropertyChanged();
1631 /// The SelectionHighlightColor property.
1633 /// <since_tizen> 3 </since_tizen>
1634 public Vector4 SelectionHighlightColor
1638 return (Vector4)GetValue(SelectionHighlightColorProperty);
1642 SetValue(SelectionHighlightColorProperty, value);
1643 NotifyPropertyChanged();
1648 /// The DecorationBoundingBox property.
1650 /// <since_tizen> 3 </since_tizen>
1651 public Rectangle DecorationBoundingBox
1655 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1659 SetValue(DecorationBoundingBoxProperty, value);
1660 NotifyPropertyChanged();
1665 /// The InputMethodSettings property.
1667 /// <since_tizen> 3 </since_tizen>
1668 public PropertyMap InputMethodSettings
1672 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1676 SetValue(InputMethodSettingsProperty, value);
1677 NotifyPropertyChanged();
1682 /// The InputColor property.
1684 /// <since_tizen> 3 </since_tizen>
1685 public Vector4 InputColor
1689 return (Vector4)GetValue(InputColorProperty);
1693 SetValue(InputColorProperty, value);
1694 NotifyPropertyChanged();
1699 /// The EnableMarkup property.
1701 /// <since_tizen> 3 </since_tizen>
1702 public bool EnableMarkup
1706 return (bool)GetValue(EnableMarkupProperty);
1710 SetValue(EnableMarkupProperty, value);
1711 NotifyPropertyChanged();
1716 /// The InputFontFamily property.
1718 /// <since_tizen> 3 </since_tizen>
1719 public string InputFontFamily
1723 return (string)GetValue(InputFontFamilyProperty);
1727 SetValue(InputFontFamilyProperty, value);
1728 NotifyPropertyChanged();
1733 /// The InputFontStyle property.
1735 /// <since_tizen> 3 </since_tizen>
1736 public PropertyMap InputFontStyle
1740 return (PropertyMap)GetValue(InputFontStyleProperty);
1744 SetValue(InputFontStyleProperty, value);
1745 NotifyPropertyChanged();
1750 /// The InputPointSize property.
1752 /// <since_tizen> 3 </since_tizen>
1753 public float InputPointSize
1757 return (float)GetValue(InputPointSizeProperty);
1761 SetValue(InputPointSizeProperty, value);
1762 NotifyPropertyChanged();
1767 /// The Underline property.
1769 /// <since_tizen> 3 </since_tizen>
1770 public PropertyMap Underline
1774 return (PropertyMap)GetValue(UnderlineProperty);
1778 SetValue(UnderlineProperty, value);
1779 NotifyPropertyChanged();
1784 /// The InputUnderline property.
1786 /// <since_tizen> 3 </since_tizen>
1787 public string InputUnderline
1791 return (string)GetValue(InputUnderlineProperty);
1795 SetValue(InputUnderlineProperty, value);
1796 NotifyPropertyChanged();
1801 /// The Shadow property.
1803 /// <since_tizen> 3 </since_tizen>
1804 public PropertyMap Shadow
1808 return (PropertyMap)GetValue(ShadowProperty);
1812 SetValue(ShadowProperty, value);
1813 NotifyPropertyChanged();
1818 /// The InputShadow property.
1820 /// <since_tizen> 3 </since_tizen>
1821 public string InputShadow
1825 return (string)GetValue(InputShadowProperty);
1829 SetValue(InputShadowProperty, value);
1830 NotifyPropertyChanged();
1835 /// The Emboss property.
1837 /// <since_tizen> 3 </since_tizen>
1838 public string Emboss
1842 return (string)GetValue(EmbossProperty);
1846 SetValue(EmbossProperty, value);
1847 NotifyPropertyChanged();
1852 /// The InputEmboss property.
1854 /// <since_tizen> 3 </since_tizen>
1855 public string InputEmboss
1859 return (string)GetValue(InputEmbossProperty);
1863 SetValue(InputEmbossProperty, value);
1864 NotifyPropertyChanged();
1869 /// The Outline property.
1871 /// <since_tizen> 3 </since_tizen>
1872 public PropertyMap Outline
1876 return (PropertyMap)GetValue(OutlineProperty);
1880 SetValue(OutlineProperty, value);
1881 NotifyPropertyChanged();
1886 /// The InputOutline property.
1888 /// <since_tizen> 3 </since_tizen>
1889 public string InputOutline
1893 return (string)GetValue(InputOutlineProperty);
1897 SetValue(InputOutlineProperty, value);
1898 NotifyPropertyChanged();
1903 /// The HiddenInputSettings property.
1905 /// <since_tizen> 3 </since_tizen>
1906 public Tizen.NUI.PropertyMap HiddenInputSettings
1910 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
1914 SetValue(HiddenInputSettingsProperty, value);
1915 NotifyPropertyChanged();
1920 /// The PixelSize property.
1922 /// <since_tizen> 3 </since_tizen>
1923 public float PixelSize
1927 return (float)GetValue(PixelSizeProperty);
1931 SetValue(PixelSizeProperty, value);
1932 NotifyPropertyChanged();
1937 /// The Enable selection property.
1939 /// <since_tizen> 3 </since_tizen>
1940 public bool EnableSelection
1944 return (bool)GetValue(EnableSelectionProperty);
1948 SetValue(EnableSelectionProperty, value);
1949 NotifyPropertyChanged();
1954 /// The Enable selection property.
1956 /// <since_tizen> 5.5 </since_tizen>
1957 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
1958 [EditorBrowsable(EditorBrowsableState.Never)]
1959 public bool EnableGrabHandle
1963 return (bool)GetValue(EnableGrabHandleProperty);
1967 SetValue(EnableGrabHandleProperty, value);
1968 NotifyPropertyChanged();
1973 /// The Enable selection property.
1975 /// <since_tizen> 5.5 </since_tizen>
1976 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
1977 [EditorBrowsable(EditorBrowsableState.Never)]
1978 public bool EnableGrabHandlePopup
1982 return (bool)GetValue(EnableGrabHandlePopupProperty);
1986 SetValue(EnableGrabHandlePopupProperty, value);
1987 NotifyPropertyChanged();
1992 /// The Placeholder property.
1993 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
1996 /// The following example demonstrates how to set the Placeholder property.
1998 /// PropertyMap propertyMap = new PropertyMap();
1999 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2000 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2001 /// propertyMap.Add("color", new PropertyValue(Color.Red));
2002 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2003 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2005 /// PropertyMap fontStyleMap = new PropertyMap();
2006 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2007 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2008 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2009 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2011 /// TextField field = new TextField();
2012 /// field.Placeholder = propertyMap;
2015 /// <since_tizen> 3 </since_tizen>
2016 public Tizen.NUI.PropertyMap Placeholder
2020 return (PropertyMap)GetValue(PlaceholderProperty);
2024 SetValue(PlaceholderProperty, value);
2025 NotifyPropertyChanged();
2030 /// The Ellipsis property.<br />
2031 /// Enable or disable the ellipsis.<br />
2032 /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2034 /// <since_tizen> 4 </since_tizen>
2035 public bool Ellipsis
2039 return (bool)GetValue(EllipsisProperty);
2043 SetValue(EllipsisProperty, value);
2044 NotifyPropertyChanged();
2049 /// Enables selection of the text using the Shift key.
2051 /// <since_tizen> 5 </since_tizen>
2052 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2053 [EditorBrowsable(EditorBrowsableState.Never)]
2054 public bool EnableShiftSelection
2058 return (bool)GetValue(EnableShiftSelectionProperty);
2062 SetValue(EnableShiftSelectionProperty, value);
2063 NotifyPropertyChanged();
2068 /// The text alignment to match the direction of the system language.
2070 /// <since_tizen> 6 </since_tizen>
2071 public bool MatchSystemLanguageDirection
2075 return (bool)GetValue(MatchSystemLanguageDirectionProperty);
2079 SetValue(MatchSystemLanguageDirectionProperty, value);
2080 NotifyPropertyChanged();
2084 internal override bool IsCreateByXaml
2088 return base.IsCreateByXaml;
2092 base.IsCreateByXaml = value;
2096 this.TextChanged += (obj, e) =>
2098 this.Text = this.Text;
2105 /// Get the InputMethodContext instance.
2107 /// <returns>The InputMethodContext instance.</returns>
2108 /// <since_tizen> 5 </since_tizen>
2109 public InputMethodContext GetInputMethodContext()
2111 if (inputMethodCotext == null)
2113 /*Avoid raising InputMethodContext reference count.*/
2114 inputMethodCotext = new InputMethodContext(Interop.TextField.TextField_GetInputMethodContext(swigCPtr), true);
2115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2117 return inputMethodCotext;
2121 /// Select the whole text.
2123 /// <since_tizen> 5.5 </since_tizen>
2124 /// This will be released at Tizen.NET API Level 5.5, so currently this would be used as inhouse API.
2125 [EditorBrowsable(EditorBrowsableState.Never)]
2126 public void SelectWholeText()
2128 Interop.TextField.TextField_SelectWholeText(swigCPtr);
2129 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2132 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
2134 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
2137 internal TextFieldSignal TextChangedSignal()
2139 TextFieldSignal ret = new TextFieldSignal(Interop.TextField.TextField_TextChangedSignal(swigCPtr), false);
2140 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2144 internal TextFieldSignal MaxLengthReachedSignal()
2146 TextFieldSignal ret = new TextFieldSignal(Interop.TextField.TextField_MaxLengthReachedSignal(swigCPtr), false);
2147 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2151 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
2153 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);
2154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2161 /// <since_tizen> 3 </since_tizen>
2162 protected override void Dispose(DisposeTypes type)
2166 DisposeQueue.Instance.Add(this);
2170 if (type == DisposeTypes.Explicit)
2173 //Release your own managed resources here.
2174 //You should release all of your own disposable objects here.
2177 //Release your own unmanaged resources here.
2178 //You should not access any managed member here except static instance.
2179 //because the execution order of Finalizes is non-deterministic.
2182 if (_textFieldMaxLengthReachedCallbackDelegate != null)
2184 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
2187 if (_textFieldTextChangedCallbackDelegate != null)
2189 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
2193 if (swigCPtr.Handle != global::System.IntPtr.Zero)
2197 swigCMemOwn = false;
2198 // In order to speed up IME hide, temporarily add
2199 GetInputMethodContext()?.DestroyContext();
2200 Interop.TextField.delete_TextField(swigCPtr);
2202 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2208 private void OnTextChanged(IntPtr textField)
2210 TextChangedEventArgs e = new TextChangedEventArgs();
2212 // Populate all members of "e" (TextChangedEventArgs) with real data
2213 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
2215 if (_textFieldTextChangedEventHandler != null)
2217 //here we send all data to user event handlers
2218 _textFieldTextChangedEventHandler(this, e);
2222 private void OnMaxLengthReached(IntPtr textField)
2224 MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
2226 // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
2227 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
2229 if (_textFieldMaxLengthReachedEventHandler != null)
2231 //here we send all data to user event handlers
2232 _textFieldMaxLengthReachedEventHandler(this, e);
2236 private string SetTranslatable(string textFieldSid)
2238 string translatableText = null;
2239 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
2240 if (translatableText != null)
2242 if (systemlangTextFlag == false)
2244 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
2245 systemlangTextFlag = true;
2247 return translatableText;
2251 translatableText = "";
2252 return translatableText;
2256 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
2258 if (textFieldTextSid != null)
2260 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
2262 if (textFieldPlaceHolderTextSid != null)
2264 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
2269 /// The TextChanged event arguments.
2271 /// <since_tizen> 3 </since_tizen>
2272 public class TextChangedEventArgs : EventArgs
2274 private TextField _textField;
2279 /// <since_tizen> 3 </since_tizen>
2280 public TextField TextField
2294 /// The MaxLengthReached event arguments.
2296 /// <since_tizen> 3 </since_tizen>
2297 public class MaxLengthReachedEventArgs : EventArgs
2299 private TextField _textField;
2304 /// <since_tizen> 3 </since_tizen>
2305 public TextField TextField
2318 internal new class Property
2320 internal static readonly int RENDERING_BACKEND = Interop.TextField.TextField_Property_RENDERING_BACKEND_get();
2321 internal static readonly int TEXT = Interop.TextField.TextField_Property_TEXT_get();
2322 internal static readonly int PLACEHOLDER_TEXT = Interop.TextField.TextField_Property_PLACEHOLDER_TEXT_get();
2323 internal static readonly int PLACEHOLDER_TEXT_FOCUSED = Interop.TextField.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
2324 internal static readonly int FONT_FAMILY = Interop.TextField.TextField_Property_FONT_FAMILY_get();
2325 internal static readonly int FONT_STYLE = Interop.TextField.TextField_Property_FONT_STYLE_get();
2326 internal static readonly int POINT_SIZE = Interop.TextField.TextField_Property_POINT_SIZE_get();
2327 internal static readonly int MAX_LENGTH = Interop.TextField.TextField_Property_MAX_LENGTH_get();
2328 internal static readonly int EXCEED_POLICY = Interop.TextField.TextField_Property_EXCEED_POLICY_get();
2329 internal static readonly int HORIZONTAL_ALIGNMENT = Interop.TextField.TextField_Property_HORIZONTAL_ALIGNMENT_get();
2330 internal static readonly int VERTICAL_ALIGNMENT = Interop.TextField.TextField_Property_VERTICAL_ALIGNMENT_get();
2331 internal static readonly int TEXT_COLOR = Interop.TextField.TextField_Property_TEXT_COLOR_get();
2332 internal static readonly int PLACEHOLDER_TEXT_COLOR = Interop.TextField.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
2333 internal static readonly int PRIMARY_CURSOR_COLOR = Interop.TextField.TextField_Property_PRIMARY_CURSOR_COLOR_get();
2334 internal static readonly int SECONDARY_CURSOR_COLOR = Interop.TextField.TextField_Property_SECONDARY_CURSOR_COLOR_get();
2335 internal static readonly int ENABLE_CURSOR_BLINK = Interop.TextField.TextField_Property_ENABLE_CURSOR_BLINK_get();
2336 internal static readonly int CURSOR_BLINK_INTERVAL = Interop.TextField.TextField_Property_CURSOR_BLINK_INTERVAL_get();
2337 internal static readonly int CURSOR_BLINK_DURATION = Interop.TextField.TextField_Property_CURSOR_BLINK_DURATION_get();
2338 internal static readonly int CURSOR_WIDTH = Interop.TextField.TextField_Property_CURSOR_WIDTH_get();
2339 internal static readonly int GRAB_HANDLE_IMAGE = Interop.TextField.TextField_Property_GRAB_HANDLE_IMAGE_get();
2340 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = Interop.TextField.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
2341 internal static readonly int SCROLL_THRESHOLD = Interop.TextField.TextField_Property_SCROLL_THRESHOLD_get();
2342 internal static readonly int SCROLL_SPEED = Interop.TextField.TextField_Property_SCROLL_SPEED_get();
2343 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = Interop.TextField.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
2344 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = Interop.TextField.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
2345 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = Interop.TextField.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
2346 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = Interop.TextField.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
2347 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = Interop.TextField.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
2348 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = Interop.TextField.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
2349 internal static readonly int SELECTION_HIGHLIGHT_COLOR = Interop.TextField.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
2350 internal static readonly int DECORATION_BOUNDING_BOX = Interop.TextField.TextField_Property_DECORATION_BOUNDING_BOX_get();
2351 internal static readonly int INPUT_METHOD_SETTINGS = Interop.TextField.TextField_Property_INPUT_METHOD_SETTINGS_get();
2352 internal static readonly int INPUT_COLOR = Interop.TextField.TextField_Property_INPUT_COLOR_get();
2353 internal static readonly int ENABLE_MARKUP = Interop.TextField.TextField_Property_ENABLE_MARKUP_get();
2354 internal static readonly int INPUT_FONT_FAMILY = Interop.TextField.TextField_Property_INPUT_FONT_FAMILY_get();
2355 internal static readonly int INPUT_FONT_STYLE = Interop.TextField.TextField_Property_INPUT_FONT_STYLE_get();
2356 internal static readonly int INPUT_POINT_SIZE = Interop.TextField.TextField_Property_INPUT_POINT_SIZE_get();
2357 internal static readonly int UNDERLINE = Interop.TextField.TextField_Property_UNDERLINE_get();
2358 internal static readonly int INPUT_UNDERLINE = Interop.TextField.TextField_Property_INPUT_UNDERLINE_get();
2359 internal static readonly int SHADOW = Interop.TextField.TextField_Property_SHADOW_get();
2360 internal static readonly int INPUT_SHADOW = Interop.TextField.TextField_Property_INPUT_SHADOW_get();
2361 internal static readonly int EMBOSS = Interop.TextField.TextField_Property_EMBOSS_get();
2362 internal static readonly int INPUT_EMBOSS = Interop.TextField.TextField_Property_INPUT_EMBOSS_get();
2363 internal static readonly int OUTLINE = Interop.TextField.TextField_Property_OUTLINE_get();
2364 internal static readonly int INPUT_OUTLINE = Interop.TextField.TextField_Property_INPUT_OUTLINE_get();
2365 internal static readonly int HIDDEN_INPUT_SETTINGS = Interop.TextField.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
2366 internal static readonly int PIXEL_SIZE = Interop.TextField.TextField_Property_PIXEL_SIZE_get();
2367 internal static readonly int ENABLE_SELECTION = Interop.TextField.TextField_Property_ENABLE_SELECTION_get();
2368 internal static readonly int PLACEHOLDER = Interop.TextField.TextField_Property_PLACEHOLDER_get();
2369 internal static readonly int ELLIPSIS = Interop.TextField.TextField_Property_ELLIPSIS_get();
2370 internal static readonly int ENABLE_SHIFT_SELECTION = Interop.TextField.TextField_Property_ENABLE_SHIFT_SELECTION_get();
2371 internal static readonly int MATCH_SYSTEM_LANGUAGE_DIRECTION = Interop.TextField.TextField_Property_MATCH_SYSTEM_LANGUAGE_DIRECTION_get();
2372 internal static readonly int ENABLE_GRAB_HANDLE = Interop.TextField.TextField_Property_ENABLE_GRAB_HANDLE_get();
2373 internal static readonly int ENABLE_GRAB_HANDLE_POPUP = Interop.TextField.TextField_Property_ENABLE_GRAB_HANDLE_POPUP_get();
2376 internal class InputStyle
2382 FontFamily = 0x0002,