*/
using System;
using Tizen.NUI;
+using Tizen.NUI.Components;
namespace NUITizenGallery
{
internal class ButtonTest2 : IExample
{
private Window window;
- private ButtonTest2Page page;
+
public void Activate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");
window = NUIApplication.GetDefaultWindow();
- page = new ButtonTest2Page();
- window.Add(page);
+ window.GetDefaultNavigator().Push(new ButtonTest2Page());
}
public void Deactivate()
{
Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
- page.Unparent();
- page.Dispose();
+ window.GetDefaultNavigator().Pop();
}
}
}