PrimaryCursorPositionProperty = BindableProperty.Create(nameof(PrimaryCursorPosition), typeof(int), typeof(Tizen.NUI.BaseComponents.TextEditor), 0, propertyChanged: SetInternalPrimaryCursorPositionProperty, defaultValueCreator: GetInternalPrimaryCursorPositionProperty);
CharacterSpacingProperty = BindableProperty.Create(nameof(CharacterSpacing), typeof(float), typeof(TextEditor), default(float), propertyChanged: SetInternalCharacterSpacingProperty, defaultValueCreator: GetInternalCharacterSpacingProperty);
+
+ RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextEditor), 0.0f, propertyChanged: SetInternalRemoveFrontInsetProperty, defaultValueCreator: GetInternalRemoveFrontInsetProperty);
+
+ RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextEditor), 0.0f, propertyChanged: SetInternalRemoveBackInsetProperty, defaultValueCreator: GetInternalRemoveBackInsetProperty);
}
}
{
get
{
- return (bool)GetValue(RemoveFrontInsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(RemoveFrontInsetProperty);
+ }
+ else
+ {
+ return (bool)GetInternalRemoveFrontInsetProperty(this);
+ }
}
set
{
- SetValue(RemoveFrontInsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(RemoveFrontInsetProperty, value);
+ }
+ else
+ {
+ SetInternalRemoveFrontInsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
{
get
{
- return (bool)GetValue(RemoveBackInsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(RemoveBackInsetProperty);
+ }
+ else
+ {
+ return (bool)GetInternalRemoveBackInsetProperty(this);
+ }
}
set
{
- SetValue(RemoveBackInsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(RemoveBackInsetProperty, value);
+ }
+ else
+ {
+ SetInternalRemoveBackInsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
return Object.InternalGetPropertyFloat(textEditor.SwigCPtr, TextEditor.Property.CharacterSpacing);
}
- /// <summary>
+ /// <summary>
/// RemoveFrontInsetProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty RemoveFrontInsetProperty = null;
+ internal static void SetInternalRemoveFrontInsetProperty(BindableObject bindable, object oldValue, object newValue)
{
var textEditor = (TextEditor)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveFrontInset, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+ internal static object GetInternalRemoveFrontInsetProperty(BindableObject bindable)
{
var textEditor = (TextEditor)bindable;
+
return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveFrontInset);
- }));
+ }
/// <summary>
/// RemoveBackInsetProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextEditor), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty RemoveBackInsetProperty = null;
+ internal static void SetInternalRemoveBackInsetProperty(BindableObject bindable, object oldValue, object newValue)
{
var textEditor = (TextEditor)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveBackInset, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+
+ internal static object GetInternalRemoveBackInsetProperty(BindableObject bindable)
{
var textEditor = (TextEditor)bindable;
+
return Object.InternalGetPropertyBool(textEditor.SwigCPtr, TextEditor.Property.RemoveBackInset);
- }));
+ }
}
}
CharacterSpacingProperty = BindableProperty.Create(nameof(CharacterSpacing), typeof(float), typeof(TextField), default(float),
propertyChanged: SetInternalCharacterSpacingProperty, defaultValueCreator: GetInternalCharacterSpacingProperty);
+
+ RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextField), 0.0f,
+ propertyChanged: SetInternalRemoveFrontInsetProperty, defaultValueCreator: GetInternalRemoveFrontInsetProperty);
+
+ RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextField), 0.0f,
+ propertyChanged: SetInternalRemoveBackInsetProperty, defaultValueCreator: GetInternalRemoveBackInsetProperty);
}
}
{
get
{
- return (bool)GetValue(RemoveFrontInsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(RemoveFrontInsetProperty);
+ }
+ else
+ {
+ return (bool)GetInternalRemoveFrontInsetProperty(this);
+ }
}
set
{
- SetValue(RemoveFrontInsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(RemoveFrontInsetProperty, value);
+ }
+ else
+ {
+ SetInternalRemoveFrontInsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
{
get
{
- return (bool)GetValue(RemoveBackInsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(RemoveBackInsetProperty);
+ }
+ else
+ {
+ return (bool)GetInternalRemoveBackInsetProperty(this);
+ }
}
set
{
- SetValue(RemoveBackInsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(RemoveBackInsetProperty, value);
+ }
+ else
+ {
+ SetInternalRemoveBackInsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
/// RemoveFrontInsetProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextField), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty RemoveFrontInsetProperty = null;
+ internal static void SetInternalRemoveFrontInsetProperty(BindableObject bindable, object oldValue, object newValue)
{
var textField = (TextField)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveFrontInset, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+ internal static object GetInternalRemoveFrontInsetProperty(BindableObject bindable)
{
var textField = (TextField)bindable;
+
return Object.InternalGetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveFrontInset);
- }));
+ }
/// <summary>
/// RemoveBackInsetProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextField), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty RemoveBackInsetProperty = null;
+ internal static void SetInternalRemoveBackInsetProperty(BindableObject bindable, object oldValue, object newValue)
{
var textField = (TextField)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveBackInset, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+
+ internal static object GetInternalRemoveBackInsetProperty(BindableObject bindable)
{
var textField = (TextField)bindable;
+
return Object.InternalGetPropertyBool(textField.SwigCPtr, TextField.Property.RemoveBackInset);
- }));
+ }
}
}
UnderlineHeightProperty = BindableProperty.Create(nameof(UnderlineHeight), typeof(float), typeof(TextLabel), 0.0f,
propertyChanged: SetInternalUnderlineHeightProperty, defaultValueCreator: GetInternalUnderlineHeightProperty);
+
+ RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextLabel), 0.0f,
+ propertyChanged: SetInternalRemoveFrontInsetProperty, defaultValueCreator: GetInternalRemoveFrontInsetProperty);
+
+ RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextLabel), 0.0f,
+ propertyChanged: SetInternalRemoveBackInsetProperty, defaultValueCreator: GetInternalRemoveBackInsetProperty);
+
+ CutoutProperty = BindableProperty.Create(nameof(Cutout), typeof(bool), typeof(TextLabel), 0.0f,
+ propertyChanged: SetInternalCutoutProperty, defaultValueCreator: GetInternalCutoutProperty);
}
}
{
get
{
- return (bool)GetValue(RemoveFrontInsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(RemoveFrontInsetProperty);
+ }
+ else
+ {
+ return (bool)GetInternalRemoveFrontInsetProperty(this);
+ }
}
set
{
- SetValue(RemoveFrontInsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(RemoveFrontInsetProperty, value);
+ }
+ else
+ {
+ SetInternalRemoveFrontInsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
{
get
{
- return (bool)GetValue(RemoveBackInsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(RemoveBackInsetProperty);
+ }
+ else
+ {
+ return (bool)GetInternalRemoveBackInsetProperty(this);
+ }
}
set
{
- SetValue(RemoveBackInsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(RemoveBackInsetProperty, value);
+ }
+ else
+ {
+ SetInternalRemoveBackInsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
{
get
{
- return (bool)GetValue(CutoutProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(CutoutProperty);
+ }
+ else
+ {
+ return (bool)GetInternalCutoutProperty(this);
+ }
}
set
{
- SetValue(CutoutProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(CutoutProperty, value);
+ }
+ else
+ {
+ SetInternalCutoutProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
/// RemoveFrontInsetProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RemoveFrontInsetProperty = BindableProperty.Create(nameof(RemoveFrontInset), typeof(bool), typeof(TextLabel), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty RemoveFrontInsetProperty = null;
+ internal static void SetInternalRemoveFrontInsetProperty(BindableObject bindable, object oldValue, object newValue)
{
var textLabel = (TextLabel)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveFrontInset, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+ internal static object GetInternalRemoveFrontInsetProperty(BindableObject bindable)
{
var textLabel = (TextLabel)bindable;
return Object.InternalGetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveFrontInset);
- }));
+ }
/// <summary>
/// RemoveBackInsetProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty RemoveBackInsetProperty = BindableProperty.Create(nameof(RemoveBackInset), typeof(bool), typeof(TextLabel), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty RemoveBackInsetProperty = null;
+ internal static void SetInternalRemoveBackInsetProperty(BindableObject bindable, object oldValue, object newValue)
{
var textLabel = (TextLabel)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveBackInset, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+ internal static object GetInternalRemoveBackInsetProperty(BindableObject bindable)
{
var textLabel = (TextLabel)bindable;
return Object.InternalGetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.RemoveBackInset);
- }));
+ }
/// This will be public opened in tizen_5.0 after ACR done. Before ACR, need to be hidden as inhouse API.
[EditorBrowsable(EditorBrowsableState.Never)]
/// CutoutProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static readonly BindableProperty CutoutProperty = BindableProperty.Create(nameof(Cutout), typeof(bool), typeof(TextLabel), false, propertyChanged: (BindableProperty.BindingPropertyChangedDelegate)((bindable, oldValue, newValue) =>
+ public static readonly BindableProperty CutoutProperty = null;
+ internal static void SetInternalCutoutProperty(BindableObject bindable, object oldValue, object newValue)
{
var textLabel = (TextLabel)bindable;
if (newValue != null)
{
Object.InternalSetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.Cutout, (bool)newValue);
}
- }),
- defaultValueCreator: (BindableProperty.CreateDefaultValueDelegate)((bindable) =>
+ }
+ internal static object GetInternalCutoutProperty(BindableObject bindable)
{
var textLabel = (TextLabel)bindable;
return Object.InternalGetPropertyBool(textLabel.SwigCPtr, TextLabel.Property.Cutout);
- }));
+ }
internal Selector<string> TranslatableTextSelector
{