When inheriting from Control the rendering artifacts
appers during mount & touch events.
As inheriting strictly from Control is not required use View instead.
/// ViewStack implemenents stack based navigation in which all child views are stacked over each other
/// and only the most recent child added is visible.
/// </summary>
- public class ViewStack : Control
+ public class ViewStack : View
{
private class ViewStackBaseCustomLayout : LayoutGroup
{
FinishAnimations();
RemoveAllDelayedViews();
Add(view);
- StartPageEnterAnimation(Previous, Current);
- }
-
- public override void OnChildRemove(View view)
- {
- views.Remove(view);
- }
-
- public override void OnChildAdd(View view)
- {
views.Add(view);
+ StartPageEnterAnimation(Previous, Current);
}
private void AddViewToDelayRemove(View view)