public void Activate() { Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()"); window = NUIApplication.GetDefaultWindow(); navigator = window.GetDefaultNavigator(); page = new ToolbarItemTest1Page(); navigator.Push(page); }
public void Deactivate() { Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()"); navigator.Pop(); page = null; }