mTapGestureDetector.Dispose();
mTapGestureDetector = null;
}
+ scrollAnimation?.Dispose();
}
base.Dispose(type);
}
TransitionFinished?.Invoke(this, new EventArgs());
}
+ protected override void Dispose(Tizen.NUI.DisposeTypes type)
+ {
+ if (disposed)
+ return;
+ if(type == DisposeTypes.Explicit)
+ {
+ pageEnterAnimation.Dispose();
+ pageLeaveAnimation.Dispose();
+ }
+ base.Dispose(type);
+ }
}
}
using Tizen.NUI;
using Oobe.Controls;
using Tizen.NUI.Components;
+using System;
namespace Oobe.Views
{
/// <summary>
/// Implementation of OOBE GUI Guideline for IoT Headed
/// </summary>
- public class MainView
+ public class MainView : IDisposable
{
private ViewStack stack;
private Animation dimEffectAnimation;
}
dimEffectAnimation.Clear();
}
+
+ public void Dispose()
+ {
+ dimEffectAnimation.Dispose();
+ stack.Dispose();
+ pagination.Dispose();
+ }
}
}