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()); } }
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); }
public CommentEdit(TRANSITON_FROM from) : base(from) { InitializeComponent(); }
public ShowPassword(TRANSITON_FROM from) : base(from) { InitializeComponent(); }
public PrayPage(TRANSITON_FROM from, string achivementCode) : base(from) { InitializeComponent(); _achivementCode = achivementCode; }
public PrayPage(TRANSITON_FROM from) : base(from) { InitializeComponent(); }
public Chu2NameListPage(TRANSITON_FROM from) : base(from) { InitializeComponent(); }
public ClearPage(TRANSITON_FROM from) : base(from) { InitializeComponent(); BackImage.Source = ImageSource.FromResource("FNO.Resouces.Back1.png"); }