diff options
author | Samantha Houts <samantha@teamredwall.com> | 2016-10-06 10:17:51 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-10-06 10:17:51 -0700 |
commit | ba6caad23ed7abdb1661cc61114c24eb3ae09da1 (patch) | |
tree | b37f5e071b8e73cee49a56d53483b6600fb819c9 /Xamarin.Forms.Controls/Bugzilla44596SplashPage.cs | |
parent | 5727172ba8bb98391e023f208b747e6f193e8693 (diff) | |
download | xamarin-forms-ba6caad23ed7abdb1661cc61114c24eb3ae09da1.tar.gz xamarin-forms-ba6caad23ed7abdb1661cc61114c24eb3ae09da1.tar.bz2 xamarin-forms-ba6caad23ed7abdb1661cc61114c24eb3ae09da1.zip |
[A] Prevent blank page from appearing when MainPage is switched (#421)
* repro
* [A]Add horrible hack to prevent background flashing when swapping MainPage
* cleanup repro
* Revert "[A]Add horrible hack to prevent background flashing when swapping MainPage"
This reverts commit d0fdc3856d0eaa5ec781f790d524ad7624a26560.
* [A] E.Z.'s less magical but just as effective solution
Diffstat (limited to 'Xamarin.Forms.Controls/Bugzilla44596SplashPage.cs')
-rw-r--r-- | Xamarin.Forms.Controls/Bugzilla44596SplashPage.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Xamarin.Forms.Controls/Bugzilla44596SplashPage.cs b/Xamarin.Forms.Controls/Bugzilla44596SplashPage.cs new file mode 100644 index 00000000..ba7cdc46 --- /dev/null +++ b/Xamarin.Forms.Controls/Bugzilla44596SplashPage.cs @@ -0,0 +1,25 @@ +using System; +using System.Threading.Tasks; + +namespace Xamarin.Forms.Controls +{ + public class Bugzilla44596SplashPage : ContentPage + { + Action FinishedLoading { get; set; } + + + public Bugzilla44596SplashPage(Action finishedLoading) + { + BackgroundColor = Color.Blue; + FinishedLoading = finishedLoading; + } + + + protected async override void OnAppearing() + { + base.OnAppearing(); + await Task.Delay(2000); + FinishedLoading?.Invoke(); + } + } +} |