/// LayoutProperty
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public static BindableProperty LayoutProperty = null;
- internal static void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue)
+ public static new BindableProperty LayoutProperty = null;
+ internal static new void SetInternalLayoutProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.ItemView)bindable;
if (newValue != null)
instance.InternalLayout = (Tizen.NUI.PropertyArray)newValue;
}
}
- internal static object GetInternalLayoutProperty(BindableObject bindable)
+ internal static new object GetInternalLayoutProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.ItemView)bindable;
return instance.InternalLayout;
/// <summary>
/// ResourceUrlProperty
/// </summary>
+ /// <remarks>
+ /// This property does not have same logic with LottieAnimationView.ResourceUrl.
+ /// Should use new keyword!
+ /// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
#if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
public static new BindableProperty ResourceUrlProperty = null;
#else
public static readonly new BindableProperty ResourceUrlProperty = null;
#endif
- internal static void SetInternalResourceUrlProperty(BindableObject bindable, object oldValue, object newValue)
+ internal static new void SetInternalResourceUrlProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
instance.InternalResourceUrl = (string)newValue;
}
- internal static object GetInternalResourceUrlProperty(BindableObject bindable)
+ internal static new object GetInternalResourceUrlProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
return instance.InternalResourceUrl;
/// <summary>
/// CurrentFrameProperty
/// </summary>
+ /// <remarks>
+ /// This property does not have same logic with LottieAnimationView.CurrentFrame.
+ /// Should use new keyword!
+ /// </remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
#if REMOVE_READONLY_FOR_BINDABLE_PROPERTY
public static new BindableProperty CurrentFrameProperty = null;
#else
public static readonly new BindableProperty CurrentFrameProperty = null;
#endif
- internal static void SetInternalCurrentFrameProperty(BindableObject bindable, object oldValue, object newValue)
+ internal static new void SetInternalCurrentFrameProperty(BindableObject bindable, object oldValue, object newValue)
{
var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
if (newValue != null)
instance.InternalCurrentFrame = (int)newValue;
}
}
- internal static object GetInternalCurrentFrameProperty(BindableObject bindable)
+ internal static new object GetInternalCurrentFrameProperty(BindableObject bindable)
{
var instance = (Tizen.NUI.BaseComponents.AnimatedVectorImageView)bindable;
return instance.InternalCurrentFrame;
{
ViewBoxProperty = BindableProperty.Create(nameof(ViewBox), typeof(Tizen.NUI.Size2D), typeof(Tizen.NUI.BaseComponents.VectorGraphics.CanvasView), null,
propertyChanged: SetInternalViewBoxProperty, defaultValueCreator: GetInternalViewBoxProperty);
- SynchronousLoadingProperty = BindableProperty.Create(nameof(ViewBox), typeof(bool), typeof(Tizen.NUI.BaseComponents.VectorGraphics.CanvasView), true,
+ SynchronousLoadingProperty = BindableProperty.Create(nameof(SynchronousLoading), typeof(bool), typeof(Tizen.NUI.BaseComponents.VectorGraphics.CanvasView), true,
propertyChanged: SetInternalSynchronousLoadingProperty, defaultValueCreator: GetInternalSynchronousLoadingProperty);
- RasterizationRequestManuallyProperty = BindableProperty.Create(nameof(ViewBox), typeof(bool), typeof(Tizen.NUI.BaseComponents.VectorGraphics.CanvasView), false,
+ RasterizationRequestManuallyProperty = BindableProperty.Create(nameof(RasterizationRequestManually), typeof(bool), typeof(Tizen.NUI.BaseComponents.VectorGraphics.CanvasView), false,
propertyChanged: SetInternalRasterizationRequestManuallyProperty, defaultValueCreator: GetInternalRasterizationRequestManuallyProperty);
}
}
protected override bool ReleaseHandle()
{
- DisposeQueue.Instance.Add(this);
+ if (!IsInvalid)
+ {
+ DisposeQueue.Instance.Add(this);
+ }
return true;
}
- public void Dispose()
+ protected override void Dispose(bool disposing)
{
- Interop.View.DeleteControlHandleView(handle);
- this.SetHandle(IntPtr.Zero);
+ if (IsInvalid)
+ {
+ return;
+ }
+
+ if (disposing)
+ {
+ Interop.View.DeleteControlHandleView(handle);
+ this.SetHandle(IntPtr.Zero);
+ }
+ else
+ {
+ DisposeQueue.Instance.Add(this);
+ }
}
}
internal BackgroundExtraDataUpdatedFlag backgroundExtraDataUpdatedFlag = BackgroundExtraDataUpdatedFlag.None;
- private bool backgroundExtraDataUpdateProcessAttachedFlag = false;
+ // TODO : Re-open this API when we resolve Animation issue.
+ // private bool backgroundExtraDataUpdateProcessAttachedFlag = false;
internal virtual LayoutItem CreateDefaultLayout()
{
private void UpdateBackgroundExtraData(object source, EventArgs e)
{
// Note : To allow event attachment during UpdateBackgroundExtraData, let we make flag as false before call UpdateBackgroundExtraData().
- backgroundExtraDataUpdateProcessAttachedFlag = false;
+ // TODO : Re-open this API when we resolve Animation issue.
+ // backgroundExtraDataUpdateProcessAttachedFlag = false;
UpdateBackgroundExtraData();
}
/// </summary>
/// <remarks>
/// The event handler count decreases when an event handler is removed
- /// with <see cref="Remove()"/> or after detecting that it is no longer valid.
+ /// with <see cref="Remove(T)"/> or after detecting that it is no longer valid.
/// </remarks>
/// <since_tizen> 12 </since_tizen>
protected virtual void OnCountDecreased()
{
/// <summary>
/// Accumulating Velocity Tracker
- /// </sumary>
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public class AccumulatingVelocityTrackerStrategy : VelocityTrackerStrategy
{
/// <summary>
/// Create an instance of AccumulatingVelocityTrackerStrategy.
- /// </sumary>
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public AccumulatingVelocityTrackerStrategy(uint maximumTime) : base()
{
{
/// <summary>
/// Calculates the velocity of touch movements over time.
+ /// </summary>
/// <example>
/// private void OnPanGestureDetected(object source, PanGestureDetector.DetectedEventArgs e)
/// {
/// }
/// }
/// </example>
- /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public class VelocityTracker
{
/// <summary>
/// VelocityTrackerStrategy
- /// </sumary>
+ /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public abstract class VelocityTrackerStrategy
{
PivotPoint = PivotPoint.Center,
PositionUsesPivotPoint = true,
};
+ root.PropertyChanged += (object o, global::System.ComponentModel.PropertyChangedEventArgs e) =>
+ {
+ Tizen.Log.Error("NUI", $"root view Property Changed! {e.PropertyName}\n");
+ };
window.Add(root);
window.KeyEvent += WindowKeyEvent;
PivotPoint = PivotPoint.Center,
PositionUsesPivotPoint = true,
};
+ canvasView.PropertyChanged += (object o, global::System.ComponentModel.PropertyChangedEventArgs e) =>
+ {
+ Tizen.Log.Error("NUI", $"canvas view Property Changed! {e.PropertyName}\n");
+ };
RadialGradient roundedRectFillRadialGradient = new RadialGradient()
{