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;
978 internal TextField(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextField_SWIGUpcast(cPtr), cMemoryOwn)
980 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
983 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextField obj)
985 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
991 /// <since_tizen> 3 </since_tizen>
992 protected override void Dispose(DisposeTypes type)
996 DisposeQueue.Instance.Add(this);
1000 if (type == DisposeTypes.Explicit)
1003 //Release your own managed resources here.
1004 //You should release all of your own disposable objects here.
1007 //Release your own unmanaged resources here.
1008 //You should not access any managed member here except static instance.
1009 //because the execution order of Finalizes is non-deterministic.
1012 if (_textFieldMaxLengthReachedCallbackDelegate != null)
1014 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1017 if (_textFieldTextChangedCallbackDelegate != null)
1019 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1023 if (swigCPtr.Handle != global::System.IntPtr.Zero)
1027 swigCMemOwn = false;
1028 // In order to speed up IME hide, temporarily add
1029 GetInputMethodContext()?.DestroyContext();
1030 NDalicPINVOKE.delete_TextField(swigCPtr);
1032 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1039 /// The TextChanged event arguments.
1041 /// <since_tizen> 3 </since_tizen>
1042 public class TextChangedEventArgs : EventArgs
1044 private TextField _textField;
1049 /// <since_tizen> 3 </since_tizen>
1050 public TextField TextField
1064 /// The MaxLengthReached event arguments.
1066 /// <since_tizen> 3 </since_tizen>
1067 public class MaxLengthReachedEventArgs : EventArgs
1069 private TextField _textField;
1074 /// <since_tizen> 3 </since_tizen>
1075 public TextField TextField
1089 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1090 private delegate void TextChangedCallbackDelegate(IntPtr textField);
1091 private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
1092 private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
1094 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1095 private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1096 private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
1097 private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
1100 /// The TextChanged event.
1102 /// <since_tizen> 3 </since_tizen>
1103 public event EventHandler<TextChangedEventArgs> TextChanged
1107 if (_textFieldTextChangedEventHandler == null)
1109 _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1110 TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1112 _textFieldTextChangedEventHandler += value;
1116 _textFieldTextChangedEventHandler -= value;
1117 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1119 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1124 private void OnTextChanged(IntPtr textField)
1126 TextChangedEventArgs e = new TextChangedEventArgs();
1128 // Populate all members of "e" (TextChangedEventArgs) with real data
1129 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1131 if (_textFieldTextChangedEventHandler != null)
1133 //here we send all data to user event handlers
1134 _textFieldTextChangedEventHandler(this, e);
1140 /// The MaxLengthReached event.
1142 /// <since_tizen> 3 </since_tizen>
1143 public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1147 if (_textFieldMaxLengthReachedEventHandler == null)
1149 _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1150 MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1152 _textFieldMaxLengthReachedEventHandler += value;
1156 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1158 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1160 _textFieldMaxLengthReachedEventHandler -= value;
1164 private void OnMaxLengthReached(IntPtr textField)
1166 MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
1168 // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
1169 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1171 if (_textFieldMaxLengthReachedEventHandler != null)
1173 //here we send all data to user event handlers
1174 _textFieldMaxLengthReachedEventHandler(this, e);
1179 internal new class Property
1181 internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
1182 internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
1183 internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
1184 internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
1185 internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
1186 internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
1187 internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
1188 internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
1189 internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
1190 internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
1191 internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
1192 internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
1193 internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
1194 internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
1195 internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
1196 internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
1197 internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
1198 internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
1199 internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
1200 internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
1201 internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
1202 internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
1203 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1204 internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
1205 internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
1206 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1207 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1208 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1209 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1210 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1211 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1212 internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
1213 internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
1214 internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
1215 internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
1216 internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
1217 internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
1218 internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
1219 internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
1220 internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
1221 internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
1222 internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
1223 internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
1224 internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
1225 internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
1226 internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
1227 internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
1228 internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
1229 internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
1230 internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
1231 internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
1232 internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
1233 internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
1236 internal class InputStyle
1242 FontFamily = 0x0002,
1254 /// Creates the TextField control.
1256 /// <since_tizen> 3 </since_tizen>
1257 public TextField() : this(NDalicPINVOKE.TextField_New(), true)
1259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1262 internal override bool IsCreateByXaml
1266 return base.IsCreateByXaml;
1270 base.IsCreateByXaml = value;
1274 this.TextChanged += (obj, e) =>
1276 this.Text = this.Text;
1282 internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
1284 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1288 /// Get the InputMethodContext instance.
1290 /// <returns>The InputMethodContext instance.</returns>
1291 public InputMethodContext GetInputMethodContext() {
1292 InputMethodContext ret = new InputMethodContext(NDalicPINVOKE.TextField_GetInputMethodContext(swigCPtr), true);
1293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1297 internal TextFieldSignal TextChangedSignal()
1299 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
1300 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1304 internal TextFieldSignal MaxLengthReachedSignal()
1306 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
1307 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1311 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
1313 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);
1314 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1318 internal enum ExceedPolicyType
1320 ExceedPolicyOriginal,
1325 /// The TranslatableText 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 TranslatableText
1336 return textFieldTextSid;
1340 if (NUIApplication.MultilingualResourceManager == null)
1342 throw new ArgumentNullException("ResourceManager about multilingual is null");
1344 textFieldTextSid = value;
1345 Text = SetTranslatable(textFieldTextSid);
1346 NotifyPropertyChanged();
1350 /// The TranslatablePlaceholderText property.<br />
1351 /// The text can set the SID value.<br />
1353 /// <exception cref='ArgumentNullException'>
1354 /// ResourceManager about multilingual is null.
1356 /// <since_tizen> 4 </since_tizen>
1357 public string TranslatablePlaceholderText
1361 return textFieldPlaceHolderTextSid;
1365 if (NUIApplication.MultilingualResourceManager == null)
1367 throw new ArgumentNullException("ResourceManager about multilingual is null");
1369 textFieldPlaceHolderTextSid = value;
1370 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1371 NotifyPropertyChanged();
1374 private string SetTranslatable(string textFieldSid)
1376 string translatableText = null;
1377 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1378 if (translatableText != null)
1380 if (systemlangTextFlag == false)
1382 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1383 systemlangTextFlag = true;
1385 return translatableText;
1389 translatableText = "";
1390 return translatableText;
1393 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1395 if (textFieldTextSid != null)
1397 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1399 if (textFieldPlaceHolderTextSid != null)
1401 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1405 /// The Text property.
1407 /// <since_tizen> 3 </since_tizen>
1412 return (string)GetValue(TextProperty);
1416 SetValueAndForceSendChangeSignal(TextProperty, value);
1417 NotifyPropertyChanged();
1422 /// The PlaceholderText property.
1424 /// <since_tizen> 3 </since_tizen>
1425 public string PlaceholderText
1429 return (string)GetValue(PlaceholderTextProperty);
1433 SetValue(PlaceholderTextProperty, value);
1434 NotifyPropertyChanged();
1439 /// The PlaceholderTextFocused property.
1441 /// <since_tizen> 3 </since_tizen>
1442 public string PlaceholderTextFocused
1446 return (string)GetValue(PlaceholderTextFocusedProperty);
1450 SetValue(PlaceholderTextFocusedProperty, value);
1451 NotifyPropertyChanged();
1456 /// The FontFamily property.
1458 /// <since_tizen> 3 </since_tizen>
1459 public string FontFamily
1463 return (string)GetValue(FontFamilyProperty);
1467 SetValue(FontFamilyProperty, value);
1468 NotifyPropertyChanged();
1473 /// The FontStyle property.
1475 /// <since_tizen> 3 </since_tizen>
1476 public PropertyMap FontStyle
1480 return (PropertyMap)GetValue(FontStyleProperty);
1484 SetValue(FontStyleProperty, value);
1485 NotifyPropertyChanged();
1490 /// The PointSize property.
1492 /// <since_tizen> 3 </since_tizen>
1493 public float PointSize
1497 return (float)GetValue(PointSizeProperty);
1501 SetValue(PointSizeProperty, value);
1502 NotifyPropertyChanged();
1507 /// The MaxLength property.
1509 /// <since_tizen> 3 </since_tizen>
1510 public int MaxLength
1514 return (int)GetValue(MaxLengthProperty);
1518 SetValue(MaxLengthProperty, value);
1519 NotifyPropertyChanged();
1524 /// The ExceedPolicy property.
1526 /// <since_tizen> 3 </since_tizen>
1527 public int ExceedPolicy
1531 return (int)GetValue(ExceedPolicyProperty);
1535 SetValue(ExceedPolicyProperty, value);
1536 NotifyPropertyChanged();
1541 /// The HorizontalAlignment property.
1543 /// <since_tizen> 3 </since_tizen>
1544 public HorizontalAlignment HorizontalAlignment
1548 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1552 SetValue(HorizontalAlignmentProperty, value);
1553 NotifyPropertyChanged();
1558 /// The VerticalAlignment property.
1560 /// <since_tizen> 3 </since_tizen>
1561 public VerticalAlignment VerticalAlignment
1565 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1569 SetValue(VerticalAlignmentProperty, value);
1570 NotifyPropertyChanged();
1571 NotifyPropertyChanged();
1576 /// The TextColor property.
1578 /// <since_tizen> 3 </since_tizen>
1579 public Color TextColor
1583 return (Color)GetValue(TextColorProperty);
1587 SetValue(TextColorProperty, value);
1588 NotifyPropertyChanged();
1593 /// The PlaceholderTextColor property.
1595 /// <since_tizen> 3 </since_tizen>
1596 public Vector4 PlaceholderTextColor
1600 return (Vector4)GetValue(PlaceholderTextColorProperty);
1604 SetValue(PlaceholderTextColorProperty, value);
1605 NotifyPropertyChanged();
1610 /// The ShadowOffset property.
1612 /// <since_tizen> 3 </since_tizen>
1613 public Vector2 ShadowOffset
1617 return (Vector2)GetValue(ShadowOffsetProperty);
1621 SetValue(ShadowOffsetProperty, value);
1622 NotifyPropertyChanged();
1627 /// The ShadowColor property.
1629 /// <since_tizen> 3 </since_tizen>
1630 public Vector4 ShadowColor
1634 return (Vector4)GetValue(ShadowColorProperty);
1638 SetValue(ShadowColorProperty, value);
1639 NotifyPropertyChanged();
1644 /// The PrimaryCursorColor property.
1646 /// <since_tizen> 3 </since_tizen>
1647 public Vector4 PrimaryCursorColor
1651 return (Vector4)GetValue(PrimaryCursorColorProperty);
1655 SetValue(PrimaryCursorColorProperty, value);
1656 NotifyPropertyChanged();
1661 /// The SecondaryCursorColor property.
1663 /// <since_tizen> 3 </since_tizen>
1664 public Vector4 SecondaryCursorColor
1668 return (Vector4)GetValue(SecondaryCursorColorProperty);
1672 SetValue(SecondaryCursorColorProperty, value);
1673 NotifyPropertyChanged();
1678 /// The EnableCursorBlink property.
1680 /// <since_tizen> 3 </since_tizen>
1681 public bool EnableCursorBlink
1685 return (bool)GetValue(EnableCursorBlinkProperty);
1689 SetValue(EnableCursorBlinkProperty, value);
1690 NotifyPropertyChanged();
1695 /// The CursorBlinkInterval property.
1697 /// <since_tizen> 3 </since_tizen>
1698 public float CursorBlinkInterval
1702 return (float)GetValue(CursorBlinkIntervalProperty);
1706 SetValue(CursorBlinkIntervalProperty, value);
1707 NotifyPropertyChanged();
1712 /// The CursorBlinkDuration property.
1714 /// <since_tizen> 3 </since_tizen>
1715 public float CursorBlinkDuration
1719 return (float)GetValue(CursorBlinkDurationProperty);
1723 SetValue(CursorBlinkDurationProperty, value);
1724 NotifyPropertyChanged();
1729 /// The CursorWidth property.
1731 /// <since_tizen> 3 </since_tizen>
1732 public int CursorWidth
1736 return (int)GetValue(CursorWidthProperty);
1740 SetValue(CursorWidthProperty, value);
1741 NotifyPropertyChanged();
1746 /// The GrabHandleImage property.
1748 /// <since_tizen> 3 </since_tizen>
1749 public string GrabHandleImage
1753 return (string)GetValue(GrabHandleImageProperty);
1757 SetValue(GrabHandleImageProperty, value);
1758 NotifyPropertyChanged();
1763 /// The GrabHandlePressedImage property.
1765 /// <since_tizen> 3 </since_tizen>
1766 public string GrabHandlePressedImage
1770 return (string)GetValue(GrabHandlePressedImageProperty);
1774 SetValue(GrabHandlePressedImageProperty, value);
1775 NotifyPropertyChanged();
1780 /// The ScrollThreshold property.
1782 /// <since_tizen> 3 </since_tizen>
1783 public float ScrollThreshold
1787 return (float)GetValue(ScrollThresholdProperty);
1791 SetValue(ScrollThresholdProperty, value);
1792 NotifyPropertyChanged();
1797 /// The ScrollSpeed property.
1799 /// <since_tizen> 3 </since_tizen>
1800 public float ScrollSpeed
1804 return (float)GetValue(ScrollSpeedProperty);
1808 SetValue(ScrollSpeedProperty, value);
1809 NotifyPropertyChanged();
1814 /// The SelectionHandleImageLeft property.
1816 /// <since_tizen> 3 </since_tizen>
1817 public PropertyMap SelectionHandleImageLeft
1821 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1825 SetValue(SelectionHandleImageLeftProperty, value);
1826 NotifyPropertyChanged();
1831 /// The SelectionHandleImageRight property.
1833 /// <since_tizen> 3 </since_tizen>
1834 public PropertyMap SelectionHandleImageRight
1838 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1842 SetValue(SelectionHandleImageRightProperty, value);
1843 NotifyPropertyChanged();
1848 /// The SelectionHandlePressedImageLeft property.
1850 /// <since_tizen> 3 </since_tizen>
1851 public PropertyMap SelectionHandlePressedImageLeft
1855 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1859 SetValue(SelectionHandlePressedImageLeftProperty, value);
1860 NotifyPropertyChanged();
1865 /// The SelectionHandlePressedImageRight property.
1867 /// <since_tizen> 3 </since_tizen>
1868 public PropertyMap SelectionHandlePressedImageRight
1872 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1876 SetValue(SelectionHandlePressedImageRightProperty, value);
1877 NotifyPropertyChanged();
1882 /// The SelectionHandleMarkerImageLeft property.
1884 /// <since_tizen> 3 </since_tizen>
1885 public PropertyMap SelectionHandleMarkerImageLeft
1889 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1893 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1894 NotifyPropertyChanged();
1899 /// The SelectionHandleMarkerImageRight property.
1901 /// <since_tizen> 3 </since_tizen>
1902 public PropertyMap SelectionHandleMarkerImageRight
1906 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1910 SetValue(SelectionHandleMarkerImageRightProperty, value);
1911 NotifyPropertyChanged();
1916 /// The SelectionHighlightColor property.
1918 /// <since_tizen> 3 </since_tizen>
1919 public Vector4 SelectionHighlightColor
1923 return (Vector4)GetValue(SelectionHighlightColorProperty);
1927 SetValue(SelectionHighlightColorProperty, value);
1928 NotifyPropertyChanged();
1933 /// The DecorationBoundingBox property.
1935 /// <since_tizen> 3 </since_tizen>
1936 public Rectangle DecorationBoundingBox
1940 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1944 SetValue(DecorationBoundingBoxProperty, value);
1945 NotifyPropertyChanged();
1950 /// The InputMethodSettings property.
1952 /// <since_tizen> 3 </since_tizen>
1953 public PropertyMap InputMethodSettings
1957 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1961 SetValue(InputMethodSettingsProperty, value);
1962 NotifyPropertyChanged();
1967 /// The InputColor property.
1969 /// <since_tizen> 3 </since_tizen>
1970 public Vector4 InputColor
1974 return (Vector4)GetValue(InputColorProperty);
1978 SetValue(InputColorProperty, value);
1979 NotifyPropertyChanged();
1984 /// The EnableMarkup property.
1986 /// <since_tizen> 3 </since_tizen>
1987 public bool EnableMarkup
1991 return (bool)GetValue(EnableMarkupProperty);
1995 SetValue(EnableMarkupProperty, value);
1996 NotifyPropertyChanged();
2001 /// The InputFontFamily property.
2003 /// <since_tizen> 3 </since_tizen>
2004 public string InputFontFamily
2008 return (string)GetValue(InputFontFamilyProperty);
2012 SetValue(InputFontFamilyProperty, value);
2013 NotifyPropertyChanged();
2018 /// The InputFontStyle property.
2020 /// <since_tizen> 3 </since_tizen>
2021 public PropertyMap InputFontStyle
2025 return (PropertyMap)GetValue(InputFontStyleProperty);
2029 SetValue(InputFontStyleProperty, value);
2030 NotifyPropertyChanged();
2035 /// The InputPointSize property.
2037 /// <since_tizen> 3 </since_tizen>
2038 public float InputPointSize
2042 return (float)GetValue(InputPointSizeProperty);
2046 SetValue(InputPointSizeProperty, value);
2047 NotifyPropertyChanged();
2052 /// The Underline property.
2054 /// <since_tizen> 3 </since_tizen>
2055 public PropertyMap Underline
2059 return (PropertyMap)GetValue(UnderlineProperty);
2063 SetValue(UnderlineProperty, value);
2064 NotifyPropertyChanged();
2069 /// The InputUnderline property.
2071 /// <since_tizen> 3 </since_tizen>
2072 public string InputUnderline
2076 return (string)GetValue(InputUnderlineProperty);
2080 SetValue(InputUnderlineProperty, value);
2081 NotifyPropertyChanged();
2086 /// The Shadow property.
2088 /// <since_tizen> 3 </since_tizen>
2089 public PropertyMap Shadow
2093 return (PropertyMap)GetValue(ShadowProperty);
2097 SetValue(ShadowProperty, value);
2098 NotifyPropertyChanged();
2103 /// The InputShadow property.
2105 /// <since_tizen> 3 </since_tizen>
2106 public string InputShadow
2110 return (string)GetValue(InputShadowProperty);
2114 SetValue(InputShadowProperty, value);
2115 NotifyPropertyChanged();
2120 /// The Emboss property.
2122 /// <since_tizen> 3 </since_tizen>
2123 public string Emboss
2127 return (string)GetValue(EmbossProperty);
2131 SetValue(EmbossProperty, value);
2132 NotifyPropertyChanged();
2137 /// The InputEmboss property.
2139 /// <since_tizen> 3 </since_tizen>
2140 public string InputEmboss
2144 return (string)GetValue(InputEmbossProperty);
2148 SetValue(InputEmbossProperty, value);
2149 NotifyPropertyChanged();
2154 /// The Outline property.
2156 /// <since_tizen> 3 </since_tizen>
2157 public PropertyMap Outline
2161 return (PropertyMap)GetValue(OutlineProperty);
2165 SetValue(OutlineProperty, value);
2166 NotifyPropertyChanged();
2171 /// The InputOutline property.
2173 /// <since_tizen> 3 </since_tizen>
2174 public string InputOutline
2178 return (string)GetValue(InputOutlineProperty);
2182 SetValue(InputOutlineProperty, value);
2183 NotifyPropertyChanged();
2188 /// The HiddenInputSettings property.
2190 /// <since_tizen> 3 </since_tizen>
2191 public Tizen.NUI.PropertyMap HiddenInputSettings
2195 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
2199 SetValue(HiddenInputSettingsProperty, value);
2200 NotifyPropertyChanged();
2205 /// The PixelSize property.
2207 /// <since_tizen> 3 </since_tizen>
2208 public float PixelSize
2212 return (float)GetValue(PixelSizeProperty);
2216 SetValue(PixelSizeProperty, value);
2217 NotifyPropertyChanged();
2222 /// The Enable selection property.
2224 /// <since_tizen> 3 </since_tizen>
2225 public bool EnableSelection
2229 return (bool)GetValue(EnableSelectionProperty);
2233 SetValue(EnableSelectionProperty, value);
2234 NotifyPropertyChanged();
2239 /// The Placeholder property.
2240 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2243 /// The following example demonstrates how to set the Placeholder property.
2245 /// PropertyMap propertyMap = new PropertyMap();
2246 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2247 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2248 /// propertyMap.Add("color", new PropertyValue(Color.Red));
2249 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2250 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2252 /// PropertyMap fontStyleMap = new PropertyMap();
2253 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2254 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2255 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2256 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2258 /// TextField field = new TextField();
2259 /// field.Placeholder = propertyMap;
2262 /// <since_tizen> 3 </since_tizen>
2263 public Tizen.NUI.PropertyMap Placeholder
2267 return (PropertyMap)GetValue(PlaceholderProperty);
2271 SetValue(PlaceholderProperty, value);
2272 NotifyPropertyChanged();
2277 /// The Ellipsis property.<br />
2278 /// Enable or disable the ellipsis.<br />
2279 /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2281 /// <since_tizen> 4 </since_tizen>
2282 public bool Ellipsis
2286 return (bool)GetValue(EllipsisProperty);
2290 SetValue(EllipsisProperty, value);
2291 NotifyPropertyChanged();
2296 /// Enables selection of the text using the Shift key.
2298 /// <since_tizen> 5 </since_tizen>
2299 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2300 [EditorBrowsable(EditorBrowsableState.Never)]
2301 public bool EnableShiftSelection
2305 return (bool)GetValue(EnableShiftSelectionProperty);
2309 SetValue(EnableShiftSelectionProperty, value);
2310 NotifyPropertyChanged();