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 [ContentProperty("Text")]
33 public class TextField : View
35 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
36 [EditorBrowsable(EditorBrowsableState.Never)]
37 public static readonly BindableProperty TextProperty = BindableProperty.Create("Text", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
39 var textField = (TextField)bindable;
42 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT, new Tizen.NUI.PropertyValue((string)newValue));
45 defaultValueCreator:(bindable) =>
47 var textField = (TextField)bindable;
49 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.TEXT).Get(out temp);
52 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
53 [EditorBrowsable(EditorBrowsableState.Never)]
54 public static readonly BindableProperty PlaceholderTextProperty = BindableProperty.Create("PlaceholderText", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
56 var textField = (TextField)bindable;
59 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT, new Tizen.NUI.PropertyValue((string)newValue));
62 defaultValueCreator:(bindable) =>
64 var textField = (TextField)bindable;
66 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT).Get(out temp);
69 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
70 [EditorBrowsable(EditorBrowsableState.Never)]
71 public static readonly BindableProperty PlaceholderTextFocusedProperty = BindableProperty.Create("PlaceholderTextFocused", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
73 var textField = (TextField)bindable;
76 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_FOCUSED, new Tizen.NUI.PropertyValue((string)newValue));
79 defaultValueCreator:(bindable) =>
81 var textField = (TextField)bindable;
83 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_FOCUSED).Get(out temp);
86 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
87 [EditorBrowsable(EditorBrowsableState.Never)]
88 public static readonly BindableProperty FontFamilyProperty = BindableProperty.Create("FontFamily", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
90 var textField = (TextField)bindable;
93 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
96 defaultValueCreator:(bindable) =>
98 var textField = (TextField)bindable;
100 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.FONT_FAMILY).Get(out temp);
103 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
104 [EditorBrowsable(EditorBrowsableState.Never)]
105 public static readonly BindableProperty FontStyleProperty = BindableProperty.Create("FontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
107 var textField = (TextField)bindable;
108 if (newValue != null)
110 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
113 defaultValueCreator:(bindable) =>
115 var textField = (TextField)bindable;
116 PropertyMap temp = new PropertyMap();
117 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.FONT_STYLE).Get(temp);
120 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
121 [EditorBrowsable(EditorBrowsableState.Never)]
122 public static readonly BindableProperty PointSizeProperty = BindableProperty.Create("PointSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
124 var textField = (TextField)bindable;
125 if (newValue != null)
127 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
130 defaultValueCreator:(bindable) =>
132 var textField = (TextField)bindable;
134 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.POINT_SIZE).Get(out temp);
137 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
138 [EditorBrowsable(EditorBrowsableState.Never)]
139 public static readonly BindableProperty MaxLengthProperty = BindableProperty.Create("MaxLength", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
141 var textField = (TextField)bindable;
142 if (newValue != null)
144 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.MAX_LENGTH, new Tizen.NUI.PropertyValue((int)newValue));
147 defaultValueCreator:(bindable) =>
149 var textField = (TextField)bindable;
151 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.MAX_LENGTH).Get(out temp);
154 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
155 [EditorBrowsable(EditorBrowsableState.Never)]
156 public static readonly BindableProperty ExceedPolicyProperty = BindableProperty.Create("ExceedPolicy", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
158 var textField = (TextField)bindable;
159 if (newValue != null)
161 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EXCEED_POLICY, new Tizen.NUI.PropertyValue((int)newValue));
164 defaultValueCreator:(bindable) =>
166 var textField = (TextField)bindable;
168 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EXCEED_POLICY).Get(out temp);
171 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
172 [EditorBrowsable(EditorBrowsableState.Never)]
173 public static readonly BindableProperty HorizontalAlignmentProperty = BindableProperty.Create("HorizontalAlignment", typeof(HorizontalAlignment), typeof(TextField), HorizontalAlignment.Begin, propertyChanged: (bindable, oldValue, newValue) =>
175 var textField = (TextField)bindable;
176 string valueToString = "";
177 if (newValue != null)
179 switch ((HorizontalAlignment)newValue)
181 case HorizontalAlignment.Begin:
183 valueToString = "BEGIN";
186 case HorizontalAlignment.Center:
188 valueToString = "CENTER";
191 case HorizontalAlignment.End:
193 valueToString = "END";
198 valueToString = "BEGIN";
202 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
205 defaultValueCreator:(bindable) =>
207 var textField = (TextField)bindable;
209 if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HORIZONTAL_ALIGNMENT).Get(out temp) == false)
211 NUILog.Error("HorizontalAlignment get error!");
216 case "BEGIN": return HorizontalAlignment.Begin;
217 case "CENTER": return HorizontalAlignment.Center;
218 case "END": return HorizontalAlignment.End;
219 default: return HorizontalAlignment.Begin;
222 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
223 [EditorBrowsable(EditorBrowsableState.Never)]
224 public static readonly BindableProperty VerticalAlignmentProperty = BindableProperty.Create("VerticalAlignment", typeof(VerticalAlignment), typeof(TextField), VerticalAlignment.Bottom, propertyChanged: (bindable, oldValue, newValue) =>
226 var textField = (TextField)bindable;
227 string valueToString = "";
228 if (newValue != null)
230 switch ((VerticalAlignment)newValue)
232 case VerticalAlignment.Top: { valueToString = "TOP"; break; }
233 case VerticalAlignment.Center: { valueToString = "CENTER"; break; }
234 case VerticalAlignment.Bottom: { valueToString = "BOTTOM"; break; }
235 default: { valueToString = "BOTTOM"; break; }
237 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT, new Tizen.NUI.PropertyValue((int)newValue));
240 defaultValueCreator:(bindable) =>
242 var textField = (TextField)bindable;
244 if (Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.VERTICAL_ALIGNMENT).Get(out temp) == false)
246 NUILog.Error("VerticalAlignment get error!");
251 case "TOP": return VerticalAlignment.Top;
252 case "CENTER": return VerticalAlignment.Center;
253 case "BOTTOM": return VerticalAlignment.Bottom;
254 default: return VerticalAlignment.Bottom;
257 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
258 [EditorBrowsable(EditorBrowsableState.Never)]
259 public static readonly BindableProperty TextColorProperty = BindableProperty.Create("TextColor", typeof(Color), typeof(TextField), Color.Transparent, propertyChanged: (bindable, oldValue, newValue) =>
261 var textField = (TextField)bindable;
262 if (newValue != null)
264 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR, new Tizen.NUI.PropertyValue((Color)newValue));
267 defaultValueCreator:(bindable) =>
269 var textField = (TextField)bindable;
270 Color temp = new Color(0.0f, 0.0f, 0.0f, 0.0f);
271 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.TEXT_COLOR).Get(temp);
274 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
275 [EditorBrowsable(EditorBrowsableState.Never)]
276 public static readonly BindableProperty PlaceholderTextColorProperty = BindableProperty.Create("PlaceholderTextColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
278 var textField = (TextField)bindable;
279 if (newValue != null)
281 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
284 defaultValueCreator:(bindable) =>
286 var textField = (TextField)bindable;
287 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
288 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER_TEXT_COLOR).Get(temp);
291 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
292 [EditorBrowsable(EditorBrowsableState.Never)]
293 public static readonly BindableProperty ShadowOffsetProperty = BindableProperty.Create("ShadowOffset", typeof(Vector2), typeof(TextField), Vector2.Zero, propertyChanged: (bindable, oldValue, newValue) =>
295 var textField = (TextField)bindable;
296 if (newValue != null)
298 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET, new Tizen.NUI.PropertyValue((Vector2)newValue));
301 defaultValueCreator:(bindable) =>
303 var textField = (TextField)bindable;
304 Vector2 temp = new Vector2(0.0f, 0.0f);
305 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_OFFSET).Get(temp);
308 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
309 [EditorBrowsable(EditorBrowsableState.Never)]
310 public static readonly BindableProperty ShadowColorProperty = BindableProperty.Create("ShadowColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
312 var textField = (TextField)bindable;
313 if (newValue != null)
315 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
318 defaultValueCreator:(bindable) =>
320 var textField = (TextField)bindable;
321 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
322 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW_COLOR).Get(temp);
325 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
326 [EditorBrowsable(EditorBrowsableState.Never)]
327 public static readonly BindableProperty PrimaryCursorColorProperty = BindableProperty.Create("PrimaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
329 var textField = (TextField)bindable;
330 if (newValue != null)
332 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
335 defaultValueCreator:(bindable) =>
337 var textField = (TextField)bindable;
338 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
339 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PRIMARY_CURSOR_COLOR).Get(temp);
342 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
343 [EditorBrowsable(EditorBrowsableState.Never)]
344 public static readonly BindableProperty SecondaryCursorColorProperty = BindableProperty.Create("SecondaryCursorColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
346 var textField = (TextField)bindable;
347 if (newValue != null)
349 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
352 defaultValueCreator:(bindable) =>
354 var textField = (TextField)bindable;
355 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
356 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SECONDARY_CURSOR_COLOR).Get(temp);
359 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
360 [EditorBrowsable(EditorBrowsableState.Never)]
361 public static readonly BindableProperty EnableCursorBlinkProperty = BindableProperty.Create("EnableCursorBlink", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
363 var textField = (TextField)bindable;
364 if (newValue != null)
366 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK, new Tizen.NUI.PropertyValue((bool)newValue));
369 defaultValueCreator:(bindable) =>
371 var textField = (TextField)bindable;
373 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_CURSOR_BLINK).Get(out temp);
376 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
377 [EditorBrowsable(EditorBrowsableState.Never)]
378 public static readonly BindableProperty CursorBlinkIntervalProperty = BindableProperty.Create("CursorBlinkInterval", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
380 var textField = (TextField)bindable;
381 if (newValue != null)
383 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL, new Tizen.NUI.PropertyValue((float)newValue));
386 defaultValueCreator:(bindable) =>
388 var textField = (TextField)bindable;
390 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_INTERVAL).Get(out temp);
393 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
394 [EditorBrowsable(EditorBrowsableState.Never)]
395 public static readonly BindableProperty CursorBlinkDurationProperty = BindableProperty.Create("CursorBlinkDuration", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
397 var textField = (TextField)bindable;
398 if (newValue != null)
400 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION, new Tizen.NUI.PropertyValue((float)newValue));
403 defaultValueCreator:(bindable) =>
405 var textField = (TextField)bindable;
407 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_BLINK_DURATION).Get(out temp);
410 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
411 [EditorBrowsable(EditorBrowsableState.Never)]
412 public static readonly BindableProperty CursorWidthProperty = BindableProperty.Create("CursorWidth", typeof(int), typeof(TextField), default(int), propertyChanged: (bindable, oldValue, newValue) =>
414 var textField = (TextField)bindable;
415 if (newValue != null)
417 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH, new Tizen.NUI.PropertyValue((int)newValue));
420 defaultValueCreator:(bindable) =>
422 var textField = (TextField)bindable;
424 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.CURSOR_WIDTH).Get(out temp);
427 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
428 [EditorBrowsable(EditorBrowsableState.Never)]
429 public static readonly BindableProperty GrabHandleImageProperty = BindableProperty.Create("GrabHandleImage", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
431 var textField = (TextField)bindable;
432 if (newValue != null)
434 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
437 defaultValueCreator:(bindable) =>
439 var textField = (TextField)bindable;
441 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_IMAGE).Get(out temp);
444 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
445 [EditorBrowsable(EditorBrowsableState.Never)]
446 public static readonly BindableProperty GrabHandlePressedImageProperty = BindableProperty.Create("GrabHandlePressedImage", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
448 var textField = (TextField)bindable;
449 if (newValue != null)
451 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE, new Tizen.NUI.PropertyValue((string)newValue));
454 defaultValueCreator:(bindable) =>
456 var textField = (TextField)bindable;
458 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.GRAB_HANDLE_PRESSED_IMAGE).Get(out temp);
461 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
462 [EditorBrowsable(EditorBrowsableState.Never)]
463 public static readonly BindableProperty ScrollThresholdProperty = BindableProperty.Create("ScrollThreshold", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
465 var textField = (TextField)bindable;
466 if (newValue != null)
468 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD, new Tizen.NUI.PropertyValue((float)newValue));
471 defaultValueCreator:(bindable) =>
473 var textField = (TextField)bindable;
475 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_THRESHOLD).Get(out temp);
478 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
479 [EditorBrowsable(EditorBrowsableState.Never)]
480 public static readonly BindableProperty ScrollSpeedProperty = BindableProperty.Create("ScrollSpeed", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
482 var textField = (TextField)bindable;
483 if (newValue != null)
485 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED, new Tizen.NUI.PropertyValue((float)newValue));
488 defaultValueCreator:(bindable) =>
490 var textField = (TextField)bindable;
492 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SCROLL_SPEED).Get(out temp);
495 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
496 [EditorBrowsable(EditorBrowsableState.Never)]
497 public static readonly BindableProperty SelectionHandleImageLeftProperty = BindableProperty.Create("SelectionHandleImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
499 var textField = (TextField)bindable;
500 if (newValue != null)
502 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
505 defaultValueCreator:(bindable) =>
507 var textField = (TextField)bindable;
508 PropertyMap temp = new PropertyMap();
509 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_LEFT).Get(temp);
512 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
513 [EditorBrowsable(EditorBrowsableState.Never)]
514 public static readonly BindableProperty SelectionHandleImageRightProperty = BindableProperty.Create("SelectionHandleImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
516 var textField = (TextField)bindable;
517 if (newValue != null)
519 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
522 defaultValueCreator:(bindable) =>
524 var textField = (TextField)bindable;
525 PropertyMap temp = new PropertyMap();
526 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_IMAGE_RIGHT).Get(temp);
529 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
530 [EditorBrowsable(EditorBrowsableState.Never)]
531 public static readonly BindableProperty SelectionHandlePressedImageLeftProperty = BindableProperty.Create("SelectionHandlePressedImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
533 var textField = (TextField)bindable;
534 if (newValue != null)
536 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
539 defaultValueCreator:(bindable) =>
541 var textField = (TextField)bindable;
542 PropertyMap temp = new PropertyMap();
543 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_LEFT).Get(temp);
546 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
547 [EditorBrowsable(EditorBrowsableState.Never)]
548 public static readonly BindableProperty SelectionHandlePressedImageRightProperty = BindableProperty.Create("SelectionHandlePressedImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
550 var textField = (TextField)bindable;
551 if (newValue != null)
553 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
556 defaultValueCreator:(bindable) =>
558 var textField = (TextField)bindable;
559 PropertyMap temp = new PropertyMap();
560 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_PRESSED_IMAGE_RIGHT).Get(temp);
563 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
564 [EditorBrowsable(EditorBrowsableState.Never)]
565 public static readonly BindableProperty SelectionHandleMarkerImageLeftProperty = BindableProperty.Create("SelectionHandleMarkerImageLeft", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
567 var textField = (TextField)bindable;
568 if (newValue != null)
570 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
573 defaultValueCreator:(bindable) =>
575 var textField = (TextField)bindable;
576 PropertyMap temp = new PropertyMap();
577 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_LEFT).Get(temp);
580 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
581 [EditorBrowsable(EditorBrowsableState.Never)]
582 public static readonly BindableProperty SelectionHandleMarkerImageRightProperty = BindableProperty.Create("SelectionHandleMarkerImageRight", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
584 var textField = (TextField)bindable;
585 if (newValue != null)
587 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
590 defaultValueCreator:(bindable) =>
592 var textField = (TextField)bindable;
593 PropertyMap temp = new PropertyMap();
594 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HANDLE_MARKER_IMAGE_RIGHT).Get(temp);
597 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
598 [EditorBrowsable(EditorBrowsableState.Never)]
599 public static readonly BindableProperty SelectionHighlightColorProperty = BindableProperty.Create("SelectionHighlightColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
601 var textField = (TextField)bindable;
602 if (newValue != null)
604 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
607 defaultValueCreator:(bindable) =>
609 var textField = (TextField)bindable;
610 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
611 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SELECTION_HIGHLIGHT_COLOR).Get(temp);
614 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
615 [EditorBrowsable(EditorBrowsableState.Never)]
616 public static readonly BindableProperty DecorationBoundingBoxProperty = BindableProperty.Create("DecorationBoundingBox", typeof(Rectangle), typeof(TextField), new Rectangle(0,0,0,0), propertyChanged: (bindable, oldValue, newValue) =>
618 var textField = (TextField)bindable;
619 if (newValue != null)
621 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX, new Tizen.NUI.PropertyValue((Rectangle)newValue));
624 defaultValueCreator:(bindable) =>
626 var textField = (TextField)bindable;
627 Rectangle temp = new Rectangle(0, 0, 0, 0);
628 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.DECORATION_BOUNDING_BOX).Get(temp);
631 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
632 [EditorBrowsable(EditorBrowsableState.Never)]
633 public static readonly BindableProperty InputMethodSettingsProperty = BindableProperty.Create("InputMethodSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
635 var textField = (TextField)bindable;
636 if (newValue != null)
638 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
641 defaultValueCreator:(bindable) =>
643 var textField = (TextField)bindable;
644 PropertyMap temp = new PropertyMap();
645 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_METHOD_SETTINGS).Get(temp);
648 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
649 [EditorBrowsable(EditorBrowsableState.Never)]
650 public static readonly BindableProperty InputColorProperty = BindableProperty.Create("InputColor", typeof(Vector4), typeof(TextField), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) =>
652 var textField = (TextField)bindable;
653 if (newValue != null)
655 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue));
658 defaultValueCreator:(bindable) =>
660 var textField = (TextField)bindable;
661 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
662 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_COLOR).Get(temp);
665 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
666 [EditorBrowsable(EditorBrowsableState.Never)]
667 public static readonly BindableProperty EnableMarkupProperty = BindableProperty.Create("EnableMarkup", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
669 var textField = (TextField)bindable;
670 if (newValue != null)
672 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP, new Tizen.NUI.PropertyValue((bool)newValue));
675 defaultValueCreator:(bindable) =>
677 var textField = (TextField)bindable;
679 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_MARKUP).Get(out temp);
682 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
683 [EditorBrowsable(EditorBrowsableState.Never)]
684 public static readonly BindableProperty InputFontFamilyProperty = BindableProperty.Create("InputFontFamily", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
686 var textField = (TextField)bindable;
687 if (newValue != null)
689 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY, new Tizen.NUI.PropertyValue((string)newValue));
692 defaultValueCreator:(bindable) =>
694 var textField = (TextField)bindable;
696 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_FAMILY).Get(out temp);
699 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
700 [EditorBrowsable(EditorBrowsableState.Never)]
701 public static readonly BindableProperty InputFontStyleProperty = BindableProperty.Create("InputFontStyle", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
703 var textField = (TextField)bindable;
704 if (newValue != null)
706 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
709 defaultValueCreator:(bindable) =>
711 var textField = (TextField)bindable;
712 PropertyMap temp = new PropertyMap();
713 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_FONT_STYLE).Get(temp);
716 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
717 [EditorBrowsable(EditorBrowsableState.Never)]
718 public static readonly BindableProperty InputPointSizeProperty = BindableProperty.Create("InputPointSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
720 var textField = (TextField)bindable;
721 if (newValue != null)
723 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
726 defaultValueCreator:(bindable) =>
728 var textField = (TextField)bindable;
730 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_POINT_SIZE).Get(out temp);
733 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
734 [EditorBrowsable(EditorBrowsableState.Never)]
735 public static readonly BindableProperty UnderlineProperty = BindableProperty.Create("Underline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
737 var textField = (TextField)bindable;
738 if (newValue != null)
740 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.UNDERLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
743 defaultValueCreator:(bindable) =>
745 var textField = (TextField)bindable;
746 PropertyMap temp = new PropertyMap();
747 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.UNDERLINE).Get(temp);
750 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
751 [EditorBrowsable(EditorBrowsableState.Never)]
752 public static readonly BindableProperty InputUnderlineProperty = BindableProperty.Create("InputUnderline", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
754 var textField = (TextField)bindable;
755 if (newValue != null)
757 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE, new Tizen.NUI.PropertyValue((string)newValue));
760 defaultValueCreator:(bindable) =>
762 var textField = (TextField)bindable;
764 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_UNDERLINE).Get(out temp);
767 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
768 [EditorBrowsable(EditorBrowsableState.Never)]
769 public static readonly BindableProperty ShadowProperty = BindableProperty.Create("Shadow", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
771 var textField = (TextField)bindable;
772 if (newValue != null)
774 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.SHADOW, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
777 defaultValueCreator:(bindable) =>
779 var textField = (TextField)bindable;
780 PropertyMap temp = new PropertyMap();
781 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.SHADOW).Get(temp);
784 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
785 [EditorBrowsable(EditorBrowsableState.Never)]
786 public static readonly BindableProperty InputShadowProperty = BindableProperty.Create("InputShadow", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
788 var textField = (TextField)bindable;
789 if (newValue != null)
791 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW, new Tizen.NUI.PropertyValue((string)newValue));
794 defaultValueCreator:(bindable) =>
796 var textField = (TextField)bindable;
798 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_SHADOW).Get(out temp);
801 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
802 [EditorBrowsable(EditorBrowsableState.Never)]
803 public static readonly BindableProperty EmbossProperty = BindableProperty.Create("Emboss", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
805 var textField = (TextField)bindable;
806 if (newValue != null)
808 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
811 defaultValueCreator:(bindable) =>
813 var textField = (TextField)bindable;
815 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.EMBOSS).Get(out temp);
818 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
819 [EditorBrowsable(EditorBrowsableState.Never)]
820 public static readonly BindableProperty InputEmbossProperty = BindableProperty.Create("InputEmboss", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
822 var textField = (TextField)bindable;
823 if (newValue != null)
825 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS, new Tizen.NUI.PropertyValue((string)newValue));
828 defaultValueCreator:(bindable) =>
830 var textField = (TextField)bindable;
832 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_EMBOSS).Get(out temp);
835 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
836 [EditorBrowsable(EditorBrowsableState.Never)]
837 public static readonly BindableProperty OutlineProperty = BindableProperty.Create("Outline", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
839 var textField = (TextField)bindable;
840 if (newValue != null)
842 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.OUTLINE, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
845 defaultValueCreator:(bindable) =>
847 var textField = (TextField)bindable;
848 PropertyMap temp = new PropertyMap();
849 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.OUTLINE).Get(temp);
852 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
853 [EditorBrowsable(EditorBrowsableState.Never)]
854 public static readonly BindableProperty InputOutlineProperty = BindableProperty.Create("InputOutline", typeof(string), typeof(TextField), string.Empty, propertyChanged: (bindable, oldValue, newValue) =>
856 var textField = (TextField)bindable;
857 if (newValue != null)
859 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE, new Tizen.NUI.PropertyValue((string)newValue));
862 defaultValueCreator:(bindable) =>
864 var textField = (TextField)bindable;
866 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.INPUT_OUTLINE).Get(out temp);
869 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
870 [EditorBrowsable(EditorBrowsableState.Never)]
871 public static readonly BindableProperty HiddenInputSettingsProperty = BindableProperty.Create("HiddenInputSettings", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
873 var textField = (TextField)bindable;
874 if (newValue != null)
876 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
879 defaultValueCreator:(bindable) =>
881 var textField = (TextField)bindable;
882 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
883 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.HIDDEN_INPUT_SETTINGS).Get(temp);
886 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
887 [EditorBrowsable(EditorBrowsableState.Never)]
888 public static readonly BindableProperty PixelSizeProperty = BindableProperty.Create("PixelSize", typeof(float), typeof(TextField), default(float), propertyChanged: (bindable, oldValue, newValue) =>
890 var textField = (TextField)bindable;
891 if (newValue != null)
893 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE, new Tizen.NUI.PropertyValue((float)newValue));
896 defaultValueCreator:(bindable) =>
898 var textField = (TextField)bindable;
900 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PIXEL_SIZE).Get(out temp);
903 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
904 [EditorBrowsable(EditorBrowsableState.Never)]
905 public static readonly BindableProperty EnableSelectionProperty = BindableProperty.Create("EnableSelection", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
907 var textField = (TextField)bindable;
908 if (newValue != null)
910 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
913 defaultValueCreator:(bindable) =>
915 var textField = (TextField)bindable;
917 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SELECTION).Get(out temp);
920 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
921 [EditorBrowsable(EditorBrowsableState.Never)]
922 public static readonly BindableProperty PlaceholderProperty = BindableProperty.Create("Placeholder", typeof(PropertyMap), typeof(TextField), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) =>
924 var textField = (TextField)bindable;
925 if (newValue != null)
927 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER, new Tizen.NUI.PropertyValue((PropertyMap)newValue));
930 defaultValueCreator:(bindable) =>
932 var textField = (TextField)bindable;
933 Tizen.NUI.PropertyMap temp = new Tizen.NUI.PropertyMap();
934 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.PLACEHOLDER).Get(temp);
937 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
938 [EditorBrowsable(EditorBrowsableState.Never)]
939 public static readonly BindableProperty EllipsisProperty = BindableProperty.Create("Ellipsis", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
941 var textField = (TextField)bindable;
942 if (newValue != null)
944 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS, new Tizen.NUI.PropertyValue((bool)newValue));
947 defaultValueCreator:(bindable) =>
949 var textField = (TextField)bindable;
951 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ELLIPSIS).Get(out temp);
954 /// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
955 [EditorBrowsable(EditorBrowsableState.Never)]
956 public static readonly BindableProperty EnableShiftSelectionProperty = BindableProperty.Create("EnableShiftSelection", typeof(bool), typeof(TextField), false, propertyChanged: (bindable, oldValue, newValue) =>
958 var textField = (TextField)bindable;
959 if (newValue != null)
961 Tizen.NUI.Object.SetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION, new Tizen.NUI.PropertyValue((bool)newValue));
964 defaultValueCreator:(bindable) =>
966 var textField = (TextField)bindable;
968 Tizen.NUI.Object.GetProperty(textField.swigCPtr, TextField.Property.ENABLE_SHIFT_SELECTION).Get(out temp);
974 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
975 private string textFieldTextSid = null;
976 private string textFieldPlaceHolderTextSid = null;
977 private bool systemlangTextFlag = false;
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 NDalicPINVOKE.delete_TextField(swigCPtr);
1031 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
1038 /// The TextChanged event arguments.
1040 /// <since_tizen> 3 </since_tizen>
1041 public class TextChangedEventArgs : EventArgs
1043 private TextField _textField;
1048 /// <since_tizen> 3 </since_tizen>
1049 public TextField TextField
1063 /// The MaxLengthReached event arguments.
1065 /// <since_tizen> 3 </since_tizen>
1066 public class MaxLengthReachedEventArgs : EventArgs
1068 private TextField _textField;
1073 /// <since_tizen> 3 </since_tizen>
1074 public TextField TextField
1088 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1089 private delegate void TextChangedCallbackDelegate(IntPtr textField);
1090 private EventHandler<TextChangedEventArgs> _textFieldTextChangedEventHandler;
1091 private TextChangedCallbackDelegate _textFieldTextChangedCallbackDelegate;
1093 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
1094 private delegate void MaxLengthReachedCallbackDelegate(IntPtr textField);
1095 private EventHandler<MaxLengthReachedEventArgs> _textFieldMaxLengthReachedEventHandler;
1096 private MaxLengthReachedCallbackDelegate _textFieldMaxLengthReachedCallbackDelegate;
1099 /// The TextChanged event.
1101 /// <since_tizen> 3 </since_tizen>
1102 public event EventHandler<TextChangedEventArgs> TextChanged
1106 if (_textFieldTextChangedEventHandler == null)
1108 _textFieldTextChangedCallbackDelegate = (OnTextChanged);
1109 TextChangedSignal().Connect(_textFieldTextChangedCallbackDelegate);
1111 _textFieldTextChangedEventHandler += value;
1115 _textFieldTextChangedEventHandler -= value;
1116 if (_textFieldTextChangedEventHandler == null && TextChangedSignal().Empty() == false)
1118 TextChangedSignal().Disconnect(_textFieldTextChangedCallbackDelegate);
1123 private void OnTextChanged(IntPtr textField)
1125 TextChangedEventArgs e = new TextChangedEventArgs();
1127 // Populate all members of "e" (TextChangedEventArgs) with real data
1128 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1130 if (_textFieldTextChangedEventHandler != null)
1132 //here we send all data to user event handlers
1133 _textFieldTextChangedEventHandler(this, e);
1139 /// The MaxLengthReached event.
1141 /// <since_tizen> 3 </since_tizen>
1142 public event EventHandler<MaxLengthReachedEventArgs> MaxLengthReached
1146 if (_textFieldMaxLengthReachedEventHandler == null)
1148 _textFieldMaxLengthReachedCallbackDelegate = (OnMaxLengthReached);
1149 MaxLengthReachedSignal().Connect(_textFieldMaxLengthReachedCallbackDelegate);
1151 _textFieldMaxLengthReachedEventHandler += value;
1155 if (_textFieldMaxLengthReachedEventHandler == null && MaxLengthReachedSignal().Empty() == false)
1157 this.MaxLengthReachedSignal().Disconnect(_textFieldMaxLengthReachedCallbackDelegate);
1159 _textFieldMaxLengthReachedEventHandler -= value;
1163 private void OnMaxLengthReached(IntPtr textField)
1165 MaxLengthReachedEventArgs e = new MaxLengthReachedEventArgs();
1167 // Populate all members of "e" (MaxLengthReachedEventArgs) with real data
1168 e.TextField = Registry.GetManagedBaseHandleFromNativePtr(textField) as TextField;
1170 if (_textFieldMaxLengthReachedEventHandler != null)
1172 //here we send all data to user event handlers
1173 _textFieldMaxLengthReachedEventHandler(this, e);
1178 internal new class Property
1180 internal static readonly int RENDERING_BACKEND = NDalicPINVOKE.TextField_Property_RENDERING_BACKEND_get();
1181 internal static readonly int TEXT = NDalicPINVOKE.TextField_Property_TEXT_get();
1182 internal static readonly int PLACEHOLDER_TEXT = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_get();
1183 internal static readonly int PLACEHOLDER_TEXT_FOCUSED = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_FOCUSED_get();
1184 internal static readonly int FONT_FAMILY = NDalicPINVOKE.TextField_Property_FONT_FAMILY_get();
1185 internal static readonly int FONT_STYLE = NDalicPINVOKE.TextField_Property_FONT_STYLE_get();
1186 internal static readonly int POINT_SIZE = NDalicPINVOKE.TextField_Property_POINT_SIZE_get();
1187 internal static readonly int MAX_LENGTH = NDalicPINVOKE.TextField_Property_MAX_LENGTH_get();
1188 internal static readonly int EXCEED_POLICY = NDalicPINVOKE.TextField_Property_EXCEED_POLICY_get();
1189 internal static readonly int HORIZONTAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_HORIZONTAL_ALIGNMENT_get();
1190 internal static readonly int VERTICAL_ALIGNMENT = NDalicPINVOKE.TextField_Property_VERTICAL_ALIGNMENT_get();
1191 internal static readonly int TEXT_COLOR = NDalicPINVOKE.TextField_Property_TEXT_COLOR_get();
1192 internal static readonly int PLACEHOLDER_TEXT_COLOR = NDalicPINVOKE.TextField_Property_PLACEHOLDER_TEXT_COLOR_get();
1193 internal static readonly int SHADOW_OFFSET = NDalicPINVOKE.TextField_Property_SHADOW_OFFSET_get();
1194 internal static readonly int SHADOW_COLOR = NDalicPINVOKE.TextField_Property_SHADOW_COLOR_get();
1195 internal static readonly int PRIMARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_PRIMARY_CURSOR_COLOR_get();
1196 internal static readonly int SECONDARY_CURSOR_COLOR = NDalicPINVOKE.TextField_Property_SECONDARY_CURSOR_COLOR_get();
1197 internal static readonly int ENABLE_CURSOR_BLINK = NDalicPINVOKE.TextField_Property_ENABLE_CURSOR_BLINK_get();
1198 internal static readonly int CURSOR_BLINK_INTERVAL = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_INTERVAL_get();
1199 internal static readonly int CURSOR_BLINK_DURATION = NDalicPINVOKE.TextField_Property_CURSOR_BLINK_DURATION_get();
1200 internal static readonly int CURSOR_WIDTH = NDalicPINVOKE.TextField_Property_CURSOR_WIDTH_get();
1201 internal static readonly int GRAB_HANDLE_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_IMAGE_get();
1202 internal static readonly int GRAB_HANDLE_PRESSED_IMAGE = NDalicPINVOKE.TextField_Property_GRAB_HANDLE_PRESSED_IMAGE_get();
1203 internal static readonly int SCROLL_THRESHOLD = NDalicPINVOKE.TextField_Property_SCROLL_THRESHOLD_get();
1204 internal static readonly int SCROLL_SPEED = NDalicPINVOKE.TextField_Property_SCROLL_SPEED_get();
1205 internal static readonly int SELECTION_HANDLE_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_LEFT_get();
1206 internal static readonly int SELECTION_HANDLE_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_IMAGE_RIGHT_get();
1207 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_LEFT_get();
1208 internal static readonly int SELECTION_HANDLE_PRESSED_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_PRESSED_IMAGE_RIGHT_get();
1209 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_LEFT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_LEFT_get();
1210 internal static readonly int SELECTION_HANDLE_MARKER_IMAGE_RIGHT = NDalicPINVOKE.TextField_Property_SELECTION_HANDLE_MARKER_IMAGE_RIGHT_get();
1211 internal static readonly int SELECTION_HIGHLIGHT_COLOR = NDalicPINVOKE.TextField_Property_SELECTION_HIGHLIGHT_COLOR_get();
1212 internal static readonly int DECORATION_BOUNDING_BOX = NDalicPINVOKE.TextField_Property_DECORATION_BOUNDING_BOX_get();
1213 internal static readonly int INPUT_METHOD_SETTINGS = NDalicPINVOKE.TextField_Property_INPUT_METHOD_SETTINGS_get();
1214 internal static readonly int INPUT_COLOR = NDalicPINVOKE.TextField_Property_INPUT_COLOR_get();
1215 internal static readonly int ENABLE_MARKUP = NDalicPINVOKE.TextField_Property_ENABLE_MARKUP_get();
1216 internal static readonly int INPUT_FONT_FAMILY = NDalicPINVOKE.TextField_Property_INPUT_FONT_FAMILY_get();
1217 internal static readonly int INPUT_FONT_STYLE = NDalicPINVOKE.TextField_Property_INPUT_FONT_STYLE_get();
1218 internal static readonly int INPUT_POINT_SIZE = NDalicPINVOKE.TextField_Property_INPUT_POINT_SIZE_get();
1219 internal static readonly int UNDERLINE = NDalicPINVOKE.TextField_Property_UNDERLINE_get();
1220 internal static readonly int INPUT_UNDERLINE = NDalicPINVOKE.TextField_Property_INPUT_UNDERLINE_get();
1221 internal static readonly int SHADOW = NDalicPINVOKE.TextField_Property_SHADOW_get();
1222 internal static readonly int INPUT_SHADOW = NDalicPINVOKE.TextField_Property_INPUT_SHADOW_get();
1223 internal static readonly int EMBOSS = NDalicPINVOKE.TextField_Property_EMBOSS_get();
1224 internal static readonly int INPUT_EMBOSS = NDalicPINVOKE.TextField_Property_INPUT_EMBOSS_get();
1225 internal static readonly int OUTLINE = NDalicPINVOKE.TextField_Property_OUTLINE_get();
1226 internal static readonly int INPUT_OUTLINE = NDalicPINVOKE.TextField_Property_INPUT_OUTLINE_get();
1227 internal static readonly int HIDDEN_INPUT_SETTINGS = NDalicManualPINVOKE.TextField_Property_HIDDEN_INPUT_SETTINGS_get();
1228 internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextField_Property_PIXEL_SIZE_get();
1229 internal static readonly int ENABLE_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SELECTION_get();
1230 internal static readonly int PLACEHOLDER = NDalicManualPINVOKE.TextField_Property_PLACEHOLDER_get();
1231 internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextField_Property_ELLIPSIS_get();
1232 internal static readonly int ENABLE_SHIFT_SELECTION = NDalicManualPINVOKE.TextField_Property_ENABLE_SHIFT_SELECTION_get();
1235 internal class InputStyle
1241 FontFamily = 0x0002,
1253 /// Creates the TextField control.
1255 /// <since_tizen> 3 </since_tizen>
1256 public TextField() : this(NDalicPINVOKE.TextField_New(), true)
1258 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1259 this.TextChanged += (obj, e) => {
1260 this.Text = this.Text;
1264 internal TextField(TextField handle) : this(NDalicPINVOKE.new_TextField__SWIG_1(TextField.getCPtr(handle)), true)
1266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1270 /// Get the InputMethodContext instance.
1272 /// <returns>The InputMethodContext instance.</returns>
1273 public InputMethodContext GetInputMethodContext() {
1274 InputMethodContext ret = new InputMethodContext(NDalicPINVOKE.TextField_GetInputMethodContext(swigCPtr), true);
1275 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1279 internal TextFieldSignal TextChangedSignal()
1281 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_TextChangedSignal(swigCPtr), false);
1282 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1286 internal TextFieldSignal MaxLengthReachedSignal()
1288 TextFieldSignal ret = new TextFieldSignal(NDalicPINVOKE.TextField_MaxLengthReachedSignal(swigCPtr), false);
1289 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1293 internal SWIGTYPE_p_Dali__SignalT_void_fDali__Toolkit__TextField_Dali__Toolkit__TextField__InputStyle__MaskF_t InputStyleChangedSignal()
1295 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);
1296 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1300 internal enum ExceedPolicyType
1302 ExceedPolicyOriginal,
1307 /// The TranslatableText property.<br />
1308 /// The text can set the SID value.<br />
1310 /// <exception cref='ArgumentNullException'>
1311 /// ResourceManager about multilingual is null.
1313 /// <since_tizen> 4 </since_tizen>
1314 public string TranslatableText
1318 return textFieldTextSid;
1322 if (NUIApplication.MultilingualResourceManager == null)
1324 throw new ArgumentNullException("ResourceManager about multilingual is null");
1326 textFieldTextSid = value;
1327 Text = SetTranslatable(textFieldTextSid);
1328 NotifyPropertyChanged();
1332 /// The TranslatablePlaceholderText property.<br />
1333 /// The text can set the SID value.<br />
1335 /// <exception cref='ArgumentNullException'>
1336 /// ResourceManager about multilingual is null.
1338 /// <since_tizen> 4 </since_tizen>
1339 public string TranslatablePlaceholderText
1343 return textFieldPlaceHolderTextSid;
1347 if (NUIApplication.MultilingualResourceManager == null)
1349 throw new ArgumentNullException("ResourceManager about multilingual is null");
1351 textFieldPlaceHolderTextSid = value;
1352 PlaceholderText = SetTranslatable(textFieldPlaceHolderTextSid);
1353 NotifyPropertyChanged();
1356 private string SetTranslatable(string textFieldSid)
1358 string translatableText = null;
1359 translatableText = NUIApplication.MultilingualResourceManager?.GetString(textFieldSid, new CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
1360 if (translatableText != null)
1362 if (systemlangTextFlag == false)
1364 SystemSettings.LocaleLanguageChanged += new WeakEventHandler<LocaleLanguageChangedEventArgs>(SystemSettings_LocaleLanguageChanged).Handler;
1365 systemlangTextFlag = true;
1367 return translatableText;
1371 translatableText = "";
1372 return translatableText;
1375 private void SystemSettings_LocaleLanguageChanged(object sender, LocaleLanguageChangedEventArgs e)
1377 if (textFieldTextSid != null)
1379 Text = NUIApplication.MultilingualResourceManager?.GetString(textFieldTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1381 if (textFieldPlaceHolderTextSid != null)
1383 PlaceholderText = NUIApplication.MultilingualResourceManager?.GetString(textFieldPlaceHolderTextSid, new CultureInfo(e.Value.Replace("_", "-")));
1387 /// The Text property.
1389 /// <since_tizen> 3 </since_tizen>
1394 return (string)GetValue(TextProperty);
1398 SetValueAndForceSendChangeSignal(TextProperty, value);
1399 NotifyPropertyChanged();
1404 /// The PlaceholderText property.
1406 /// <since_tizen> 3 </since_tizen>
1407 public string PlaceholderText
1411 return (string)GetValue(PlaceholderTextProperty);
1416 SetValue(PlaceholderTextProperty, value);
1417 NotifyPropertyChanged();
1422 /// The PlaceholderTextFocused property.
1424 /// <since_tizen> 3 </since_tizen>
1425 public string PlaceholderTextFocused
1429 return (string)GetValue(PlaceholderTextFocusedProperty);
1433 SetValue(PlaceholderTextFocusedProperty, value);
1434 NotifyPropertyChanged();
1439 /// The FontFamily property.
1441 /// <since_tizen> 3 </since_tizen>
1442 public string FontFamily
1446 return (string)GetValue(FontFamilyProperty);
1450 SetValue(FontFamilyProperty, value);
1451 NotifyPropertyChanged();
1456 /// The FontStyle property.
1458 /// <since_tizen> 3 </since_tizen>
1459 public PropertyMap FontStyle
1463 return (PropertyMap)GetValue(FontStyleProperty);
1467 SetValue(FontStyleProperty, value);
1468 NotifyPropertyChanged();
1473 /// The PointSize property.
1475 /// <since_tizen> 3 </since_tizen>
1476 public float PointSize
1480 return (float)GetValue(PointSizeProperty);
1484 SetValue(PointSizeProperty, value);
1485 NotifyPropertyChanged();
1490 /// The MaxLength property.
1492 /// <since_tizen> 3 </since_tizen>
1493 public int MaxLength
1497 return (int)GetValue(MaxLengthProperty);
1501 SetValue(MaxLengthProperty, value);
1502 NotifyPropertyChanged();
1507 /// The ExceedPolicy property.
1509 /// <since_tizen> 3 </since_tizen>
1510 public int ExceedPolicy
1514 return (int)GetValue(ExceedPolicyProperty);
1518 SetValue(ExceedPolicyProperty, value);
1519 NotifyPropertyChanged();
1524 /// The HorizontalAlignment property.
1526 /// <since_tizen> 3 </since_tizen>
1527 public HorizontalAlignment HorizontalAlignment
1531 return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty);
1535 SetValue(HorizontalAlignmentProperty, value);
1536 NotifyPropertyChanged();
1541 /// The VerticalAlignment property.
1543 /// <since_tizen> 3 </since_tizen>
1544 public VerticalAlignment VerticalAlignment
1548 return (VerticalAlignment)GetValue(VerticalAlignmentProperty);
1552 SetValue(VerticalAlignmentProperty, value);
1553 NotifyPropertyChanged();
1554 NotifyPropertyChanged();
1559 /// The TextColor property.
1561 /// <since_tizen> 3 </since_tizen>
1562 public Color TextColor
1566 return (Color)GetValue(TextColorProperty);
1570 SetValue(TextColorProperty, value);
1571 NotifyPropertyChanged();
1576 /// The PlaceholderTextColor property.
1578 /// <since_tizen> 3 </since_tizen>
1579 public Vector4 PlaceholderTextColor
1583 return (Vector4)GetValue(PlaceholderTextColorProperty);
1587 SetValue(PlaceholderTextColorProperty, value);
1588 NotifyPropertyChanged();
1593 /// The ShadowOffset property.
1595 /// <since_tizen> 3 </since_tizen>
1596 public Vector2 ShadowOffset
1600 return (Vector2)GetValue(ShadowOffsetProperty);
1604 SetValue(ShadowOffsetProperty, value);
1605 NotifyPropertyChanged();
1610 /// The ShadowColor property.
1612 /// <since_tizen> 3 </since_tizen>
1613 public Vector4 ShadowColor
1617 return (Vector4)GetValue(ShadowColorProperty);
1621 SetValue(ShadowColorProperty, value);
1622 NotifyPropertyChanged();
1627 /// The PrimaryCursorColor property.
1629 /// <since_tizen> 3 </since_tizen>
1630 public Vector4 PrimaryCursorColor
1634 return (Vector4)GetValue(PrimaryCursorColorProperty);
1638 SetValue(PrimaryCursorColorProperty, value);
1639 NotifyPropertyChanged();
1644 /// The SecondaryCursorColor property.
1646 /// <since_tizen> 3 </since_tizen>
1647 public Vector4 SecondaryCursorColor
1651 return (Vector4)GetValue(SecondaryCursorColorProperty);
1655 SetValue(SecondaryCursorColorProperty, value);
1656 NotifyPropertyChanged();
1661 /// The EnableCursorBlink property.
1663 /// <since_tizen> 3 </since_tizen>
1664 public bool EnableCursorBlink
1668 return (bool)GetValue(EnableCursorBlinkProperty);
1672 SetValue(EnableCursorBlinkProperty, value);
1673 NotifyPropertyChanged();
1678 /// The CursorBlinkInterval property.
1680 /// <since_tizen> 3 </since_tizen>
1681 public float CursorBlinkInterval
1685 return (float)GetValue(CursorBlinkIntervalProperty);
1689 SetValue(CursorBlinkIntervalProperty, value);
1690 NotifyPropertyChanged();
1695 /// The CursorBlinkDuration property.
1697 /// <since_tizen> 3 </since_tizen>
1698 public float CursorBlinkDuration
1702 return (float)GetValue(CursorBlinkDurationProperty);
1706 SetValue(CursorBlinkDurationProperty, value);
1707 NotifyPropertyChanged();
1712 /// The CursorWidth property.
1714 /// <since_tizen> 3 </since_tizen>
1715 public int CursorWidth
1719 return (int)GetValue(CursorWidthProperty);
1723 SetValue(CursorWidthProperty, value);
1724 NotifyPropertyChanged();
1729 /// The GrabHandleImage property.
1731 /// <since_tizen> 3 </since_tizen>
1732 public string GrabHandleImage
1736 return (string)GetValue(GrabHandleImageProperty);
1740 SetValue(GrabHandleImageProperty, value);
1741 NotifyPropertyChanged();
1746 /// The GrabHandlePressedImage property.
1748 /// <since_tizen> 3 </since_tizen>
1749 public string GrabHandlePressedImage
1753 return (string)GetValue(GrabHandlePressedImageProperty);
1757 SetValue(GrabHandlePressedImageProperty, value);
1758 NotifyPropertyChanged();
1763 /// The ScrollThreshold property.
1765 /// <since_tizen> 3 </since_tizen>
1766 public float ScrollThreshold
1770 return (float)GetValue(ScrollThresholdProperty);
1774 SetValue(ScrollThresholdProperty, value);
1775 NotifyPropertyChanged();
1780 /// The ScrollSpeed property.
1782 /// <since_tizen> 3 </since_tizen>
1783 public float ScrollSpeed
1787 return (float)GetValue(ScrollSpeedProperty);
1791 SetValue(ScrollSpeedProperty, value);
1792 NotifyPropertyChanged();
1797 /// The SelectionHandleImageLeft property.
1799 /// <since_tizen> 3 </since_tizen>
1800 public PropertyMap SelectionHandleImageLeft
1804 return (PropertyMap)GetValue(SelectionHandleImageLeftProperty);
1808 SetValue(SelectionHandleImageLeftProperty, value);
1809 NotifyPropertyChanged();
1814 /// The SelectionHandleImageRight property.
1816 /// <since_tizen> 3 </since_tizen>
1817 public PropertyMap SelectionHandleImageRight
1821 return (PropertyMap)GetValue(SelectionHandleImageRightProperty);
1825 SetValue(SelectionHandleImageRightProperty, value);
1826 NotifyPropertyChanged();
1831 /// The SelectionHandlePressedImageLeft property.
1833 /// <since_tizen> 3 </since_tizen>
1834 public PropertyMap SelectionHandlePressedImageLeft
1838 return (PropertyMap)GetValue(SelectionHandlePressedImageLeftProperty);
1842 SetValue(SelectionHandlePressedImageLeftProperty, value);
1843 NotifyPropertyChanged();
1848 /// The SelectionHandlePressedImageRight property.
1850 /// <since_tizen> 3 </since_tizen>
1851 public PropertyMap SelectionHandlePressedImageRight
1855 return (PropertyMap)GetValue(SelectionHandlePressedImageRightProperty);
1859 SetValue(SelectionHandlePressedImageRightProperty, value);
1860 NotifyPropertyChanged();
1865 /// The SelectionHandleMarkerImageLeft property.
1867 /// <since_tizen> 3 </since_tizen>
1868 public PropertyMap SelectionHandleMarkerImageLeft
1872 return (PropertyMap)GetValue(SelectionHandleMarkerImageLeftProperty);
1876 SetValue(SelectionHandleMarkerImageLeftProperty, value);
1877 NotifyPropertyChanged();
1882 /// The SelectionHandleMarkerImageRight property.
1884 /// <since_tizen> 3 </since_tizen>
1885 public PropertyMap SelectionHandleMarkerImageRight
1889 return (PropertyMap)GetValue(SelectionHandleMarkerImageRightProperty);
1893 SetValue(SelectionHandleMarkerImageRightProperty, value);
1894 NotifyPropertyChanged();
1899 /// The SelectionHighlightColor property.
1901 /// <since_tizen> 3 </since_tizen>
1902 public Vector4 SelectionHighlightColor
1906 return (Vector4)GetValue(SelectionHighlightColorProperty);
1910 SetValue(SelectionHighlightColorProperty, value);
1911 NotifyPropertyChanged();
1916 /// The DecorationBoundingBox property.
1918 /// <since_tizen> 3 </since_tizen>
1919 public Rectangle DecorationBoundingBox
1923 return (Rectangle)GetValue(DecorationBoundingBoxProperty);
1927 SetValue(DecorationBoundingBoxProperty, value);
1928 NotifyPropertyChanged();
1933 /// The InputMethodSettings property.
1935 /// <since_tizen> 3 </since_tizen>
1936 public PropertyMap InputMethodSettings
1940 return (PropertyMap)GetValue(InputMethodSettingsProperty);
1944 SetValue(InputMethodSettingsProperty, value);
1945 NotifyPropertyChanged();
1950 /// The InputColor property.
1952 /// <since_tizen> 3 </since_tizen>
1953 public Vector4 InputColor
1957 return (Vector4)GetValue(InputColorProperty);
1961 SetValue(InputColorProperty, value);
1962 NotifyPropertyChanged();
1967 /// The EnableMarkup property.
1969 /// <since_tizen> 3 </since_tizen>
1970 public bool EnableMarkup
1974 return (bool)GetValue(EnableMarkupProperty);
1978 SetValue(EnableMarkupProperty, value);
1979 NotifyPropertyChanged();
1984 /// The InputFontFamily property.
1986 /// <since_tizen> 3 </since_tizen>
1987 public string InputFontFamily
1991 return (string)GetValue(InputFontFamilyProperty);
1995 SetValue(InputFontFamilyProperty, value);
1996 NotifyPropertyChanged();
2001 /// The InputFontStyle property.
2003 /// <since_tizen> 3 </since_tizen>
2004 public PropertyMap InputFontStyle
2008 return (PropertyMap)GetValue(InputFontStyleProperty);
2012 SetValue(InputFontStyleProperty, value);
2013 NotifyPropertyChanged();
2018 /// The InputPointSize property.
2020 /// <since_tizen> 3 </since_tizen>
2021 public float InputPointSize
2025 return (float)GetValue(InputPointSizeProperty);
2029 SetValue(InputPointSizeProperty, value);
2030 NotifyPropertyChanged();
2035 /// The Underline property.
2037 /// <since_tizen> 3 </since_tizen>
2038 public PropertyMap Underline
2042 return (PropertyMap)GetValue(UnderlineProperty);
2046 SetValue(UnderlineProperty, value);
2047 NotifyPropertyChanged();
2052 /// The InputUnderline property.
2054 /// <since_tizen> 3 </since_tizen>
2055 public string InputUnderline
2059 return (string)GetValue(InputUnderlineProperty);
2063 SetValue(InputUnderlineProperty, value);
2064 NotifyPropertyChanged();
2069 /// The Shadow property.
2071 /// <since_tizen> 3 </since_tizen>
2072 public PropertyMap Shadow
2076 return (PropertyMap)GetValue(ShadowProperty);
2080 SetValue(ShadowProperty, value);
2081 NotifyPropertyChanged();
2086 /// The InputShadow property.
2088 /// <since_tizen> 3 </since_tizen>
2089 public string InputShadow
2093 return (string)GetValue(InputShadowProperty);
2097 SetValue(InputShadowProperty, value);
2098 NotifyPropertyChanged();
2103 /// The Emboss property.
2105 /// <since_tizen> 3 </since_tizen>
2106 public string Emboss
2110 return (string)GetValue(EmbossProperty);
2114 SetValue(EmbossProperty, value);
2115 NotifyPropertyChanged();
2120 /// The InputEmboss property.
2122 /// <since_tizen> 3 </since_tizen>
2123 public string InputEmboss
2127 return (string)GetValue(InputEmbossProperty);
2131 SetValue(InputEmbossProperty, value);
2132 NotifyPropertyChanged();
2137 /// The Outline property.
2139 /// <since_tizen> 3 </since_tizen>
2140 public PropertyMap Outline
2144 return (PropertyMap)GetValue(OutlineProperty);
2148 SetValue(OutlineProperty, value);
2149 NotifyPropertyChanged();
2154 /// The InputOutline property.
2156 /// <since_tizen> 3 </since_tizen>
2157 public string InputOutline
2161 return (string)GetValue(InputOutlineProperty);
2165 SetValue(InputOutlineProperty, value);
2166 NotifyPropertyChanged();
2171 /// The HiddenInputSettings property.
2173 /// <since_tizen> 3 </since_tizen>
2174 public Tizen.NUI.PropertyMap HiddenInputSettings
2178 return (PropertyMap)GetValue(HiddenInputSettingsProperty);
2182 SetValue(HiddenInputSettingsProperty, value);
2183 NotifyPropertyChanged();
2188 /// The PixelSize property.
2190 /// <since_tizen> 3 </since_tizen>
2191 public float PixelSize
2195 return (float)GetValue(PixelSizeProperty);
2199 SetValue(PixelSizeProperty, value);
2200 NotifyPropertyChanged();
2205 /// The Enable selection property.
2207 /// <since_tizen> 3 </since_tizen>
2208 public bool EnableSelection
2212 return (bool)GetValue(EnableSelectionProperty);
2216 SetValue(EnableSelectionProperty, value);
2217 NotifyPropertyChanged();
2222 /// The Placeholder property.
2223 /// Gets or sets the placeholder: text, color, font family, font style, point size, and pixel size.
2226 /// The following example demonstrates how to set the Placeholder property.
2228 /// PropertyMap propertyMap = new PropertyMap();
2229 /// propertyMap.Add("text", new PropertyValue("Setting Placeholder Text"));
2230 /// propertyMap.Add("textFocused", new PropertyValue("Setting Placeholder Text Focused"));
2231 /// propertyMap.Add("color", new PropertyValue(Color.Red));
2232 /// propertyMap.Add("fontFamily", new PropertyValue("Arial"));
2233 /// propertyMap.Add("pointSize", new PropertyValue(12.0f));
2235 /// PropertyMap fontStyleMap = new PropertyMap();
2236 /// fontStyleMap.Add("weight", new PropertyValue("bold"));
2237 /// fontStyleMap.Add("width", new PropertyValue("condensed"));
2238 /// fontStyleMap.Add("slant", new PropertyValue("italic"));
2239 /// propertyMap.Add("fontStyle", new PropertyValue(fontStyleMap));
2241 /// TextField field = new TextField();
2242 /// field.Placeholder = propertyMap;
2245 /// <since_tizen> 3 </since_tizen>
2246 public Tizen.NUI.PropertyMap Placeholder
2250 return (PropertyMap)GetValue(PlaceholderProperty);
2254 SetValue(PlaceholderProperty, value);
2255 NotifyPropertyChanged();
2260 /// The Ellipsis property.<br />
2261 /// Enable or disable the ellipsis.<br />
2262 /// Placeholder PropertyMap is used to add ellipsis to placeholder text.
2264 /// <since_tizen> 4 </since_tizen>
2265 public bool Ellipsis
2269 return (bool)GetValue(EllipsisProperty);
2273 SetValue(EllipsisProperty, value);
2274 NotifyPropertyChanged();
2279 /// Enables Text selection using Shift key.
2281 /// <since_tizen> 5 </since_tizen>
2282 /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
2283 [EditorBrowsable(EditorBrowsableState.Never)]
2284 public bool EnableShiftSelection
2288 return (bool)GetValue(EnableShiftSelectionProperty);
2292 SetValue(EnableShiftSelectionProperty, value);
2293 NotifyPropertyChanged();