Example #1
0
 public BaseSubPage(TRANSITON_FROM from)
 {
     BackgroundColor = (Color)App.GetStyle()["Background"];
     Opacity         = 0;
     AbsoluteLayout.SetLayoutFlags(this, AbsoluteLayoutFlags.SizeProportional);
     if (from == TRANSITON_FROM.RIGHT)
     {
         AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0, 0, 1, 1));
         Device.BeginInvokeOnMainThread(() =>
         {
             this.TranslateTo(this.Width, 0, 0).ContinueWith((arg) => ShowAnimation());
         });
         _backAction = () => this.TranslateTo(this.Width, 0, 200).ContinueWith((arg) => Dispose());
     }
     else if (from == TRANSITON_FROM.LEFT)
     {
         AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0, 0, 1, 1));
         Device.BeginInvokeOnMainThread(() =>
         {
             this.TranslateTo(-this.Width, 0, 0).ContinueWith((arg) => ShowAnimation());
         });
         _backAction = () => this.TranslateTo(-this.Width, 0, 200).ContinueWith((arg) => Dispose());
     }
     else
     {
         AbsoluteLayout.SetLayoutBounds(this, new Rectangle(0, 0, 1, 1));
         Device.BeginInvokeOnMainThread(() =>
         {
             this.TranslateTo(0, this.Height, 0).ContinueWith((arg) => ShowAnimation());
         });
         _backAction = () => this.TranslateTo(0, this.Height, 200).ContinueWith((arg) => Dispose());
     }
 }
Example #2
0
        public StatusPage(TRANSITON_FROM from) : base(from)
        {
            InitializeComponent();

            var tgr = new TapGestureRecognizer();

            tgr.Tapped += (s, e) =>
            {
                Sound.OK();
                MainPage.AddSubPage(new Chu2NameListPage(TRANSITON_FROM.BOTTOM));
            };
            MainChu2Name.GestureRecognizers.Add(tgr);
            SubChu2Name.GestureRecognizers.Add(tgr);
        }
Example #3
0
 public CommentEdit(TRANSITON_FROM from) : base(from)
 {
     InitializeComponent();
 }
Example #4
0
 public ShowPassword(TRANSITON_FROM from) : base(from)
 {
     InitializeComponent();
 }
Example #5
0
 public PrayPage(TRANSITON_FROM from, string achivementCode) : base(from)
 {
     InitializeComponent();
     _achivementCode = achivementCode;
 }
Example #6
0
 public PrayPage(TRANSITON_FROM from) : base(from)
 {
     InitializeComponent();
 }
Example #7
0
 public Chu2NameListPage(TRANSITON_FROM from) : base(from)
 {
     InitializeComponent();
 }
Example #8
0
 public ClearPage(TRANSITON_FROM from) : base(from)
 {
     InitializeComponent();
     BackImage.Source = ImageSource.FromResource("FNO.Resouces.Back1.png");
 }