blob: ba7cdc46106a8074c2212bd51f54c1ef7ef08b31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
}
}
}
|