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 string valueToString = "";
176 if (newValue != null)
178 switch ((HorizontalAlignment)newValue)
180 case HorizontalAlignment.Begin:
182 valueToString = "BEGIN";
185 case HorizontalAlignment.Center:
187 valueToString = "CENTER";
190 case HorizontalAlignment.End:
192 valueToString = "END";
197 valueToString = "BEGIN";
201 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
204 defaultValueCreator:(bindable) =>
206 var textField = (TextField)bindable;
208 if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
210 NUILog.Error("HorizontalAlignment get error!");
215 case "BEGIN": return HorizontalAlignment.Begin;
216 case "CENTER": return HorizontalAlignment.Center;
217 case "END": return HorizontalAlignment.End;
218 default: return HorizontalAlignment.Begin;
221 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
222 [EditorBrowsable(EditorBrowsableState.Never)]
223 public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create("VerticalAlignment", typeof(VerticalAlignment), typeof(TextField), VerticalAlignment.Bottom, propertyChanged: (bindable, oldValue, newValue) =>
225 var textField = (TextField)bindable;
226 string valueToString = "";
227 if (newValue != null)
229 switch ((VerticalAlignment)newValue)
231 case VerticalAlignment.Top: { valueToString = "TOP"; break; }
232 case VerticalAlignment.Center: { valueToString = "CENTER"; break; }
233 case VerticalAlignment.Bottom: { valueToString = "BOTTOM"; break; }
234 default: { valueToString = "BOTTOM"; break; }
236 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
239 defaultValueCreator:(bindable) =>
241 var textField = (TextField)bindable;
243 if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
245 NUILog.Error("VerticalAlignment get error!");
250 case "TOP": return VerticalAlignment.Top;
251 case "CENTER": return VerticalAlignment.Center;
252 case "BOTTOM": return VerticalAlignment.Bottom;
253 default: return VerticalAlignment.Bottom;
256 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
257 [EditorBrowsable(EditorBrowsableState.Never)]
258 public static readonly BindableProperty TextColorProperty = BindableProperty.Create("TextColor", typeof(Color), typeof(TextField), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) =>
260 var textField = (TextField)bindable;
261 if (newValue != null)
263 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
266 defaultValueCreator:(bindable) =>
268 var textField = (TextField)bindable;
269 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
270 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR).Get(temp);
273 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
274 [EditorBrowsable(EditorBrowsableState.Never)]
275 public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create("PlaceholderTextColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
277 var textField = (TextField)bindable;
278 if (newValue != null)
280 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
283 defaultValueCreator:(bindable) =>
285 var textField = (TextField)bindable;
286 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
287 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
290 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
291 [EditorBrowsable(EditorBrowsableState.Never)]
292 public static readonly BindableProperty ShadowOffsetProperty = BindableProperty.Create("ShadowOffset", typeof(Vector2), typeof(TextField), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
294 var textField = (TextField)bindable;
295 if (newValue != null)
297 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue));
300 defaultValueCreator:(bindable) =>
302 var textField = (TextField)bindable;
303 Vector2 temp = new Vector2(0.0f, 0.0f);
304 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET).Get(temp);
307 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
308 [EditorBrowsable(EditorBrowsableState.Never)]
309 public static readonly BindableProperty ShadowColorProperty = BindableProperty.Create("ShadowColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
311 var textField = (TextField)bindable;
312 if (newValue != null)
314 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
317 defaultValueCreator:(bindable) =>
319 var textField = (TextField)bindable;
320 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
321 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR).Get(temp);
324 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
325 [EditorBrowsable(EditorBrowsableState.Never)]
326 public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create("PrimaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
328 var textField = (TextField)bindable;
329 if (newValue != null)
331 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
334 defaultValueCreator:(bindable) =>
336 var textField = (TextField)bindable;
337 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
338 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
341 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
342 [EditorBrowsable(EditorBrowsableState.Never)]
343 public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create("SecondaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
345 var textField = (TextField)bindable;
346 if (newValue != null)
348 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
351 defaultValueCreator:(bindable) =>
353 var textField = (TextField)bindable;
354 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
355 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
358 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
359 [EditorBrowsable(EditorBrowsableState.Never)]
360 public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create("EnableCursorBlink", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
362 var textField = (TextField)bindable;
363 if (newValue != null)
365 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
368 defaultValueCreator:(bindable) =>
370 var textField = (TextField)bindable;
372 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
375 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
376 [EditorBrowsable(EditorBrowsableState.Never)]
377 public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create("CursorBlinkInterval", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
379 var textField = (TextField)bindable;
380 if (newValue != null)
382 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
385 defaultValueCreator:(bindable) =>
387 var textField = (TextField)bindable;
389 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
392 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
393 [EditorBrowsable(EditorBrowsableState.Never)]
394 public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create("CursorBlinkDuration", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
396 var textField = (TextField)bindable;
397 if (newValue != null)
399 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
402 defaultValueCreator:(bindable) =>
404 var textField = (TextField)bindable;
406 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION).Get(out temp);
409 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
410 [EditorBrowsable(EditorBrowsableState.Never)]
411 public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create("CursorWidth", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
413 var textField = (TextField)bindable;
414 if (newValue != null)
416 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
419 defaultValueCreator:(bindable) =>
421 var textField = (TextField)bindable;
423 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH).Get(out temp);
426 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
427 [EditorBrowsable(EditorBrowsableState.Never)]
428 public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create("GrabHandleImage", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
430 var textField = (TextField)bindable;
431 if (newValue != null)
433 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
436 defaultValueCreator:(bindable) =>
438 var textField = (TextField)bindable;
440 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
443 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
444 [EditorBrowsable(EditorBrowsableState.Never)]
445 public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create("GrabHandlePressedImage", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
447 var textField = (TextField)bindable;
448 if (newValue != null)
450 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
453 defaultValueCreator:(bindable) =>
455 var textField = (TextField)bindable;
457 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
460 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
461 [EditorBrowsable(EditorBrowsableState.Never)]
462 public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create("ScrollThreshold", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
464 var textField = (TextField)bindable;
465 if (newValue != null)
467 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
470 defaultValueCreator:(bindable) =>
472 var textField = (TextField)bindable;
474 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD).Get(out temp);
477 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
478 [EditorBrowsable(EditorBrowsableState.Never)]
479 public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create("ScrollSpeed", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
481 var textField = (TextField)bindable;
482 if (newValue != null)
484 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
487 defaultValueCreator:(bindable) =>
489 var textField = (TextField)bindable;
491 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED).Get(out temp);
494 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
495 [EditorBrowsable(EditorBrowsableState.Never)]
496 public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create("SelectionHandleImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
498 var textField = (TextField)bindable;
499 if (newValue != null)
501 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
504 defaultValueCreator:(bindable) =>
506 var textField = (TextField)bindable;
507 PropertyMap temp = new PropertyMap();
508 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
511 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
512 [EditorBrowsable(EditorBrowsableState.Never)]
513 public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create("SelectionHandleImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
515 var textField = (TextField)bindable;
516 if (newValue != null)
518 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
521 defaultValueCreator:(bindable) =>
523 var textField = (TextField)bindable;
524 PropertyMap temp = new PropertyMap();
525 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
528 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
529 [EditorBrowsable(EditorBrowsableState.Never)]
530 public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create("SelectionHandlePressedImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
532 var textField = (TextField)bindable;
533 if (newValue != null)
535 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
538 defaultValueCreator:(bindable) =>
540 var textField = (TextField)bindable;
541 PropertyMap temp = new PropertyMap();
542 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
545 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
546 [EditorBrowsable(EditorBrowsableState.Never)]
547 public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create("SelectionHandlePressedImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
549 var textField = (TextField)bindable;
550 if (newValue != null)
552 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
555 defaultValueCreator:(bindable) =>
557 var textField = (TextField)bindable;
558 PropertyMap temp = new PropertyMap();
559 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
562 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
563 [EditorBrowsable(EditorBrowsableState.Never)]
564 public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create("SelectionHandleMarkerImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
566 var textField = (TextField)bindable;
567 if (newValue != null)
569 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
572 defaultValueCreator:(bindable) =>
574 var textField = (TextField)bindable;
575 PropertyMap temp = new PropertyMap();
576 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
579 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
580 [EditorBrowsable(EditorBrowsableState.Never)]
581 public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create("SelectionHandleMarkerImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
583 var textField = (TextField)bindable;
584 if (newValue != null)
586 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
589 defaultValueCreator:(bindable) =>
591 var textField = (TextField)bindable;
592 PropertyMap temp = new PropertyMap();
593 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
596 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
597 [EditorBrowsable(EditorBrowsableState.Never)]
598 public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create("SelectionHighlightColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
600 var textField = (TextField)bindable;
601 if (newValue != null)
603 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
606 defaultValueCreator:(bindable) =>
608 var textField = (TextField)bindable;
609 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
610 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
613 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
614 [EditorBrowsable(EditorBrowsableState.Never)]
615 public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create("DecorationBoundingBox", typeof(Rectangle), typeof(TextField), new Rectangle(0,0,0,0), propertyChanged: (bindable, oldValue, newValue) =>
617 var textField = (TextField)bindable;
618 if (newValue != null)
620 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
623 defaultValueCreator:(bindable) =>
625 var textField = (TextField)bindable;
626 Rectangle temp = new Rectangle(0, 0, 0, 0);
627 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
630 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
631 [EditorBrowsable(EditorBrowsableState.Never)]
632 public static readonly BindableProperty InputMethodSettingsProperty = BindableProperty.Create("InputMethodSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
634 var textField = (TextField)bindable;
635 if (newValue != null)
637 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
640 defaultValueCreator:(bindable) =>
642 var textField = (TextField)bindable;
643 PropertyMap temp = new PropertyMap();
644 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
647 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
648 [EditorBrowsable(EditorBrowsableState.Never)]
649 public static readonly BindableProperty InputColorProperty = BindableProperty.Create("InputColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
651 var textField = (TextField)bindable;
652 if (newValue != null)
654 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
657 defaultValueCreator:(bindable) =>
659 var textField = (TextField)bindable;
660 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
661 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR).Get(temp);
664 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
665 [EditorBrowsable(EditorBrowsableState.Never)]
666 public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create("EnableMarkup", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
668 var textField = (TextField)bindable;
669 if (newValue != null)
671 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
674 defaultValueCreator:(bindable) =>
676 var textField = (TextField)bindable;
678 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP).Get(out temp);
681 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
682 [EditorBrowsable(EditorBrowsableState.Never)]
683 public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create("InputFontFamily", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
685 var textField = (TextField)bindable;
686 if (newValue != null)
688 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
691 defaultValueCreator:(bindable) =>
693 var textField = (TextField)bindable;
695 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
698 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
699 [EditorBrowsable(EditorBrowsableState.Never)]
700 public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create("InputFontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
702 var textField = (TextField)bindable;
703 if (newValue != null)
705 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
708 defaultValueCreator:(bindable) =>
710 var textField = (TextField)bindable;
711 PropertyMap temp = new PropertyMap();
712 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE).Get(temp);
715 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
716 [EditorBrowsable(EditorBrowsableState.Never)]
717 public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create("InputPointSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
719 var textField = (TextField)bindable;
720 if (newValue != null)
722 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
725 defaultValueCreator:(bindable) =>
727 var textField = (TextField)bindable;
729 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE).Get(out temp);
732 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
733 [EditorBrowsable(EditorBrowsableState.Never)]
734 public static readonly BindableProperty UnderlineProperty = BindableProperty.Create("Underline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
736 var textField = (TextField)bindable;
737 if (newValue != null)
739 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
742 defaultValueCreator:(bindable) =>
744 var textField = (TextField)bindable;
745 PropertyMap temp = new PropertyMap();
746 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.UNDERLINE).Get(temp);
749 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
750 [EditorBrowsable(EditorBrowsableState.Never)]
751 public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create("InputUnderline", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
753 var textField = (TextField)bindable;
754 if (newValue != null)
756 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
759 defaultValueCreator:(bindable) =>
761 var textField = (TextField)bindable;
763 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE).Get(out temp);
766 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
767 [EditorBrowsable(EditorBrowsableState.Never)]
768 public static readonly BindableProperty ShadowProperty = BindableProperty.Create("Shadow", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
770 var textField = (TextField)bindable;
771 if (newValue != null)
773 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
776 defaultValueCreator:(bindable) =>
778 var textField = (TextField)bindable;
779 PropertyMap temp = new PropertyMap();
780 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW).Get(temp);
783 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
784 [EditorBrowsable(EditorBrowsableState.Never)]
785 public static readonly BindableProperty InputShadowProperty = BindableProperty.Create("InputShadow", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
787 var textField = (TextField)bindable;
788 if (newValue != null)
790 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
793 defaultValueCreator:(bindable) =>
795 var textField = (TextField)bindable;
797 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW).Get(out temp);
800 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
801 [EditorBrowsable(EditorBrowsableState.Never)]
802 public static readonly BindableProperty EmbossProperty = BindableProperty.Create("Emboss", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
804 var textField = (TextField)bindable;
805 if (newValue != null)
807 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
810 defaultValueCreator:(bindable) =>
812 var textField = (TextField)bindable;
814 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EMBOSS).Get(out temp);
817 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
818 [EditorBrowsable(EditorBrowsableState.Never)]
819 public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create("InputEmboss", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
821 var textField = (TextField)bindable;
822 if (newValue != null)
824 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
827 defaultValueCreator:(bindable) =>
829 var textField = (TextField)bindable;
831 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS).Get(out temp);
834 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
835 [EditorBrowsable(EditorBrowsableState.Never)]
836 public static readonly BindableProperty OutlineProperty = BindableProperty.Create("Outline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
838 var textField = (TextField)bindable;
839 if (newValue != null)
841 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
844 defaultValueCreator:(bindable) =>
846 var textField = (TextField)bindable;
847 PropertyMap temp = new PropertyMap();
848 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.OUTLINE).Get(temp);
851 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
852 [EditorBrowsable(EditorBrowsableState.Never)]
853 public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create("InputOutline", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
855 var textField = (TextField)bindable;
856 if (newValue != null)
858 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
861 defaultValueCreator:(bindable) =>
863 var textField = (TextField)bindable;
865 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE).Get(out temp);
868 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
869 [EditorBrowsable(EditorBrowsableState.Never)]
870 public static readonly BindableProperty HiddenInputSettingsProperty = BindableProperty.Create("HiddenInputSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
872 var textField = (TextField)bindable;
873 if (newValue != null)
875 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
878 defaultValueCreator:(bindable) =>
880 var textField = (TextField)bindable;
881 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
882 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS).Get(temp);
885 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
886 [EditorBrowsable(EditorBrowsableState.Never)]
887 public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create("PixelSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
889 var textField = (TextField)bindable;
890 if (newValue != null)
892 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
895 defaultValueCreator:(bindable) =>
897 var textField = (TextField)bindable;
899 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE).Get(out temp);
902 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
903 [EditorBrowsable(EditorBrowsableState.Never)]
904 public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create("EnableSelection", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
906 var textField = (TextField)bindable;
907 if (newValue != null)
909 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
912 defaultValueCreator:(bindable) =>
914 var textField = (TextField)bindable;
916 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION).Get(out temp);
919 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
920 [EditorBrowsable(EditorBrowsableState.Never)]
921 public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create("Placeholder", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
923 var textField = (TextField)bindable;
924 if (newValue != null)
926 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
929 defaultValueCreator:(bindable) =>
931 var textField = (TextField)bindable;
932 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
933 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER).Get(temp);
936 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
937 [EditorBrowsable(EditorBrowsableState.Never)]
938 public static readonly BindableProperty EllipsisProperty = BindableProperty.Create("Ellipsis", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
940 var textField = (TextField)bindable;
941 if (newValue != null)
943 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue((bool)newValue));
946 defaultValueCreator:(bindable) =>
948 var textField = (TextField)bindable;
950 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS).Get(out temp);
953 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
954 [EditorBrowsable(EditorBrowsableState.Never)]
955 public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create("EnableShiftSelection", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
957 var textField = (TextField)bindable;
958 if (newValue != null)
960 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
963 defaultValueCreator:(bindable) =>
965 var textField = (TextField)bindable;
967 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
973 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
974 private string textFieldTextSid = null;
975 private string textFieldPlaceHolderTextSid = null;
976 private bool systemlangTextFlag = false;
977 private InputMethodContext inputMethodCotext = null;
979 internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
981 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
984 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
986 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
992 /// <since_tizen> 3 </since_tizen>
993 protected override void Dispose(DisposeTypes type)
997 DisposeQueue.Instance.Add(this);
1001 if (type == DisposeTypes.Explicit)
1004 //Release your own managed resources here.
1005 //You should release all of your own disposable objects here.
1008 //Release your own unmanaged resources here.
1009 //You should not access any managed member here except static instance.
1010 //because the execution order of Finalizes is non-deterministic.
1013 if (_textFieldMaxLengthReachedCallbackDelegate != null)
1015 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1018 if (_textFieldTextChangedCallbackDelegate != null)
1020 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1024 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1028 swigCMemOwn = false;
1029 // In order to speed up IME hide, temporarily add
1030 GetInputMethodContext()?.DestroyContext();
1031 NDalicPINVOKE.delete_TextField(swigCPtr);
1033 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1040 /// The TextChanged event arguments.
1042 /// <since_tizen> 3 </since_tizen>
1043 public class TextChangedEventArgs : EventArgs
1045 private TextField _textField;
1050 /// <since_tizen> 3 </since_tizen>
1051 public TextField TextField
1065 /// The MaxLengthReached event arguments.
1067 /// <since_tizen> 3 </since_tizen>
1068 public class MaxLengthReachedEventArgs : EventArgs
1070 private TextField _textField;
1075 /// <since_tizen> 3 </since_tizen>
1076 public TextField TextField
1090 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1091 private delegate void TextChangedCallbackDelegate(IntPtr textField);
1092 private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
1093 private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
1095 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1096 private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1097 private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
1098 private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
1101 /// The TextChanged event.
1103 /// <since_tizen> 3 </since_tizen>
1104 public event EventHandler<TextChangedEventArgs> TextChanged
1108 if (_textFieldTextChangedEventHandler == null)
1110 _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1111 TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1113 _textFieldTextChangedEventHandler += value;
1117 _textFieldTextChangedEventHandler -= value;
1118 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1120 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1125 private void OnTextChanged(IntPtr textField)
1127 TextChangedEventArgs e = new TextChangedEventArgs();
1129 // Populate all members of "e" (TextChangedEventArgs) with real data
1130 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1132 if (_textFieldTextChangedEventHandler != null)
1134 //here we send all data to user event handlers
1135 _textFieldTextChangedEventHandler(this, e);
1141 /// The MaxLengthReached event.
1143 /// <since_tizen> 3 </since_tizen>
1144 public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1148 if (_textFieldMaxLengthReachedEventHandler == null)
1150 _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1151 MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1153 _textFieldMaxLengthReachedEventHandler += value;
1157 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1159 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1161 _textFieldMaxLengthReachedEventHandler -= value;
1165 private void OnMaxLengthReached(IntPtr textField)
1167 MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
1169 // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
1170 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1172 if (_textFieldMaxLengthReachedEventHandler != null)
1174 //here we send all data to user event handlers
1175 _textFieldMaxLengthReachedEventHandler(this, e);
1180 internal new class Property
1182 internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
1183 internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
1184 internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
1185 internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
1186 internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
1187 internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
1188 internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
1189 internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
1190 internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
1191 internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
1192 internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
1193 internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
1194 internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
1195 internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
1196 internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
1197 internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
1198 internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
1199 internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
1200 internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
1201 internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
1202 internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
1203 internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
1204 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1205 internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
1206 internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
1207 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1208 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1209 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1210 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1211 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1212 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1213 internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
1214 internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
1215 internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
1216 internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
1217 internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
1218 internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
1219 internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
1220 internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
1221 internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
1222 internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
1223 internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
1224 internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
1225 internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
1226 internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
1227 internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
1228 internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
1229 internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
1230 internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
1231 internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
1232 internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
1233 internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
1234 internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
1237 internal class InputStyle
1243 FontFamily = 0x0002,
1255 /// Creates the TextField control.
1257 /// <since_tizen> 3 </since_tizen>
1258 public TextField() : this(NDalicPINVOKE.TextField_New(), true)
1260 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1263 internal override bool IsCreateByXaml
1267 return base.IsCreateByXaml;
1271 base.IsCreateByXaml = value;
1275 this.TextChanged += (obj, e) =>
1277 this.Text = this.Text;
1283 internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
1285 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1289 /// Get the InputMethodContext instance.
1291 /// <returns>The InputMethodContext instance.</returns>
1292 public InputMethodContext GetInputMethodContext()
1294 if (inputMethodCotext == null)
1296 /*Avoid raising InputMethodContext reference count.*/
1297 inputMethodCotext = new InputMethodContext(NDalicPINVOKE.TextField_GetInputMethodContext(swigCPtr), true);
1298 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1300 return inputMethodCotext;
1303 internal TextFieldSignal TextChangedSignal()
1305 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
1306 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1310 internal TextFieldSignal MaxLengthReachedSignal()
1312 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
1313 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1317 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
1319 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);
1320 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1324 internal enum ExceedPolicyType
1326 ExceedPolicyOriginal,
1331 /// The TranslatableText property.<br />
1332 /// The text can set the SID value.<br />
1334 /// <exception cref='ArgumentNullException'>
1335 /// ResourceManager about multilingual is null.
1337 /// <since_tizen> 4 </since_tizen>
1338 public string TranslatableText
1342 return textFieldTextSid;
1346 if (NUIApplication.MultilingualResourceManager == null)
1348 throw new ArgumentNullException("ResourceManager about multilingual is null");
1350 textFieldTextSid = value;
1351 Text = SetTranslatable(textFieldTextSid);
1352 NotifyPropertyChanged();
1356 /// The TranslatablePlaceholderText property.<br />
1357 /// The text can set the SID value.<br />
1359 /// <exception cref='ArgumentNullException'>
1360 /// ResourceManager about multilingual is null.
1362 /// <since_tizen> 4 </since_tizen>
1363 public string TranslatablePlaceholderText
1367 return textFieldPlaceHolderTextSid;
1371 if (NUIApplication.MultilingualResourceManager == null)
1373 throw new ArgumentNullException("ResourceManager about multilingual is null");
1375 textFieldPlaceHolderTextSid = value;
1376 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1377 NotifyPropertyChanged();
1380 private string SetTranslatable(string textFieldSid)
1382 string translatableText = null;
1383 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1384 if (translatableText != null)
1386 if (systemlangTextFlag == false)
1388 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1389 systemlangTextFlag = true;
1391 return translatableText;
1395 translatableText = "";
1396 return translatableText;
1399 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1401 if (textFieldTextSid != null)
1403 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1405 if (textFieldPlaceHolderTextSid != null)
1407 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1411 /// The Text property.
1413 /// <since_tizen> 3 </since_tizen>
1418 return (string)GetValue(TextProperty);
1422 SetValueAndForceSendChangeSignal(TextProperty, value);
1423 NotifyPropertyChanged();
1428 /// The PlaceholderText property.
1430 /// <since_tizen> 3 </since_tizen>
1431 public string PlaceholderText
1435 return (string)GetValue(PlaceholderTextProperty);
1439 SetValue(PlaceholderTextProperty, value);
1440 NotifyPropertyChanged();
1445 /// The PlaceholderTextFocused property.
1447 /// <since_tizen> 3 </since_tizen>
1448 public string PlaceholderTextFocused
1452 return (string)GetValue(PlaceholderTextFocusedProperty);
1456 SetValue(PlaceholderTextFocusedProperty, value);
1457 NotifyPropertyChanged();
1462 /// The FontFamily property.
1464 /// <since_tizen> 3 </since_tizen>
1465 public string FontFamily
1469 return (string)GetValue(FontFamilyProperty);
1473 SetValue(FontFamilyProperty, value);
1474 NotifyPropertyChanged();
1479 /// The FontStyle property.
1481 /// <since_tizen> 3 </since_tizen>
1482 public PropertyMap FontStyle
1486 return (PropertyMap)GetValue(FontStyleProperty);
1490 SetValue(FontStyleProperty, value);
1491 NotifyPropertyChanged();
1496 /// The PointSize property.
1498 /// <since_tizen> 3 </since_tizen>
1499 public float PointSize
1503 return (float)GetValue(PointSizeProperty);
1507 SetValue(PointSizeProperty, value);
1508 NotifyPropertyChanged();
1513 /// The MaxLength property.
1515 /// <since_tizen> 3 </since_tizen>
1516 public int MaxLength
1520 return (int)GetValue(MaxLengthProperty);
1524 SetValue(MaxLengthProperty, value);
1525 NotifyPropertyChanged();
1530 /// The ExceedPolicy property.
1532 /// <since_tizen> 3 </since_tizen>
1533 public int ExceedPolicy
1537 return (int)GetValue(ExceedPolicyProperty);
1541 SetValue(ExceedPolicyProperty, value);
1542 NotifyPropertyChanged();
1547 /// The HorizontalAlignment property.
1549 /// <since_tizen> 3 </since_tizen>
1550 public HorizontalAlignment HorizontalAlignment
1554 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1558 SetValue(HorizontalAlignmentProperty, value);
1559 NotifyPropertyChanged();
1564 /// The VerticalAlignment property.
1566 /// <since_tizen> 3 </since_tizen>
1567 public VerticalAlignment VerticalAlignment
1571 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1575 SetValue(VerticalAlignmentProperty, value);
1576 NotifyPropertyChanged();
1577 NotifyPropertyChanged();
1582 /// The TextColor property.
1584 /// <since_tizen> 3 </since_tizen>
1585 public Color TextColor
1589 return (Color)GetValue(TextColorProperty);
1593 SetValue(TextColorProperty, value);
1594 NotifyPropertyChanged();
1599 /// The PlaceholderTextColor property.
1601 /// <since_tizen> 3 </since_tizen>
1602 public Vector4 PlaceholderTextColor
1606 return (Vector4)GetValue(PlaceholderTextColorProperty);
1610 SetValue(PlaceholderTextColorProperty, value);
1611 NotifyPropertyChanged();
1616 /// The ShadowOffset property.
1618 /// <since_tizen> 3 </since_tizen>
1619 public Vector2 ShadowOffset
1623 return (Vector2)GetValue(ShadowOffsetProperty);
1627 SetValue(ShadowOffsetProperty, value);
1628 NotifyPropertyChanged();
1633 /// The ShadowColor property.
1635 /// <since_tizen> 3 </since_tizen>
1636 public Vector4 ShadowColor
1640 return (Vector4)GetValue(ShadowColorProperty);
1644 SetValue(ShadowColorProperty, value);
1645 NotifyPropertyChanged();
1650 /// The PrimaryCursorColor property.
1652 /// <since_tizen> 3 </since_tizen>
1653 public Vector4 PrimaryCursorColor
1657 return (Vector4)GetValue(PrimaryCursorColorProperty);
1661 SetValue(PrimaryCursorColorProperty, value);
1662 NotifyPropertyChanged();
1667 /// The SecondaryCursorColor property.
1669 /// <since_tizen> 3 </since_tizen>
1670 public Vector4 SecondaryCursorColor
1674 return (Vector4)GetValue(SecondaryCursorColorProperty);
1678 SetValue(SecondaryCursorColorProperty, value);
1679 NotifyPropertyChanged();
1684 /// The EnableCursorBlink property.
1686 /// <since_tizen> 3 </since_tizen>
1687 public bool EnableCursorBlink
1691 return (bool)GetValue(EnableCursorBlinkProperty);
1695 SetValue(EnableCursorBlinkProperty, value);
1696 NotifyPropertyChanged();
1701 /// The CursorBlinkInterval property.
1703 /// <since_tizen> 3 </since_tizen>
1704 public float CursorBlinkInterval
1708 return (float)GetValue(CursorBlinkIntervalProperty);
1712 SetValue(CursorBlinkIntervalProperty, value);
1713 NotifyPropertyChanged();
1718 /// The CursorBlinkDuration property.
1720 /// <since_tizen> 3 </since_tizen>
1721 public float CursorBlinkDuration
1725 return (float)GetValue(CursorBlinkDurationProperty);
1729 SetValue(CursorBlinkDurationProperty, value);
1730 NotifyPropertyChanged();
1735 /// The CursorWidth property.
1737 /// <since_tizen> 3 </since_tizen>
1738 public int CursorWidth
1742 return (int)GetValue(CursorWidthProperty);
1746 SetValue(CursorWidthProperty, value);
1747 NotifyPropertyChanged();
1752 /// The GrabHandleImage property.
1754 /// <since_tizen> 3 </since_tizen>
1755 public string GrabHandleImage
1759 return (string)GetValue(GrabHandleImageProperty);
1763 SetValue(GrabHandleImageProperty, value);
1764 NotifyPropertyChanged();
1769 /// The GrabHandlePressedImage property.
1771 /// <since_tizen> 3 </since_tizen>
1772 public string GrabHandlePressedImage
1776 return (string)GetValue(GrabHandlePressedImageProperty);
1780 SetValue(GrabHandlePressedImageProperty, value);
1781 NotifyPropertyChanged();
1786 /// The ScrollThreshold property.
1788 /// <since_tizen> 3 </since_tizen>
1789 public float ScrollThreshold
1793 return (float)GetValue(ScrollThresholdProperty);
1797 SetValue(ScrollThresholdProperty, value);
1798 NotifyPropertyChanged();
1803 /// The ScrollSpeed property.
1805 /// <since_tizen> 3 </since_tizen>
1806 public float ScrollSpeed
1810 return (float)GetValue(ScrollSpeedProperty);
1814 SetValue(ScrollSpeedProperty, value);
1815 NotifyPropertyChanged();
1820 /// The SelectionHandleImageLeft property.
1822 /// <since_tizen> 3 </since_tizen>
1823 public PropertyMap SelectionHandleImageLeft
1827 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1831 SetValue(SelectionHandleImageLeftProperty, value);
1832 NotifyPropertyChanged();
1837 /// The SelectionHandleImageRight property.
1839 /// <since_tizen> 3 </since_tizen>
1840 public PropertyMap SelectionHandleImageRight
1844 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1848 SetValue(SelectionHandleImageRightProperty, value);
1849 NotifyPropertyChanged();
1854 /// The SelectionHandlePressedImageLeft property.
1856 /// <since_tizen> 3 </since_tizen>
1857 public PropertyMap SelectionHandlePressedImageLeft
1861 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1865 SetValue(SelectionHandlePressedImageLeftProperty, value);
1866 NotifyPropertyChanged();
1871 /// The SelectionHandlePressedImageRight property.
1873 /// <since_tizen> 3 </since_tizen>
1874 public PropertyMap SelectionHandlePressedImageRight
1878 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1882 SetValue(SelectionHandlePressedImageRightProperty, value);
1883 NotifyPropertyChanged();
1888 /// The SelectionHandleMarkerImageLeft property.
1890 /// <since_tizen> 3 </since_tizen>
1891 public PropertyMap SelectionHandleMarkerImageLeft
1895 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1899 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1900 NotifyPropertyChanged();
1905 /// The SelectionHandleMarkerImageRight property.
1907 /// <since_tizen> 3 </since_tizen>
1908 public PropertyMap SelectionHandleMarkerImageRight
1912 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1916 SetValue(SelectionHandleMarkerImageRightProperty, value);
1917 NotifyPropertyChanged();
1922 /// The SelectionHighlightColor property.
1924 /// <since_tizen> 3 </since_tizen>
1925 public Vector4 SelectionHighlightColor
1929 return (Vector4)GetValue(SelectionHighlightColorProperty);
1933 SetValue(SelectionHighlightColorProperty, value);
1934 NotifyPropertyChanged();
1939 /// The DecorationBoundingBox property.
1941 /// <since_tizen> 3 </since_tizen>
1942 public Rectangle DecorationBoundingBox
1946 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1950 SetValue(DecorationBoundingBoxProperty, value);
1951 NotifyPropertyChanged();
1956 /// The InputMethodSettings property.
1958 /// <since_tizen> 3 </since_tizen>
1959 public PropertyMap InputMethodSettings
1963 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1967 SetValue(InputMethodSettingsProperty, value);
1968 NotifyPropertyChanged();
1973 /// The InputColor property.
1975 /// <since_tizen> 3 </since_tizen>
1976 public Vector4 InputColor
1980 return (Vector4)GetValue(InputColorProperty);
1984 SetValue(InputColorProperty, value);
1985 NotifyPropertyChanged();
1990 /// The EnableMarkup property.
1992 /// <since_tizen> 3 </since_tizen>
1993 public bool EnableMarkup
1997 return (bool)GetValue(EnableMarkupProperty);
2001 SetValue(EnableMarkupProperty, value);
2002 NotifyPropertyChanged();
2007 /// The InputFontFamily property.
2009 /// <since_tizen> 3 </since_tizen>
2010 public string InputFontFamily
2014 return (string)GetValue(InputFontFamilyProperty);
2018 SetValue(InputFontFamilyProperty, value);
2019 NotifyPropertyChanged();
2024 /// The InputFontStyle property.
2026 /// <since_tizen> 3 </since_tizen>
2027 public PropertyMap InputFontStyle
2031 return (PropertyMap)GetValue(InputFontStyleProperty);
2035 SetValue(InputFontStyleProperty, value);
2036 NotifyPropertyChanged();
2041 /// The InputPointSize property.
2043 /// <since_tizen> 3 </since_tizen>
2044 public float InputPointSize
2048 return (float)GetValue(InputPointSizeProperty);
2052 SetValue(InputPointSizeProperty, value);
2053 NotifyPropertyChanged();
2058 /// The Underline property.
2060 /// <since_tizen> 3 </since_tizen>
2061 public PropertyMap Underline
2065 return (PropertyMap)GetValue(UnderlineProperty);
2069 SetValue(UnderlineProperty, value);
2070 NotifyPropertyChanged();
2075 /// The InputUnderline property.
2077 /// <since_tizen> 3 </since_tizen>
2078 public string InputUnderline
2082 return (string)GetValue(InputUnderlineProperty);
2086 SetValue(InputUnderlineProperty, value);
2087 NotifyPropertyChanged();
2092 /// The Shadow property.
2094 /// <since_tizen> 3 </since_tizen>
2095 public PropertyMap Shadow
2099 return (PropertyMap)GetValue(ShadowProperty);
2103 SetValue(ShadowProperty, value);
2104 NotifyPropertyChanged();
2109 /// The InputShadow property.
2111 /// <since_tizen> 3 </since_tizen>
2112 public string InputShadow
2116 return (string)GetValue(InputShadowProperty);
2120 SetValue(InputShadowProperty, value);
2121 NotifyPropertyChanged();
2126 /// The Emboss property.
2128 /// <since_tizen> 3 </since_tizen>
2129 public string Emboss
2133 return (string)GetValue(EmbossProperty);
2137 SetValue(EmbossProperty, value);
2138 NotifyPropertyChanged();
2143 /// The InputEmboss property.
2145 /// <since_tizen> 3 </since_tizen>
2146 public string InputEmboss
2150 return (string)GetValue(InputEmbossProperty);
2154 SetValue(InputEmbossProperty, value);
2155 NotifyPropertyChanged();
2160 /// The Outline property.
2162 /// <since_tizen> 3 </since_tizen>
2163 public PropertyMap Outline
2167 return (PropertyMap)GetValue(OutlineProperty);
2171 SetValue(OutlineProperty, value);
2172 NotifyPropertyChanged();
2177 /// The InputOutline property.
2179 /// <since_tizen> 3 </since_tizen>
2180 public string InputOutline
2184 return (string)GetValue(InputOutlineProperty);
2188 SetValue(InputOutlineProperty, value);
2189 NotifyPropertyChanged();
2194 /// The HiddenInputSettings property.
2196 /// <since_tizen> 3 </since_tizen>
2197 public Tizen.NUI.PropertyMap HiddenInputSettings
2201 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
2205 SetValue(HiddenInputSettingsProperty, value);
2206 NotifyPropertyChanged();
2211 /// The PixelSize property.
2213 /// <since_tizen> 3 </since_tizen>
2214 public float PixelSize
2218 return (float)GetValue(PixelSizeProperty);
2222 SetValue(PixelSizeProperty, value);
2223 NotifyPropertyChanged();
2228 /// The Enable selection property.
2230 /// <since_tizen> 3 </since_tizen>
2231 public bool EnableSelection
2235 return (bool)GetValue(EnableSelectionProperty);
2239 SetValue(EnableSelectionProperty, value);
2240 NotifyPropertyChanged();
2245 /// The Placeholder property.
2246 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2249 /// The following example demonstrates how to set the Placeholder property.
2251 /// PropertyMap propertyMap = new PropertyMap();
2252 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2253 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2254 /// propertyMap.Add("color", new PropertyValue(Color.Red));
2255 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2256 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2258 /// PropertyMap fontStyleMap = new PropertyMap();
2259 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2260 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2261 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2262 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2264 /// TextField field = new TextField();
2265 /// field.Placeholder = propertyMap;
2268 /// <since_tizen> 3 </since_tizen>
2269 public Tizen.NUI.PropertyMap Placeholder
2273 return (PropertyMap)GetValue(PlaceholderProperty);
2277 SetValue(PlaceholderProperty, value);
2278 NotifyPropertyChanged();
2283 /// The Ellipsis property.<br />
2284 /// Enable or disable the ellipsis.<br />
2285 /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2287 /// <since_tizen> 4 </since_tizen>
2288 public bool Ellipsis
2292 return (bool)GetValue(EllipsisProperty);
2296 SetValue(EllipsisProperty, value);
2297 NotifyPropertyChanged();
2302 /// Enables selection of the text using the Shift key.
2304 /// <since_tizen> 5 </since_tizen>
2305 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2306 [EditorBrowsable(EditorBrowsableState.Never)]
2307 public bool EnableShiftSelection
2311 return (bool)GetValue(EnableShiftSelectionProperty);
2315 SetValue(EnableShiftSelectionProperty, value);
2316 NotifyPropertyChanged();