2 * Copyright(c) 2018 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("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("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("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("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("FontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("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("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("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("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("TextColor", typeof(Color), typeof(TextField), Color.Transparent, 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("PlaceholderTextColor", typeof(Vector4), typeof(TextField), Vector4.Zero, 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.0 after ACR done. Before ACR, need to be hidden as inhouse API.
259 [EditorBrowsable(EditorBrowsableState.Never)]
260 public static readonly BindableProperty ShadowOffsetProperty = BindableProperty.Create("ShadowOffset", typeof(Vector2), typeof(TextField), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
262 var textField = (TextField)bindable;
263 if (newValue != null)
265 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue));
268 defaultValueCreator:(bindable) =>
270 var textField = (TextField)bindable;
271 Vector2 temp = new Vector2(0.0f, 0.0f);
272 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET).Get(temp);
275 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
276 [EditorBrowsable(EditorBrowsableState.Never)]
277 public static readonly BindableProperty ShadowColorProperty = BindableProperty.Create("ShadowColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
279 var textField = (TextField)bindable;
280 if (newValue != null)
282 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
285 defaultValueCreator:(bindable) =>
287 var textField = (TextField)bindable;
288 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
289 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR).Get(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("PrimaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, 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("SecondaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, 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("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("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("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("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("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("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("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("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("SelectionHandleImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("SelectionHandleImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("SelectionHandlePressedImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("SelectionHandlePressedImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("SelectionHandleMarkerImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("SelectionHandleMarkerImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("SelectionHighlightColor", typeof(Vector4), typeof(TextField), Vector4.Zero, 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("DecorationBoundingBox", typeof(Rectangle), typeof(TextField), new Rectangle(0,0,0,0), 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("InputMethodSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("InputColor", typeof(Vector4), typeof(TextField), Vector4.Zero, 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("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("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("InputFontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("Underline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("Shadow", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("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("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("Outline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("HiddenInputSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("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("Placeholder", typeof(PropertyMap), typeof(TextField), new PropertyMap(), 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("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("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);
941 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
942 private string textFieldTextSid = null;
943 private string textFieldPlaceHolderTextSid = null;
944 private bool systemlangTextFlag = false;
945 private InputMethodContext inputMethodCotext = null;
947 internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
949 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
952 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
954 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
960 /// <since_tizen> 3 </since_tizen>
961 protected override void Dispose(DisposeTypes type)
965 DisposeQueue.Instance.Add(this);
969 if (type == DisposeTypes.Explicit)
972 //Release your own managed resources here.
973 //You should release all of your own disposable objects here.
976 //Release your own unmanaged resources here.
977 //You should not access any managed member here except static instance.
978 //because the execution order of Finalizes is non-deterministic.
981 if (_textFieldMaxLengthReachedCallbackDelegate != null)
983 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
986 if (_textFieldTextChangedCallbackDelegate != null)
988 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
992 if (swigCPtr.Handle != global::System.IntPtr.Zero)
997 // In order to speed up IME hide, temporarily add
998 GetInputMethodContext()?.DestroyContext();
999 NDalicPINVOKE.delete_TextField(swigCPtr);
1001 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1008 /// The TextChanged event arguments.
1010 /// <since_tizen> 3 </since_tizen>
1011 public class TextChangedEventArgs : EventArgs
1013 private TextField _textField;
1018 /// <since_tizen> 3 </since_tizen>
1019 public TextField TextField
1033 /// The MaxLengthReached event arguments.
1035 /// <since_tizen> 3 </since_tizen>
1036 public class MaxLengthReachedEventArgs : EventArgs
1038 private TextField _textField;
1043 /// <since_tizen> 3 </since_tizen>
1044 public TextField TextField
1058 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1059 private delegate void TextChangedCallbackDelegate(IntPtr textField);
1060 private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
1061 private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
1063 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1064 private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1065 private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
1066 private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
1069 /// The TextChanged event.
1071 /// <since_tizen> 3 </since_tizen>
1072 public event EventHandler<TextChangedEventArgs> TextChanged
1076 if (_textFieldTextChangedEventHandler == null)
1078 _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1079 TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1081 _textFieldTextChangedEventHandler += value;
1085 _textFieldTextChangedEventHandler -= value;
1086 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1088 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1093 private void OnTextChanged(IntPtr textField)
1095 TextChangedEventArgs e = new TextChangedEventArgs();
1097 // Populate all members of "e" (TextChangedEventArgs) with real data
1098 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1100 if (_textFieldTextChangedEventHandler != null)
1102 //here we send all data to user event handlers
1103 _textFieldTextChangedEventHandler(this, e);
1109 /// The MaxLengthReached event.
1111 /// <since_tizen> 3 </since_tizen>
1112 public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1116 if (_textFieldMaxLengthReachedEventHandler == null)
1118 _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1119 MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1121 _textFieldMaxLengthReachedEventHandler += value;
1125 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1127 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1129 _textFieldMaxLengthReachedEventHandler -= value;
1133 private void OnMaxLengthReached(IntPtr textField)
1135 MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
1137 // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
1138 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1140 if (_textFieldMaxLengthReachedEventHandler != null)
1142 //here we send all data to user event handlers
1143 _textFieldMaxLengthReachedEventHandler(this, e);
1148 internal new class Property
1150 internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
1151 internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
1152 internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
1153 internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
1154 internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
1155 internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
1156 internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
1157 internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
1158 internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
1159 internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
1160 internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
1161 internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
1162 internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
1163 internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
1164 internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
1165 internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
1166 internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
1167 internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
1168 internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
1169 internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
1170 internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
1171 internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
1172 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1173 internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
1174 internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
1175 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1176 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1177 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1178 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1179 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1180 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1181 internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
1182 internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
1183 internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
1184 internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
1185 internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
1186 internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
1187 internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
1188 internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
1189 internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
1190 internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
1191 internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
1192 internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
1193 internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
1194 internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
1195 internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
1196 internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
1197 internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
1198 internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
1199 internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
1200 internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
1201 internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
1202 internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
1205 internal class InputStyle
1211 FontFamily = 0x0002,
1223 /// Creates the TextField control.
1225 /// <since_tizen> 3 </since_tizen>
1226 public TextField() : this(NDalicPINVOKE.TextField_New(), true)
1228 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1231 internal override bool IsCreateByXaml
1235 return base.IsCreateByXaml;
1239 base.IsCreateByXaml = value;
1243 this.TextChanged += (obj, e) =>
1245 this.Text = this.Text;
1251 internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
1253 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1257 /// Get the InputMethodContext instance.
1259 /// <returns>The InputMethodContext instance.</returns>
1260 /// <since_tizen> 5 </since_tizen>
1261 public InputMethodContext GetInputMethodContext()
1263 if (inputMethodCotext == null)
1265 /*Avoid raising InputMethodContext reference count.*/
1266 inputMethodCotext = new InputMethodContext(NDalicPINVOKE.TextField_GetInputMethodContext(swigCPtr), true);
1267 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1269 return inputMethodCotext;
1272 internal TextFieldSignal TextChangedSignal()
1274 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
1275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 internal TextFieldSignal MaxLengthReachedSignal()
1281 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1286 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
1288 SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t ret = new SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t(NDalicPINVOKE.TextField_InputStyleChangedSignal(swigCPtr), false);
1289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1293 internal enum ExceedPolicyType
1295 ExceedPolicyOriginal,
1300 /// The TranslatableText property.<br />
1301 /// The text can set the SID value.<br />
1303 /// <exception cref='ArgumentNullException'>
1304 /// ResourceManager about multilingual is null.
1306 /// <since_tizen> 4 </since_tizen>
1307 public string TranslatableText
1311 return textFieldTextSid;
1315 if (NUIApplication.MultilingualResourceManager == null)
1317 throw new ArgumentNullException("ResourceManager about multilingual is null");
1319 textFieldTextSid = value;
1320 Text = SetTranslatable(textFieldTextSid);
1321 NotifyPropertyChanged();
1325 /// The TranslatablePlaceholderText property.<br />
1326 /// The text can set the SID value.<br />
1328 /// <exception cref='ArgumentNullException'>
1329 /// ResourceManager about multilingual is null.
1331 /// <since_tizen> 4 </since_tizen>
1332 public string TranslatablePlaceholderText
1336 return textFieldPlaceHolderTextSid;
1340 if (NUIApplication.MultilingualResourceManager == null)
1342 throw new ArgumentNullException("ResourceManager about multilingual is null");
1344 textFieldPlaceHolderTextSid = value;
1345 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1346 NotifyPropertyChanged();
1349 private string SetTranslatable(string textFieldSid)
1351 string translatableText = null;
1352 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1353 if (translatableText != null)
1355 if (systemlangTextFlag == false)
1357 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1358 systemlangTextFlag = true;
1360 return translatableText;
1364 translatableText = "";
1365 return translatableText;
1368 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1370 if (textFieldTextSid != null)
1372 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1374 if (textFieldPlaceHolderTextSid != null)
1376 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1380 /// The Text property.
1382 /// <since_tizen> 3 </since_tizen>
1387 return (string)GetValue(TextProperty);
1391 SetValueAndForceSendChangeSignal(TextProperty, value);
1392 NotifyPropertyChanged();
1397 /// The PlaceholderText property.
1399 /// <since_tizen> 3 </since_tizen>
1400 public string PlaceholderText
1404 return (string)GetValue(PlaceholderTextProperty);
1408 SetValue(PlaceholderTextProperty, value);
1409 NotifyPropertyChanged();
1414 /// The PlaceholderTextFocused property.
1416 /// <since_tizen> 3 </since_tizen>
1417 public string PlaceholderTextFocused
1421 return (string)GetValue(PlaceholderTextFocusedProperty);
1425 SetValue(PlaceholderTextFocusedProperty, value);
1426 NotifyPropertyChanged();
1431 /// The FontFamily property.
1433 /// <since_tizen> 3 </since_tizen>
1434 public string FontFamily
1438 return (string)GetValue(FontFamilyProperty);
1442 SetValue(FontFamilyProperty, value);
1443 NotifyPropertyChanged();
1448 /// The FontStyle property.
1450 /// <since_tizen> 3 </since_tizen>
1451 public PropertyMap FontStyle
1455 return (PropertyMap)GetValue(FontStyleProperty);
1459 SetValue(FontStyleProperty, value);
1460 NotifyPropertyChanged();
1465 /// The PointSize property.
1467 /// <since_tizen> 3 </since_tizen>
1468 public float PointSize
1472 return (float)GetValue(PointSizeProperty);
1476 SetValue(PointSizeProperty, value);
1477 NotifyPropertyChanged();
1482 /// The MaxLength property.
1484 /// <since_tizen> 3 </since_tizen>
1485 public int MaxLength
1489 return (int)GetValue(MaxLengthProperty);
1493 SetValue(MaxLengthProperty, value);
1494 NotifyPropertyChanged();
1499 /// The ExceedPolicy property.
1501 /// <since_tizen> 3 </since_tizen>
1502 public int ExceedPolicy
1506 return (int)GetValue(ExceedPolicyProperty);
1510 SetValue(ExceedPolicyProperty, value);
1511 NotifyPropertyChanged();
1516 /// The HorizontalAlignment property.
1518 /// <since_tizen> 3 </since_tizen>
1519 public HorizontalAlignment HorizontalAlignment
1523 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1527 SetValue(HorizontalAlignmentProperty, value);
1528 NotifyPropertyChanged();
1533 /// The VerticalAlignment property.
1535 /// <since_tizen> 3 </since_tizen>
1536 public VerticalAlignment VerticalAlignment
1540 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1544 SetValue(VerticalAlignmentProperty, value);
1545 NotifyPropertyChanged();
1546 NotifyPropertyChanged();
1551 /// The TextColor property.
1553 /// <since_tizen> 3 </since_tizen>
1554 public Color TextColor
1558 return (Color)GetValue(TextColorProperty);
1562 SetValue(TextColorProperty, value);
1563 NotifyPropertyChanged();
1568 /// The PlaceholderTextColor property.
1570 /// <since_tizen> 3 </since_tizen>
1571 public Vector4 PlaceholderTextColor
1575 return (Vector4)GetValue(PlaceholderTextColorProperty);
1579 SetValue(PlaceholderTextColorProperty, value);
1580 NotifyPropertyChanged();
1585 /// The ShadowOffset property.
1587 /// <since_tizen> 3 </since_tizen>
1588 public Vector2 ShadowOffset
1592 return (Vector2)GetValue(ShadowOffsetProperty);
1596 SetValue(ShadowOffsetProperty, value);
1597 NotifyPropertyChanged();
1602 /// The ShadowColor property.
1604 /// <since_tizen> 3 </since_tizen>
1605 public Vector4 ShadowColor
1609 return (Vector4)GetValue(ShadowColorProperty);
1613 SetValue(ShadowColorProperty, value);
1614 NotifyPropertyChanged();
1619 /// The PrimaryCursorColor property.
1621 /// <since_tizen> 3 </since_tizen>
1622 public Vector4 PrimaryCursorColor
1626 return (Vector4)GetValue(PrimaryCursorColorProperty);
1630 SetValue(PrimaryCursorColorProperty, value);
1631 NotifyPropertyChanged();
1636 /// The SecondaryCursorColor property.
1638 /// <since_tizen> 3 </since_tizen>
1639 public Vector4 SecondaryCursorColor
1643 return (Vector4)GetValue(SecondaryCursorColorProperty);
1647 SetValue(SecondaryCursorColorProperty, value);
1648 NotifyPropertyChanged();
1653 /// The EnableCursorBlink property.
1655 /// <since_tizen> 3 </since_tizen>
1656 public bool EnableCursorBlink
1660 return (bool)GetValue(EnableCursorBlinkProperty);
1664 SetValue(EnableCursorBlinkProperty, value);
1665 NotifyPropertyChanged();
1670 /// The CursorBlinkInterval property.
1672 /// <since_tizen> 3 </since_tizen>
1673 public float CursorBlinkInterval
1677 return (float)GetValue(CursorBlinkIntervalProperty);
1681 SetValue(CursorBlinkIntervalProperty, value);
1682 NotifyPropertyChanged();
1687 /// The CursorBlinkDuration property.
1689 /// <since_tizen> 3 </since_tizen>
1690 public float CursorBlinkDuration
1694 return (float)GetValue(CursorBlinkDurationProperty);
1698 SetValue(CursorBlinkDurationProperty, value);
1699 NotifyPropertyChanged();
1704 /// The CursorWidth property.
1706 /// <since_tizen> 3 </since_tizen>
1707 public int CursorWidth
1711 return (int)GetValue(CursorWidthProperty);
1715 SetValue(CursorWidthProperty, value);
1716 NotifyPropertyChanged();
1721 /// The GrabHandleImage property.
1723 /// <since_tizen> 3 </since_tizen>
1724 public string GrabHandleImage
1728 return (string)GetValue(GrabHandleImageProperty);
1732 SetValue(GrabHandleImageProperty, value);
1733 NotifyPropertyChanged();
1738 /// The GrabHandlePressedImage property.
1740 /// <since_tizen> 3 </since_tizen>
1741 public string GrabHandlePressedImage
1745 return (string)GetValue(GrabHandlePressedImageProperty);
1749 SetValue(GrabHandlePressedImageProperty, value);
1750 NotifyPropertyChanged();
1755 /// The ScrollThreshold property.
1757 /// <since_tizen> 3 </since_tizen>
1758 public float ScrollThreshold
1762 return (float)GetValue(ScrollThresholdProperty);
1766 SetValue(ScrollThresholdProperty, value);
1767 NotifyPropertyChanged();
1772 /// The ScrollSpeed property.
1774 /// <since_tizen> 3 </since_tizen>
1775 public float ScrollSpeed
1779 return (float)GetValue(ScrollSpeedProperty);
1783 SetValue(ScrollSpeedProperty, value);
1784 NotifyPropertyChanged();
1789 /// The SelectionHandleImageLeft property.
1791 /// <since_tizen> 3 </since_tizen>
1792 public PropertyMap SelectionHandleImageLeft
1796 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1800 SetValue(SelectionHandleImageLeftProperty, value);
1801 NotifyPropertyChanged();
1806 /// The SelectionHandleImageRight property.
1808 /// <since_tizen> 3 </since_tizen>
1809 public PropertyMap SelectionHandleImageRight
1813 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1817 SetValue(SelectionHandleImageRightProperty, value);
1818 NotifyPropertyChanged();
1823 /// The SelectionHandlePressedImageLeft property.
1825 /// <since_tizen> 3 </since_tizen>
1826 public PropertyMap SelectionHandlePressedImageLeft
1830 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1834 SetValue(SelectionHandlePressedImageLeftProperty, value);
1835 NotifyPropertyChanged();
1840 /// The SelectionHandlePressedImageRight property.
1842 /// <since_tizen> 3 </since_tizen>
1843 public PropertyMap SelectionHandlePressedImageRight
1847 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1851 SetValue(SelectionHandlePressedImageRightProperty, value);
1852 NotifyPropertyChanged();
1857 /// The SelectionHandleMarkerImageLeft property.
1859 /// <since_tizen> 3 </since_tizen>
1860 public PropertyMap SelectionHandleMarkerImageLeft
1864 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1868 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1869 NotifyPropertyChanged();
1874 /// The SelectionHandleMarkerImageRight property.
1876 /// <since_tizen> 3 </since_tizen>
1877 public PropertyMap SelectionHandleMarkerImageRight
1881 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1885 SetValue(SelectionHandleMarkerImageRightProperty, value);
1886 NotifyPropertyChanged();
1891 /// The SelectionHighlightColor property.
1893 /// <since_tizen> 3 </since_tizen>
1894 public Vector4 SelectionHighlightColor
1898 return (Vector4)GetValue(SelectionHighlightColorProperty);
1902 SetValue(SelectionHighlightColorProperty, value);
1903 NotifyPropertyChanged();
1908 /// The DecorationBoundingBox property.
1910 /// <since_tizen> 3 </since_tizen>
1911 public Rectangle DecorationBoundingBox
1915 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1919 SetValue(DecorationBoundingBoxProperty, value);
1920 NotifyPropertyChanged();
1925 /// The InputMethodSettings property.
1927 /// <since_tizen> 3 </since_tizen>
1928 public PropertyMap InputMethodSettings
1932 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1936 SetValue(InputMethodSettingsProperty, value);
1937 NotifyPropertyChanged();
1942 /// The InputColor property.
1944 /// <since_tizen> 3 </since_tizen>
1945 public Vector4 InputColor
1949 return (Vector4)GetValue(InputColorProperty);
1953 SetValue(InputColorProperty, value);
1954 NotifyPropertyChanged();
1959 /// The EnableMarkup property.
1961 /// <since_tizen> 3 </since_tizen>
1962 public bool EnableMarkup
1966 return (bool)GetValue(EnableMarkupProperty);
1970 SetValue(EnableMarkupProperty, value);
1971 NotifyPropertyChanged();
1976 /// The InputFontFamily property.
1978 /// <since_tizen> 3 </since_tizen>
1979 public string InputFontFamily
1983 return (string)GetValue(InputFontFamilyProperty);
1987 SetValue(InputFontFamilyProperty, value);
1988 NotifyPropertyChanged();
1993 /// The InputFontStyle property.
1995 /// <since_tizen> 3 </since_tizen>
1996 public PropertyMap InputFontStyle
2000 return (PropertyMap)GetValue(InputFontStyleProperty);
2004 SetValue(InputFontStyleProperty, value);
2005 NotifyPropertyChanged();
2010 /// The InputPointSize property.
2012 /// <since_tizen> 3 </since_tizen>
2013 public float InputPointSize
2017 return (float)GetValue(InputPointSizeProperty);
2021 SetValue(InputPointSizeProperty, value);
2022 NotifyPropertyChanged();
2027 /// The Underline property.
2029 /// <since_tizen> 3 </since_tizen>
2030 public PropertyMap Underline
2034 return (PropertyMap)GetValue(UnderlineProperty);
2038 SetValue(UnderlineProperty, value);
2039 NotifyPropertyChanged();
2044 /// The InputUnderline property.
2046 /// <since_tizen> 3 </since_tizen>
2047 public string InputUnderline
2051 return (string)GetValue(InputUnderlineProperty);
2055 SetValue(InputUnderlineProperty, value);
2056 NotifyPropertyChanged();
2061 /// The Shadow property.
2063 /// <since_tizen> 3 </since_tizen>
2064 public PropertyMap Shadow
2068 return (PropertyMap)GetValue(ShadowProperty);
2072 SetValue(ShadowProperty, value);
2073 NotifyPropertyChanged();
2078 /// The InputShadow property.
2080 /// <since_tizen> 3 </since_tizen>
2081 public string InputShadow
2085 return (string)GetValue(InputShadowProperty);
2089 SetValue(InputShadowProperty, value);
2090 NotifyPropertyChanged();
2095 /// The Emboss property.
2097 /// <since_tizen> 3 </since_tizen>
2098 public string Emboss
2102 return (string)GetValue(EmbossProperty);
2106 SetValue(EmbossProperty, value);
2107 NotifyPropertyChanged();
2112 /// The InputEmboss property.
2114 /// <since_tizen> 3 </since_tizen>
2115 public string InputEmboss
2119 return (string)GetValue(InputEmbossProperty);
2123 SetValue(InputEmbossProperty, value);
2124 NotifyPropertyChanged();
2129 /// The Outline property.
2131 /// <since_tizen> 3 </since_tizen>
2132 public PropertyMap Outline
2136 return (PropertyMap)GetValue(OutlineProperty);
2140 SetValue(OutlineProperty, value);
2141 NotifyPropertyChanged();
2146 /// The InputOutline property.
2148 /// <since_tizen> 3 </since_tizen>
2149 public string InputOutline
2153 return (string)GetValue(InputOutlineProperty);
2157 SetValue(InputOutlineProperty, value);
2158 NotifyPropertyChanged();
2163 /// The HiddenInputSettings property.
2165 /// <since_tizen> 3 </since_tizen>
2166 public Tizen.NUI.PropertyMap HiddenInputSettings
2170 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
2174 SetValue(HiddenInputSettingsProperty, value);
2175 NotifyPropertyChanged();
2180 /// The PixelSize property.
2182 /// <since_tizen> 3 </since_tizen>
2183 public float PixelSize
2187 return (float)GetValue(PixelSizeProperty);
2191 SetValue(PixelSizeProperty, value);
2192 NotifyPropertyChanged();
2197 /// The Enable selection property.
2199 /// <since_tizen> 3 </since_tizen>
2200 public bool EnableSelection
2204 return (bool)GetValue(EnableSelectionProperty);
2208 SetValue(EnableSelectionProperty, value);
2209 NotifyPropertyChanged();
2214 /// The Placeholder property.
2215 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2218 /// The following example demonstrates how to set the Placeholder property.
2220 /// PropertyMap propertyMap = new PropertyMap();
2221 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2222 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2223 /// propertyMap.Add("color", new PropertyValue(Color.Red));
2224 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2225 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2227 /// PropertyMap fontStyleMap = new PropertyMap();
2228 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2229 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2230 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2231 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2233 /// TextField field = new TextField();
2234 /// field.Placeholder = propertyMap;
2237 /// <since_tizen> 3 </since_tizen>
2238 public Tizen.NUI.PropertyMap Placeholder
2242 return (PropertyMap)GetValue(PlaceholderProperty);
2246 SetValue(PlaceholderProperty, value);
2247 NotifyPropertyChanged();
2252 /// The Ellipsis property.<br />
2253 /// Enable or disable the ellipsis.<br />
2254 /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2256 /// <since_tizen> 4 </since_tizen>
2257 public bool Ellipsis
2261 return (bool)GetValue(EllipsisProperty);
2265 SetValue(EllipsisProperty, value);
2266 NotifyPropertyChanged();
2271 /// Enables selection of the text using the Shift key.
2273 /// <since_tizen> 5 </since_tizen>
2274 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2275 [EditorBrowsable(EditorBrowsableState.Never)]
2276 public bool EnableShiftSelection
2280 return (bool)GetValue(EnableShiftSelectionProperty);
2284 SetValue(EnableShiftSelectionProperty, value);
2285 NotifyPropertyChanged();