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();
976 /// Creates the TextField with setting the status of shown or hidden.
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)
983 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
987 internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn, bool shown = true) : base(Interop.TextField.TextField_SWIGUpcast(cPtr), cMemoryOwn)
989 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
997 internal TextField(TextField handle, bool shown = true) : this(Interop.TextField.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
999 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1007 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1008 private delegate void TextChangedCallbackDelegate(IntPtr textField);
1010 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1011 private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1014 /// The TextChanged event.
1016 /// <since_tizen> 3 </since_tizen>
1017 public event EventHandler<TextChangedEventArgs> TextChanged
1021 if (_textFieldTextChangedEventHandler == null)
1023 _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1024 TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1026 _textFieldTextChangedEventHandler += value;
1030 _textFieldTextChangedEventHandler -= value;
1031 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1033 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1039 /// The MaxLengthReached event.
1041 /// <since_tizen> 3 </since_tizen>
1042 public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1046 if (_textFieldMaxLengthReachedEventHandler == null)
1048 _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1049 MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1051 _textFieldMaxLengthReachedEventHandler += value;
1055 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1057 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1059 _textFieldMaxLengthReachedEventHandler -= value;
1063 internal enum ExceedPolicyType
1065 ExceedPolicyOriginal,
1070 /// The TranslatableText property.<br />
1071 /// The text can set the SID value.<br />
1073 /// <exception cref='ArgumentNullException'>
1074 /// ResourceManager about multilingual is null.
1076 /// <since_tizen> 4 </since_tizen>
1077 public string TranslatableText
1081 return textFieldTextSid;
1085 if (NUIApplication.MultilingualResourceManager == null)
1087 throw new ArgumentNullException("ResourceManager about multilingual is null");
1089 textFieldTextSid = value;
1090 Text = SetTranslatable(textFieldTextSid);
1091 NotifyPropertyChanged();
1096 /// The TranslatablePlaceholderText property.<br />
1097 /// The text can set the SID value.<br />
1099 /// <exception cref='ArgumentNullException'>
1100 /// ResourceManager about multilingual is null.
1102 /// <since_tizen> 4 </since_tizen>
1103 public string TranslatablePlaceholderText
1107 return textFieldPlaceHolderTextSid;
1111 if (NUIApplication.MultilingualResourceManager == null)
1113 throw new ArgumentNullException("ResourceManager about multilingual is null");
1115 textFieldPlaceHolderTextSid = value;
1116 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1117 NotifyPropertyChanged();
1122 /// The Text property.
1124 /// <since_tizen> 3 </since_tizen>
1129 return (string)GetValue(TextProperty);
1133 SetValueAndForceSendChangeSignal(TextProperty, value);
1134 NotifyPropertyChanged();
1139 /// The PlaceholderText property.
1141 /// <since_tizen> 3 </since_tizen>
1142 public string PlaceholderText
1146 return (string)GetValue(PlaceholderTextProperty);
1150 SetValue(PlaceholderTextProperty, value);
1151 NotifyPropertyChanged();
1156 /// The PlaceholderTextFocused property.
1158 /// <since_tizen> 3 </since_tizen>
1159 public string PlaceholderTextFocused
1163 return (string)GetValue(PlaceholderTextFocusedProperty);
1167 SetValue(PlaceholderTextFocusedProperty, value);
1168 NotifyPropertyChanged();
1173 /// The FontFamily property.
1175 /// <since_tizen> 3 </since_tizen>
1176 public string FontFamily
1180 return (string)GetValue(FontFamilyProperty);
1184 SetValue(FontFamilyProperty, value);
1185 NotifyPropertyChanged();
1190 /// The FontStyle property.
1192 /// <since_tizen> 3 </since_tizen>
1193 public PropertyMap FontStyle
1197 return (PropertyMap)GetValue(FontStyleProperty);
1201 SetValue(FontStyleProperty, value);
1202 NotifyPropertyChanged();
1207 /// The PointSize property.
1209 /// <since_tizen> 3 </since_tizen>
1210 public float PointSize
1214 return (float)GetValue(PointSizeProperty);
1218 SetValue(PointSizeProperty, value);
1219 NotifyPropertyChanged();
1224 /// The MaxLength property.
1226 /// <since_tizen> 3 </since_tizen>
1227 public int MaxLength
1231 return (int)GetValue(MaxLengthProperty);
1235 SetValue(MaxLengthProperty, value);
1236 NotifyPropertyChanged();
1241 /// The ExceedPolicy property.
1243 /// <since_tizen> 3 </since_tizen>
1244 public int ExceedPolicy
1248 return (int)GetValue(ExceedPolicyProperty);
1252 SetValue(ExceedPolicyProperty, value);
1253 NotifyPropertyChanged();
1258 /// The HorizontalAlignment property.
1260 /// <since_tizen> 3 </since_tizen>
1261 public HorizontalAlignment HorizontalAlignment
1265 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1269 SetValue(HorizontalAlignmentProperty, value);
1270 NotifyPropertyChanged();
1275 /// The VerticalAlignment property.
1277 /// <since_tizen> 3 </since_tizen>
1278 public VerticalAlignment VerticalAlignment
1282 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1286 SetValue(VerticalAlignmentProperty, value);
1287 NotifyPropertyChanged();
1288 NotifyPropertyChanged();
1293 /// The TextColor property.
1295 /// <since_tizen> 3 </since_tizen>
1296 public Color TextColor
1300 return (Color)GetValue(TextColorProperty);
1304 SetValue(TextColorProperty, value);
1305 NotifyPropertyChanged();
1310 /// The PlaceholderTextColor property.
1312 /// <since_tizen> 3 </since_tizen>
1313 public Vector4 PlaceholderTextColor
1317 return (Vector4)GetValue(PlaceholderTextColorProperty);
1321 SetValue(PlaceholderTextColorProperty, value);
1322 NotifyPropertyChanged();
1327 /// The ShadowOffset property.
1329 /// <since_tizen> 3 </since_tizen>
1331 /// Deprecated.(API Level 6) Use Shadow instead.
1333 [Obsolete("Please do not use this ShadowOffset(Deprecated). Please use Shadow instead.")]
1334 public Vector2 ShadowOffset
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;
1346 PropertyMap temp = new PropertyMap();
1347 temp.Insert("offset", new PropertyValue(value));
1348 SetValue(ShadowProperty, temp);
1349 NotifyPropertyChanged();
1354 /// The ShadowColor property.
1356 /// <since_tizen> 3 </since_tizen>
1358 /// Deprecated.(API Level 6) Use Shadow instead.
1360 [Obsolete("Please do not use this ShadowColor(Deprecated). Please use Shadow instead.")]
1361 public Vector4 ShadowColor
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);
1373 PropertyMap temp = new PropertyMap();
1374 temp.Insert("color", new PropertyValue(value));
1375 SetValue(ShadowProperty, temp);
1376 NotifyPropertyChanged();
1381 /// The PrimaryCursorColor property.
1383 /// <since_tizen> 3 </since_tizen>
1384 public Vector4 PrimaryCursorColor
1388 return (Vector4)GetValue(PrimaryCursorColorProperty);
1392 SetValue(PrimaryCursorColorProperty, value);
1393 NotifyPropertyChanged();
1398 /// The SecondaryCursorColor property.
1400 /// <since_tizen> 3 </since_tizen>
1401 public Vector4 SecondaryCursorColor
1405 return (Vector4)GetValue(SecondaryCursorColorProperty);
1409 SetValue(SecondaryCursorColorProperty, value);
1410 NotifyPropertyChanged();
1415 /// The EnableCursorBlink property.
1417 /// <since_tizen> 3 </since_tizen>
1418 public bool EnableCursorBlink
1422 return (bool)GetValue(EnableCursorBlinkProperty);
1426 SetValue(EnableCursorBlinkProperty, value);
1427 NotifyPropertyChanged();
1432 /// The CursorBlinkInterval property.
1434 /// <since_tizen> 3 </since_tizen>
1435 public float CursorBlinkInterval
1439 return (float)GetValue(CursorBlinkIntervalProperty);
1443 SetValue(CursorBlinkIntervalProperty, value);
1444 NotifyPropertyChanged();
1449 /// The CursorBlinkDuration property.
1451 /// <since_tizen> 3 </since_tizen>
1452 public float CursorBlinkDuration
1456 return (float)GetValue(CursorBlinkDurationProperty);
1460 SetValue(CursorBlinkDurationProperty, value);
1461 NotifyPropertyChanged();
1466 /// The CursorWidth property.
1468 /// <since_tizen> 3 </since_tizen>
1469 public int CursorWidth
1473 return (int)GetValue(CursorWidthProperty);
1477 SetValue(CursorWidthProperty, value);
1478 NotifyPropertyChanged();
1483 /// The GrabHandleImage property.
1485 /// <since_tizen> 3 </since_tizen>
1486 public string GrabHandleImage
1490 return (string)GetValue(GrabHandleImageProperty);
1494 SetValue(GrabHandleImageProperty, value);
1495 NotifyPropertyChanged();
1500 /// The GrabHandlePressedImage property.
1502 /// <since_tizen> 3 </since_tizen>
1503 public string GrabHandlePressedImage
1507 return (string)GetValue(GrabHandlePressedImageProperty);
1511 SetValue(GrabHandlePressedImageProperty, value);
1512 NotifyPropertyChanged();
1517 /// The ScrollThreshold property.
1519 /// <since_tizen> 3 </since_tizen>
1520 public float ScrollThreshold
1524 return (float)GetValue(ScrollThresholdProperty);
1528 SetValue(ScrollThresholdProperty, value);
1529 NotifyPropertyChanged();
1534 /// The ScrollSpeed property.
1536 /// <since_tizen> 3 </since_tizen>
1537 public float ScrollSpeed
1541 return (float)GetValue(ScrollSpeedProperty);
1545 SetValue(ScrollSpeedProperty, value);
1546 NotifyPropertyChanged();
1551 /// The SelectionHandleImageLeft property.
1553 /// <since_tizen> 3 </since_tizen>
1554 public PropertyMap SelectionHandleImageLeft
1558 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1562 SetValue(SelectionHandleImageLeftProperty, value);
1563 NotifyPropertyChanged();
1568 /// The SelectionHandleImageRight property.
1570 /// <since_tizen> 3 </since_tizen>
1571 public PropertyMap SelectionHandleImageRight
1575 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1579 SetValue(SelectionHandleImageRightProperty, value);
1580 NotifyPropertyChanged();
1585 /// The SelectionHandlePressedImageLeft property.
1587 /// <since_tizen> 3 </since_tizen>
1588 public PropertyMap SelectionHandlePressedImageLeft
1592 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1596 SetValue(SelectionHandlePressedImageLeftProperty, value);
1597 NotifyPropertyChanged();
1602 /// The SelectionHandlePressedImageRight property.
1604 /// <since_tizen> 3 </since_tizen>
1605 public PropertyMap SelectionHandlePressedImageRight
1609 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1613 SetValue(SelectionHandlePressedImageRightProperty, value);
1614 NotifyPropertyChanged();
1619 /// The SelectionHandleMarkerImageLeft property.
1621 /// <since_tizen> 3 </since_tizen>
1622 public PropertyMap SelectionHandleMarkerImageLeft
1626 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1630 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1631 NotifyPropertyChanged();
1636 /// The SelectionHandleMarkerImageRight property.
1638 /// <since_tizen> 3 </since_tizen>
1639 public PropertyMap SelectionHandleMarkerImageRight
1643 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1647 SetValue(SelectionHandleMarkerImageRightProperty, value);
1648 NotifyPropertyChanged();
1653 /// The SelectionHighlightColor property.
1655 /// <since_tizen> 3 </since_tizen>
1656 public Vector4 SelectionHighlightColor
1660 return (Vector4)GetValue(SelectionHighlightColorProperty);
1664 SetValue(SelectionHighlightColorProperty, value);
1665 NotifyPropertyChanged();
1670 /// The DecorationBoundingBox property.
1672 /// <since_tizen> 3 </since_tizen>
1673 public Rectangle DecorationBoundingBox
1677 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1681 SetValue(DecorationBoundingBoxProperty, value);
1682 NotifyPropertyChanged();
1687 /// The InputMethodSettings property.
1689 /// <since_tizen> 3 </since_tizen>
1690 public PropertyMap InputMethodSettings
1694 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1698 SetValue(InputMethodSettingsProperty, value);
1699 NotifyPropertyChanged();
1704 /// The InputColor property.
1706 /// <since_tizen> 3 </since_tizen>
1707 public Vector4 InputColor
1711 return (Vector4)GetValue(InputColorProperty);
1715 SetValue(InputColorProperty, value);
1716 NotifyPropertyChanged();
1721 /// The EnableMarkup property.
1723 /// <since_tizen> 3 </since_tizen>
1724 public bool EnableMarkup
1728 return (bool)GetValue(EnableMarkupProperty);
1732 SetValue(EnableMarkupProperty, value);
1733 NotifyPropertyChanged();
1738 /// The InputFontFamily property.
1740 /// <since_tizen> 3 </since_tizen>
1741 public string InputFontFamily
1745 return (string)GetValue(InputFontFamilyProperty);
1749 SetValue(InputFontFamilyProperty, value);
1750 NotifyPropertyChanged();
1755 /// The InputFontStyle property.
1757 /// <since_tizen> 3 </since_tizen>
1758 public PropertyMap InputFontStyle
1762 return (PropertyMap)GetValue(InputFontStyleProperty);
1766 SetValue(InputFontStyleProperty, value);
1767 NotifyPropertyChanged();
1772 /// The InputPointSize property.
1774 /// <since_tizen> 3 </since_tizen>
1775 public float InputPointSize
1779 return (float)GetValue(InputPointSizeProperty);
1783 SetValue(InputPointSizeProperty, value);
1784 NotifyPropertyChanged();
1789 /// The Underline property.
1791 /// <since_tizen> 3 </since_tizen>
1792 public PropertyMap Underline
1796 return (PropertyMap)GetValue(UnderlineProperty);
1800 SetValue(UnderlineProperty, value);
1801 NotifyPropertyChanged();
1806 /// The InputUnderline property.
1808 /// <since_tizen> 3 </since_tizen>
1809 public string InputUnderline
1813 return (string)GetValue(InputUnderlineProperty);
1817 SetValue(InputUnderlineProperty, value);
1818 NotifyPropertyChanged();
1823 /// The Shadow property.
1825 /// <since_tizen> 3 </since_tizen>
1826 public PropertyMap Shadow
1830 return (PropertyMap)GetValue(ShadowProperty);
1834 SetValue(ShadowProperty, value);
1835 NotifyPropertyChanged();
1840 /// The InputShadow property.
1842 /// <since_tizen> 3 </since_tizen>
1843 public string InputShadow
1847 return (string)GetValue(InputShadowProperty);
1851 SetValue(InputShadowProperty, value);
1852 NotifyPropertyChanged();
1857 /// The Emboss property.
1859 /// <since_tizen> 3 </since_tizen>
1860 public string Emboss
1864 return (string)GetValue(EmbossProperty);
1868 SetValue(EmbossProperty, value);
1869 NotifyPropertyChanged();
1874 /// The InputEmboss property.
1876 /// <since_tizen> 3 </since_tizen>
1877 public string InputEmboss
1881 return (string)GetValue(InputEmbossProperty);
1885 SetValue(InputEmbossProperty, value);
1886 NotifyPropertyChanged();
1891 /// The Outline property.
1893 /// <since_tizen> 3 </since_tizen>
1894 public PropertyMap Outline
1898 return (PropertyMap)GetValue(OutlineProperty);
1902 SetValue(OutlineProperty, value);
1903 NotifyPropertyChanged();
1908 /// The InputOutline property.
1910 /// <since_tizen> 3 </since_tizen>
1911 public string InputOutline
1915 return (string)GetValue(InputOutlineProperty);
1919 SetValue(InputOutlineProperty, value);
1920 NotifyPropertyChanged();
1925 /// The HiddenInputSettings property.
1927 /// <since_tizen> 3 </since_tizen>
1928 public Tizen.NUI.PropertyMap HiddenInputSettings
1932 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
1936 SetValue(HiddenInputSettingsProperty, value);
1937 NotifyPropertyChanged();
1942 /// The PixelSize property.
1944 /// <since_tizen> 3 </since_tizen>
1945 public float PixelSize
1949 return (float)GetValue(PixelSizeProperty);
1953 SetValue(PixelSizeProperty, value);
1954 NotifyPropertyChanged();
1959 /// The Enable selection property.
1961 /// <since_tizen> 3 </since_tizen>
1962 public bool EnableSelection
1966 return (bool)GetValue(EnableSelectionProperty);
1970 SetValue(EnableSelectionProperty, value);
1971 NotifyPropertyChanged();
1976 /// The Enable selection property.
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
1985 return (bool)GetValue(EnableGrabHandleProperty);
1989 SetValue(EnableGrabHandleProperty, value);
1990 NotifyPropertyChanged();
1995 /// The Enable selection property.
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
2004 return (bool)GetValue(EnableGrabHandlePopupProperty);
2008 SetValue(EnableGrabHandlePopupProperty, value);
2009 NotifyPropertyChanged();
2014 /// The Placeholder property.
2015 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2018 /// The following example demonstrates how to set the Placeholder property.
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));
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));
2033 /// TextField field = new TextField();
2034 /// field.Placeholder = propertyMap;
2037 /// <since_tizen> 3 </since_tizen>
2038 public Tizen.NUI.PropertyMap Placeholder
2042 return (PropertyMap)GetValue(PlaceholderProperty);
2046 SetValue(PlaceholderProperty, value);
2047 NotifyPropertyChanged();
2052 /// The Ellipsis property.<br />
2053 /// Enable or disable the ellipsis.<br />
2054 /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2056 /// <since_tizen> 4 </since_tizen>
2057 public bool Ellipsis
2061 return (bool)GetValue(EllipsisProperty);
2065 SetValue(EllipsisProperty, value);
2066 NotifyPropertyChanged();
2071 /// Enables selection of the text using the Shift key.
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
2080 return (bool)GetValue(EnableShiftSelectionProperty);
2084 SetValue(EnableShiftSelectionProperty, value);
2085 NotifyPropertyChanged();
2090 /// The text alignment to match the direction of the system language.
2092 /// <since_tizen> 6 </since_tizen>
2093 public bool MatchSystemLanguageDirection
2097 return (bool)GetValue(MatchSystemLanguageDirectionProperty);
2101 SetValue(MatchSystemLanguageDirectionProperty, value);
2102 NotifyPropertyChanged();
2106 /// Only used by the IL of xaml, will never changed to not hidden.
2107 [EditorBrowsable(EditorBrowsableState.Never)]
2108 public override bool IsCreateByXaml
2112 return base.IsCreateByXaml;
2116 base.IsCreateByXaml = value;
2120 this.TextChanged += (obj, e) =>
2122 this.Text = this.Text;
2129 /// Get the InputMethodContext instance.
2131 /// <returns>The InputMethodContext instance.</returns>
2132 /// <since_tizen> 5 </since_tizen>
2133 public InputMethodContext GetInputMethodContext()
2135 if (inputMethodCotext == null)
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();
2141 return inputMethodCotext;
2145 /// Select the whole text.
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()
2152 Interop.TextField.TextField_SelectWholeText(swigCPtr);
2153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2156 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
2158 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
2161 internal TextFieldSignal TextChangedSignal()
2163 TextFieldSignal ret = new TextFieldSignal(Interop.TextField.TextField_TextChangedSignal(swigCPtr), false);
2164 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2168 internal TextFieldSignal MaxLengthReachedSignal()
2170 TextFieldSignal ret = new TextFieldSignal(Interop.TextField.TextField_MaxLengthReachedSignal(swigCPtr), false);
2171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
2175 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
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();
2185 /// <since_tizen> 3 </since_tizen>
2186 protected override void Dispose(DisposeTypes type)
2190 DisposeQueue.Instance.Add(this);
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.
2199 if (_textFieldMaxLengthReachedCallbackDelegate != null)
2201 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
2204 if (_textFieldTextChangedCallbackDelegate != null)
2206 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
2210 if (swigCPtr.Handle != global::System.IntPtr.Zero)
2214 swigCMemOwn = false;
2215 // In order to speed up IME hide, temporarily add
2216 GetInputMethodContext()?.DestroyContext();
2217 Interop.TextField.delete_TextField(swigCPtr);
2219 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
2225 private void OnTextChanged(IntPtr textField)
2227 TextChangedEventArgs e = new TextChangedEventArgs();
2229 // Populate all members of "e" (TextChangedEventArgs) with real data
2230 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
2232 if (_textFieldTextChangedEventHandler != null)
2234 //here we send all data to user event handlers
2235 _textFieldTextChangedEventHandler(this, e);
2239 private void OnMaxLengthReached(IntPtr textField)
2241 MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
2243 // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
2244 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
2246 if (_textFieldMaxLengthReachedEventHandler != null)
2248 //here we send all data to user event handlers
2249 _textFieldMaxLengthReachedEventHandler(this, e);
2253 private string SetTranslatable(string textFieldSid)
2255 string translatableText = null;
2256 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
2257 if (translatableText != null)
2259 if (systemlangTextFlag == false)
2261 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
2262 systemlangTextFlag = true;
2264 return translatableText;
2268 translatableText = "";
2269 return translatableText;
2273 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
2275 if (textFieldTextSid != null)
2277 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
2279 if (textFieldPlaceHolderTextSid != null)
2281 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
2286 /// The TextChanged event arguments.
2288 /// <since_tizen> 3 </since_tizen>
2289 public class TextChangedEventArgs : EventArgs
2291 private TextField _textField;
2296 /// <since_tizen> 3 </since_tizen>
2297 public TextField TextField
2311 /// The MaxLengthReached event arguments.
2313 /// <since_tizen> 3 </since_tizen>
2314 public class MaxLengthReachedEventArgs : EventArgs
2316 private TextField _textField;
2321 /// <since_tizen> 3 </since_tizen>
2322 public TextField TextField
2335 internal new class Property
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();
2393 internal class InputStyle
2399 FontFamily = 0x0002,