[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication() : base(new NUICoreBackend())
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #1");
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(Size2D windowSize, Position2D windowPosition) : base(new NUICoreBackend("", NUIApplication.WindowMode.Opaque, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #2");
}
/// <summary>
[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication(string styleSheet) : base(new NUICoreBackend(styleSheet))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #3 IsUsingXaml={IsUsingXaml}");
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(string styleSheet, Size2D windowSize, Position2D windowPosition) : base(new NUICoreBackend(styleSheet, WindowMode.Opaque, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #4");
}
/// <summary>
[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication(string styleSheet, WindowMode windowMode) : base(new NUICoreBackend(styleSheet, windowMode))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #5");
- Tizen.Log.Fatal("NT", $"IsUsingXaml={IsUsingXaml}");
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(string styleSheet, WindowMode windowMode, Size2D windowSize, Position2D windowPosition) : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #6");
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(Graphics.BackendType backend, WindowMode windowMode = WindowMode.Opaque, Size2D windowSize = null, Position2D windowPosition = null, string styleSheet = "") : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #7");
-
//windowMode and styleSheet will be added later. currently it's not working as expected.
Graphics.Backend = backend;
Tizen.Log.Error("NUI", "Plaese DO NOT set graphical backend type with this constructor! This will give no effect!");
[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication(ThemeOptions option) : base(new NUICoreBackend())
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #8");
-
ApplyThemeOption(option);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(Size2D windowSize, Position2D windowPosition, ThemeOptions option) : base(new NUICoreBackend("", NUIApplication.WindowMode.Opaque, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #9");
-
ApplyThemeOption(option);
}
[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication(string styleSheet, WindowMode windowMode, WindowType type) : base(new NUICoreBackend(styleSheet, windowMode, type))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #10");
-
ExternalThemeManager.Initialize();
}
[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication(string styleSheet, Size2D windowSize, Position2D windowPosition, IBorderInterface borderInterface, WindowMode windowMode = WindowMode.Opaque) : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #11");
-
EnableBorder(borderInterface);
}
[SuppressMessage("Microsoft.Design", "CA2000: Dispose objects before losing scope", Justification = "NUICoreBackend is disposed in the base class when the application is terminated")]
public NUIApplication(ThemeOptions option, IBorderInterface borderInterface) : base(new NUICoreBackend())
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #12");
-
EnableBorder(borderInterface);
ApplyThemeOption(option);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(Size2D windowSize, Position2D windowPosition, ThemeOptions option, IBorderInterface borderInterface) : base(new NUICoreBackend("", NUIApplication.WindowMode.Opaque, windowSize, windowPosition))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #13");
-
EnableBorder(borderInterface);
ApplyThemeOption(option);
}
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(string styleSheet, WindowMode windowMode, CoreTask task) : base(new NUICoreBackend(styleSheet, windowMode), task)
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #14");
-
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(string styleSheet, WindowMode windowMode, Size2D windowSize, Position2D windowPosition, CoreTask task) : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition), task)
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #15");
-
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public NUIApplication(ThemeOptions option, WindowData windowData) : base(new NUICoreBackend(windowData))
{
- Tizen.Log.Fatal("NT", $"NUIApplication constructor #16");
-
if (windowData.BorderInterface != null)
{
EnableBorder(windowData.BorderInterface);
var disposalbeQueue = DisposeQueue.Instance;
var registry = Registry.Instance;
- // no need to be enable XAML when preload
- NUIApplication.IsUsingXaml = false;
-
// Initialize some BaseComponent static variables now
BaseComponents.View.Preload();
BaseComponents.ImageView.Preload();
static View()
{
- Tizen.Log.Fatal("NT", $"static View construct IsUsingXaml={NUIApplication.IsUsingXaml}");
if (NUIApplication.IsUsingXaml)
{
+#if REMOVE_READONLY
CreateBindableProperties();
+#else
+ BackgroundColorProperty = BindableProperty.Create(nameof(BackgroundColor), typeof(Color), typeof(View), null,
+ propertyChanged: SetInternalBackgroundColorProperty, defaultValueCreator: GetInternalBackgroundColorProperty);
+
+ ColorProperty = BindableProperty.Create(nameof(Color), typeof(Color), typeof(View), null,
+ propertyChanged: SetInternalColorProperty, defaultValueCreator: GetInternalColorProperty);
+
+ ColorRedProperty = BindableProperty.Create(nameof(ColorRed), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalColorRedProperty, defaultValueCreator: GetInternalColorRedProperty);
+
+ ColorGreenProperty = BindableProperty.Create(nameof(ColorGreen), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalColorGreenProperty, defaultValueCreator: GetInternalColorGreenProperty);
+
+ ColorBlueProperty = BindableProperty.Create(nameof(ColorBlue), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalColorBlueProperty, defaultValueCreator: GetInternalColorBlueProperty);
+
+ CellIndexProperty = BindableProperty.Create(nameof(CellIndex), typeof(Vector2), typeof(View), null,
+ propertyChanged: SetInternalCellIndexProperty, defaultValueCreator: GetInternalCellIndexProperty);
+
+ Size2DProperty = BindableProperty.Create(nameof(Size2D), typeof(Size2D), typeof(View), null,
+ propertyChanged: SetInternalSize2DProperty, defaultValueCreator: GetInternalSize2DProperty);
+
+ Position2DProperty = BindableProperty.Create(nameof(Position2D), typeof(Position2D), typeof(View), null,
+ propertyChanged: SetInternalPosition2DProperty, defaultValueCreator: GetInternalPosition2DProperty);
+
+ ParentOriginProperty = BindableProperty.Create(nameof(ParentOrigin), typeof(Position), typeof(View), null,
+ propertyChanged: SetInternalParentOriginProperty, defaultValueCreator: GetInternalParentOriginProperty);
+
+ PivotPointProperty = BindableProperty.Create(nameof(PivotPoint), typeof(Position), typeof(View), null,
+ propertyChanged: SetInternalPivotPointProperty, defaultValueCreator: GetInternalPivotPointProperty);
+
+ SizeWidthProperty = BindableProperty.Create(nameof(SizeWidth), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalSizeWidthProperty, defaultValueCreator: GetInternalSizeWidthProperty);
+
+ SizeHeightProperty = BindableProperty.Create(nameof(SizeHeight), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalSizeHeightProperty, defaultValueCreator: GetInternalSizeHeightProperty);
+
+ PositionProperty = BindableProperty.Create(nameof(Position), typeof(Position), typeof(View), null,
+ propertyChanged: SetInternalPositionProperty, defaultValueCreator: GetInternalPositionProperty);
+
+ PositionXProperty = BindableProperty.Create(nameof(PositionX), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalPositionXProperty, defaultValueCreator: GetInternalPositionXProperty);
+
+ PositionYProperty = BindableProperty.Create(nameof(PositionY), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalPositionYProperty, defaultValueCreator: GetInternalPositionYProperty);
+
+ PositionZProperty = BindableProperty.Create(nameof(PositionZ), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalPositionZProperty, defaultValueCreator: GetInternalPositionZProperty);
+
+ ScaleProperty = BindableProperty.Create(nameof(Scale), typeof(Vector3), typeof(View), null,
+ propertyChanged: SetInternalScaleProperty, defaultValueCreator: GetInternalScaleProperty);
+
+ ScaleXProperty = BindableProperty.Create(nameof(ScaleX), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalScaleXProperty, defaultValueCreator: GetInternalScaleXProperty);
+
+ ScaleYProperty = BindableProperty.Create(nameof(ScaleY), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalScaleYProperty, defaultValueCreator: GetInternalScaleYProperty);
+
+ ScaleZProperty = BindableProperty.Create(nameof(ScaleZ), typeof(float), typeof(View), default(float),
+ propertyChanged: SetInternalScaleZProperty, defaultValueCreator: GetInternalScaleZProperty);
+
+ NameProperty = BindableProperty.Create(nameof(Name), typeof(string), typeof(View), string.Empty,
+ propertyChanged: SetInternalNameProperty, defaultValueCreator: GetInternalNameProperty);
+
+ SizeModeFactorProperty = BindableProperty.Create(nameof(SizeModeFactor), typeof(Vector3), typeof(View), null,
+ propertyChanged: SetInternalSizeModeFactorProperty, defaultValueCreator: GetInternalSizeModeFactorProperty);
+
+ PaddingProperty = BindableProperty.Create(nameof(Padding), typeof(Extents), typeof(View), null,
+ propertyChanged: SetInternalPaddingProperty, defaultValueCreator: GetInternalPaddingProperty);
+
+ SizeProperty = BindableProperty.Create(nameof(Size), typeof(Size), typeof(View), null,
+ propertyChanged: SetInternalSizeProperty, defaultValueCreator: GetInternalSizeProperty);
+
+ MinimumSizeProperty = BindableProperty.Create(nameof(MinimumSize), typeof(Size2D), typeof(View), null,
+ propertyChanged: SetInternalMinimumSizeProperty, defaultValueCreator: GetInternalMinimumSizeProperty);
+
+ MaximumSizeProperty = BindableProperty.Create(nameof(MaximumSize), typeof(Size2D), typeof(View), null,
+ propertyChanged: SetInternalMaximumSizeProperty, defaultValueCreator: GetInternalMaximumSizeProperty);
+
+ MarginProperty = BindableProperty.Create(nameof(Margin), typeof(Extents), typeof(View), null,
+ propertyChanged: SetInternalMarginProperty, defaultValueCreator: GetInternalMarginProperty);
+
+ AnchorPointProperty = BindableProperty.Create(nameof(AnchorPoint), typeof(Tizen.NUI.Position), typeof(View), null,
+ propertyChanged: SetInternalAnchorPointProperty, defaultValueCreator: GetInternalAnchorPointProperty);
+#endif
RegisterPropertyGroup(PositionProperty, positionPropertyGroup);
RegisterPropertyGroup(Position2DProperty, positionPropertyGroup);
return Object.InternalGetPropertyBool(view.SwigCPtr, View.Property.KeyInputFocus);
}));
+ // BackgroundColorProperty
internal static void SetInternalBackgroundColorProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
- if (!NUIApplication.IsUsingXaml)
- {
- view.SetBackgroundColor((Color)newValue);
- }
- else
+ if (NUIApplication.IsUsingXaml)
{
view.themeData?.selectorData?.ClearBackground(view);
{
view.SetBackgroundColor((Color)newValue);
}
+
+ }
+ else
+ {
+ view.SetBackgroundColor((Color)newValue);
}
}
/// BackgroundColorProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
public static BindableProperty BackgroundColorProperty = null;
internal static BindableProperty GetBackgroundColorProperty()
}
return BackgroundColorProperty;
}
+#else
+ public static readonly BindableProperty BackgroundColorProperty = null;
+#endif
-
+ // ColorProperty
internal static void SetInternalColorProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
view.SetColor((Color)newValue);
}
-
}
internal static object GetInternalColorProperty(BindableObject bindable)
}
Object.InternalRetrievingPropertyVector4(view.SwigCPtr, View.Property.COLOR, view.internalColor.SwigCPtr);
return view.internalColor;
-
}
+ /// <summary>
+ /// ColorProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
+ public static BindableProperty ColorProperty = null;
+
internal static BindableProperty GetColorProperty()
{
if (ColorProperty == null)
}
return ColorProperty;
}
+#else
+ public static readonly BindableProperty ColorProperty = null;
+#endif
- /// <summary>
- /// ColorProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty ColorProperty = null;
-
+ // ColorRedProperty
internal static void SetInternalColorRedProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
view.SetColorRed((float?)newValue);
-
}
internal static object GetInternalColorRedProperty(BindableObject bindable)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ColorRed);
-
}
+ /// <summary>
+ /// ColorRedProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
+ public static BindableProperty ColorRedProperty = null;
+
internal static BindableProperty GetColorRedProperty()
{
if (ColorRedProperty == null)
}
return ColorRedProperty;
}
+#else
+ public static readonly BindableProperty ColorRedProperty = null;
+#endif
- /// <summary>
- /// ColorRedProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty ColorRedProperty = null;
-
-
+ // ColorGreenProperty
internal static void SetInternalColorGreenProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
}
+ /// <summary>
+ /// ColorGreenProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
+ public static BindableProperty ColorGreenProperty = null;
+
internal static BindableProperty GetColorGreenProperty()
{
if (ColorGreenProperty == null)
}
return ColorGreenProperty;
}
+#else
+ public static readonly BindableProperty ColorGreenProperty = null;
+#endif
-
- /// <summary>
- /// ColorGreenProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty ColorGreenProperty = null;
-
-
-
-
+ // ColorBlueProperty
internal static void SetInternalColorBlueProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
}
+ /// <summary>
+ /// ColorBlueProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
+ public static BindableProperty ColorBlueProperty = null;
+
internal static BindableProperty GetColorBlueProperty()
{
if (ColorBlueProperty == null)
}
return ColorBlueProperty;
}
-
-
- /// <summary>
- /// ColorBlueProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty ColorBlueProperty = null;
+#else
+ public static readonly BindableProperty ColorBlueProperty = null;
+#endif
/// <summary> BackgroundImageProperty </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
return temp;
}));
-
+ // CellIndexProperty
internal static void SetInternalCellIndexProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
}
+ /// <summary>
+ /// CellIndexProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetCellIndexProperty()
{
if (CellIndexProperty == null)
return CellIndexProperty;
}
- /// <summary>
- /// CellIndexProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty CellIndexProperty = null;
+#else
+ public static readonly BindableProperty CellIndexProperty = null;
+#endif
/// <summary>
/// RowSpanProperty
return view.IsFocusableInTouch();
});
+ //Size2DProperty
internal static void SetInternalSize2DProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
/// Size2DProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty Size2DProperty = null;
-
+#if REMOVE_READONLY
internal static BindableProperty GetSize2DProperty()
{
if (Size2DProperty == null)
return Size2DProperty;
}
+ public static BindableProperty Size2DProperty = null;
+#else
+ public static readonly BindableProperty Size2DProperty = null;
+#endif
+
/// <summary>
/// OpacityProperty
/// </summary>
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.OPACITY);
}));
+ // Position2DProperty
internal static void SetInternalPosition2DProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
/// Position2DProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty Position2DProperty = null;
-
+#if REMOVE_READONLY
internal static BindableProperty GetPosition2DProperty()
{
if (Position2DProperty == null)
return Position2DProperty;
}
+ public static BindableProperty Position2DProperty = null;
+#else
+ public static readonly BindableProperty Position2DProperty = null;
+#endif
+
/// <summary>
/// PositionUsesPivotPointProperty
/// </summary>
return 0;
});
-
+ // ParentOriginProperty
internal static void SetInternalParentOriginProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
Object.InternalSetPropertyVector3(view.SwigCPtr, View.Property.ParentOrigin, ((Position)newValue).SwigCPtr);
}
-
}
internal static object GetInternalParentOriginProperty(BindableObject bindable)
Position temp = new Position(0.0f, 0.0f, 0.0f);
Object.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.ParentOrigin, temp.SwigCPtr);
return temp;
-
}
+ /// <summary>
+ /// ParentOriginProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetParentOriginProperty()
{
if (ParentOriginProperty == null)
return ParentOriginProperty;
}
- /// <summary>
- /// ParentOriginProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty ParentOriginProperty = null;
+#else
+ public static readonly BindableProperty ParentOriginProperty = null;
+#endif
+ // PivotPointProperty
internal static void SetInternalPivotPointProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
view.SetAnchorPoint((Position)newValue);
}
-
}
internal static object GetInternalPivotPointProperty(BindableObject bindable)
}
Object.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.AnchorPoint, view.internalPivotPoint.SwigCPtr);
return view.internalPivotPoint;
-
}
+ /// <summary>
+ /// PivotPointProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetPivotPointProperty()
{
if (PivotPointProperty == null)
return PivotPointProperty;
}
- /// <summary>
- /// PivotPointProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty PivotPointProperty = null;
-
+#else
+ public static readonly BindableProperty PivotPointProperty = null;
+#endif
+
+ // SizeWidthProperty
internal static void SetInternalSizeWidthProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.SizeWidth);
}
+ /// <summary>
+ /// SizeWidthProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetSizeWidthProperty()
{
if (SizeWidthProperty == null)
return SizeWidthProperty;
}
- /// <summary>
- /// SizeWidthProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty SizeWidthProperty = null;
+#else
+ public static readonly BindableProperty SizeWidthProperty = null;
+#endif
+ // SizeHeightProperty
internal static void SetInternalSizeHeightProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
Object.InternalSetPropertyFloat(view.SwigCPtr, View.Property.SizeHeight, height);
}
-
}
internal static object GetInternalSizeHeightProperty(BindableObject bindable)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.SizeHeight);
-
}
+ /// <summary>
+ /// SizeHeightProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetSizeHeightProperty()
{
if (SizeHeightProperty == null)
return SizeHeightProperty;
}
- /// <summary>
- /// SizeHeightProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty SizeHeightProperty = null;
+#else
+ public static readonly BindableProperty SizeHeightProperty = null;
+#endif
-
+ // PositionProperty
internal static void SetInternalPositionProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
return view.internalPosition;
}
+ /// <summary>
+ /// PositionProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetPositionProperty()
{
if (PositionProperty == null)
return PositionProperty;
}
- /// <summary>
- /// PositionProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty PositionProperty = null;
-
+#else
+ public static readonly BindableProperty PositionProperty = null;
+#endif
+
+ // PositionXProperty
internal static void SetInternalPositionXProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
Object.InternalSetPropertyFloat(view.SwigCPtr, View.Property.PositionX, (float)newValue);
}
-
}
internal static object GetInternalPositionXProperty(BindableObject bindable)
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.PositionX);
}
+ /// <summary>
+ /// PositionXProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetPositionXProperty()
{
if (PositionXProperty == null)
return PositionXProperty;
}
- /// <summary>
- /// PositionXProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty PositionXProperty = null;
+#else
+ public static readonly BindableProperty PositionXProperty = null;
+#endif
+ // PositionYProperty
internal static void SetInternalPositionYProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.PositionY);
}
+ /// <summary>
+ /// PositionYProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetPositionYProperty()
{
if (PositionYProperty == null)
return PositionYProperty;
}
- /// <summary>
- /// PositionYProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty PositionYProperty = null;
-
+#else
+ public static readonly BindableProperty PositionYProperty = null;
+#endif
internal static void SetInternalPositionZProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
}
+ // PositionZProperty
internal static object GetInternalPositionZProperty(BindableObject bindable)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.PositionZ);
-
}
+ /// <summary>
+ /// PositionZProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetPositionZProperty()
{
if (PositionZProperty == null)
return PositionZProperty;
}
- /// <summary>
- /// PositionZProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty PositionZProperty = null;
-
+#else
+ public static readonly BindableProperty PositionZProperty = null;
+#endif
/// <summary>
/// OrientationProperty
/// </summary>
}
+ // ScaleProperty
internal static object GetInternalScaleProperty(BindableObject bindable)
{
var view = (View)bindable;
}
Object.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.SCALE, view.internalScale.SwigCPtr);
return view.internalScale;
-
}
+ /// <summary>
+ /// ScaleProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetScaleProperty()
{
if (ScaleProperty == null)
return ScaleProperty;
}
-
- /// <summary>
- /// ScaleProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty ScaleProperty = null;
+#else
+ public static readonly BindableProperty ScaleProperty = null;
+#endif
-
+ // ScaleXProperty
internal static void SetInternalScaleXProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
Object.InternalSetPropertyFloat(view.SwigCPtr, View.Property.ScaleX, (float)newValue);
}
-
}
internal static object GetInternalScaleXProperty(BindableObject bindable)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ScaleX);
-
}
+ /// <summary>
+ /// ScaleXProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetScaleXProperty()
{
if (ScaleXProperty == null)
return ScaleXProperty;
}
- /// <summary>
- /// ScaleXProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty ScaleXProperty = null;
+#else
+ public static readonly BindableProperty ScaleXProperty = null;
+#endif
+ // ScaleYProperty
internal static void SetInternalScaleYProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
Object.InternalSetPropertyFloat(view.SwigCPtr, View.Property.ScaleY, (float)newValue);
}
-
}
internal static object GetInternalScaleYProperty(BindableObject bindable)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ScaleY);
-
}
+ /// <summary>
+ /// ScaleYProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetScaleYProperty()
{
if (ScaleYProperty == null)
return ScaleYProperty;
}
- /// <summary>
- /// ScaleYProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty ScaleYProperty = null;
+#else
+ public static readonly BindableProperty ScaleYProperty = null;
+#endif
-
+ // ScaleZProperty
internal static void SetInternalScaleZProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
{
Object.InternalSetPropertyFloat(view.SwigCPtr, View.Property.ScaleZ, (float)newValue);
}
-
}
internal static object GetInternalScaleZProperty(BindableObject bindable)
{
var view = (View)bindable;
return Object.InternalGetPropertyFloat(view.SwigCPtr, View.Property.ScaleZ);
-
}
+ /// <summary>
+ /// ScaleZProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetScaleZProperty()
{
if (ScaleZProperty == null)
return ScaleZProperty;
}
- /// <summary>
- /// ScaleZProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty ScaleZProperty = null;
-
+#else
+ public static readonly BindableProperty ScaleZProperty = null;
+#endif
+
+ // NameProperty
internal static void SetInternalNameProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
view.internalName = (string)newValue;
Object.InternalSetPropertyString(view.SwigCPtr, View.Property.NAME, (string)newValue);
}
-
}
internal static object GetInternalNameProperty(BindableObject bindable)
{
var view = (View)bindable;
return view.internalName;
-
}
+ /// <summary>
+ /// NameProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetNameProperty()
{
if (NameProperty == null)
return NameProperty;
}
- /// <summary>
- /// NameProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty NameProperty = null;
-
+#else
+ public static readonly BindableProperty NameProperty = null;
+#endif
/// <summary>
/// SensitiveProperty
/// </summary>
}
+ // SizeModeFactorProperty
internal static object GetInternalSizeModeFactorProperty(BindableObject bindable)
{
var view = (View)bindable;
}
Object.InternalRetrievingPropertyVector3(view.SwigCPtr, View.Property.SizeModeFactor, view.internalSizeModeFactor.SwigCPtr);
return view.internalSizeModeFactor;
-
}
+ /// <summary>
+ /// SizeModeFactorProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetSizeModeFactorProperty()
{
if (SizeModeFactorProperty == null)
return SizeModeFactorProperty;
}
- /// <summary>
- /// SizeModeFactorProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty SizeModeFactorProperty = null;
-
+#else
+ public static readonly BindableProperty SizeModeFactorProperty = null;
+#endif
/// <summary>
/// WidthResizePolicyProperty
/// </summary>
return Object.InternalGetPropertyBool(view.SwigCPtr, View.Property.HeightForWidth);
}));
+ // PaddingProperty
internal static void SetInternalPaddingProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
tmp?.Dispose();
}
}
-
}
internal static object GetInternalPaddingProperty(BindableObject bindable)
}
return view.internalPadding;
-
}
+ /// <summary>
+ /// PaddingProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetPaddingProperty()
{
if (PaddingProperty == null)
return PaddingProperty;
}
- /// <summary>
- /// PaddingProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty PaddingProperty = null;
+#else
+ public static readonly BindableProperty PaddingProperty = null;
+#endif
+ // SizeProperty
internal static void SetInternalSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
return view.internalSize;
}
+ /// <summary>
+ /// SizeProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetSizeProperty()
{
if (SizeProperty == null)
return SizeProperty;
}
- /// <summary>
- /// SizeProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty SizeProperty = null;
+#else
+ public static readonly BindableProperty SizeProperty = null;
+#endif
-
+ // MinimumSizeProperty
internal static void SetInternalMinimumSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
Object.InternalSetPropertyVector2(view.SwigCPtr, View.Property.MinimumSize, ((Size2D)newValue).SwigCPtr);
}
-
}
internal static object GetInternalMinimumSizeProperty(BindableObject bindable)
}
Object.InternalRetrievingPropertyVector2(view.SwigCPtr, View.Property.MinimumSize, view.internalMinimumSize.SwigCPtr);
return view.internalMinimumSize;
-
}
+ /// <summary>
+ /// MinimumSizeProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetMinimumSizeProperty()
{
if (MinimumSizeProperty == null)
return MinimumSizeProperty;
}
- /// <summary>
- /// MinimumSizeProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty MinimumSizeProperty = null;
+#else
+ public static readonly BindableProperty MinimumSizeProperty = null;
+#endif
+ // MaximumSizeProperty
internal static void SetInternalMaximumSizeProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
Object.InternalSetPropertyVector2(view.SwigCPtr, View.Property.MaximumSize, ((Size2D)newValue).SwigCPtr);
}
-
}
internal static object GetInternalMaximumSizeProperty(BindableObject bindable)
}
Object.InternalRetrievingPropertyVector2(view.SwigCPtr, View.Property.MaximumSize, view.internalMaximumSize.SwigCPtr);
return view.internalMaximumSize;
-
}
+ /// <summary>
+ /// MaximumSizeProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetMaximumSizeProperty()
{
if (MaximumSizeProperty == null)
return MaximumSizeProperty;
}
- /// <summary>
- /// MaximumSizeProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty MaximumSizeProperty = null;
+#else
+ public static readonly BindableProperty MaximumSizeProperty = null;
+#endif
/// <summary>
/// InheritPositionProperty
return (ViewLayoutDirectionType)Object.InternalGetPropertyInt(view.SwigCPtr, View.Property.LayoutDirection);
}));
+ // MarginProperty
internal static void SetInternalMarginProperty(BindableObject bindable, object oldValue, object newValue)
{
var view = (View)bindable;
tmp?.Dispose();
}
}
-
}
internal static object GetInternalMarginProperty(BindableObject bindable)
}
return view.internalMargin;
-
}
+ /// <summary>
+ /// MarginProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetMarginProperty()
{
if (MarginProperty == null)
return MarginProperty;
}
- /// <summary>
- /// MarginProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty MarginProperty = null;
+#else
+ public static readonly BindableProperty MarginProperty = null;
+#endif
/// <summary>
/// UpdateAreaHintProperty
return instance.InternalPositionUsesAnchorPoint;
});
+ // AnchorPointProperty
internal static void SetInternalAnchorPointProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.BaseComponents.View)bindable;
{
instance.InternalAnchorPoint = (Tizen.NUI.Position)newValue;
}
-
}
internal static object GetInternalAnchorPointProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.View)bindable;
return instance.InternalAnchorPoint;
-
}
+ /// <summary>
+ /// AnchorPointProperty
+ /// </summary>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+#if REMOVE_READONLY
internal static BindableProperty GetAnchorPointProperty()
{
if (AnchorPointProperty == null)
return AnchorPointProperty;
}
- /// <summary>
- /// AnchorPointProperty
- /// </summary>
- [EditorBrowsable(EditorBrowsableState.Never)]
public static BindableProperty AnchorPointProperty = null;
+#else
+ public static readonly BindableProperty AnchorPointProperty = null;
+#endif
/// <summary>
/// WidthSpecificationProperty
return new Size2D((int)userSizeWidth, (int)userSizeHeight);
}
-
+#if REMOVE_READONLY
internal static void CreateBindableProperties()
{
- Tizen.Log.Fatal("NT", $"CreateBindableProperties() START IsUsingXaml={NUIApplication.IsUsingXaml}");
-
_ = GetBackgroundColorProperty();
_ = GetColorProperty();
_ = GetColorRedProperty();
_ = GetMaximumSizeProperty();
_ = GetMarginProperty();
_ = GetAnchorPointProperty();
- Tizen.Log.Fatal("NT", $"CreateBindableProperties() END");
}
+#endif
private void SetBackgroundImage(string value)
{