Пример #1
0
        public void Activate()
        {
            Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");

            window = NUIApplication.GetDefaultWindow();
            page   = new SwipeViewTest2Page();
            page.PositionUsesPivotPoint = true;
            page.ParentOrigin           = ParentOrigin.Center;
            page.PivotPoint             = PivotPoint.Center;
            page.HeightResizePolicy     = ResizePolicyType.FillToParent;
            page.WidthResizePolicy      = ResizePolicyType.FillToParent;
            window.GetDefaultNavigator().Push(page);
        }
Пример #2
0
 public void Deactivate()
 {
     Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Deactivate()");
     window.GetDefaultNavigator().Pop();
     page = null;
 }