Esempio n. 1
0
 void PoppedEvent(object obj, PoppedEventArgs ev)
 {
     if (ev.Page == page)
     {
         animation.Clear();
         animation = null;
         window    = null;
         page.Dispose();
         page              = null;
         navigator.Popped -= PoppedEvent;
         navigator         = null;
     }
 }
Esempio n. 2
0
        public void Activate()
        {
            Console.WriteLine($"@@@ this.GetType().Name={this.GetType().Name}, Activate()");

            window = NUIApplication.GetDefaultWindow();
            page   = new Test1Page();

            window.Add(page);

            animation = new Animation(2000);
            animation.AnimateTo(page.test1PageText, "Orientation", new Rotation(new Radian(new Degree(180.0f)), PositionAxis.X), 0, 500);
            animation.AnimateTo(page.test1PageText, "Orientation", new Rotation(new Radian(new Degree(0.0f)), PositionAxis.X), 500, 1000);
            animation.Looping = true;
            animation.Play();
        }