コード例 #1
0
 private static void GraceAnimatedProgressButtonOnTouchUpInside(object sender, EventArgs e)
 {
     Hud.Create().WithProgressContent()
     .WithGracePeriod(TimeSpan.FromSeconds(2))
     .Build()
     .Flash(TimeSpan.FromSeconds(1));
 }
コード例 #2
0
        private static void AnimatedErrorButtonOnTouchUpInside(object sender, EventArgs e)
        {
            var hud = Hud.Create().WithErrorContent().Build();

            hud.Show();
            hud.HideWithDelay(TimeSpan.FromSeconds(2));
        }
コード例 #3
0
 private static void AnimatedSuccessButtonOnTouchUpInside(object sender, EventArgs e)
 {
     Hud.Create()
     .WithSuccessContent()
     .Build()
     .Flash(TimeSpan.FromSeconds(2));
 }
コード例 #4
0
 private static void AnimatedStatusProgressButtonOnTouchUpInside(object sender, EventArgs e)
 {
     Hud.Create().WithProgressContent()
     .WithTitle("Title")
     .WithSubtitle("Subtitle")
     .Build()
     .Flash(TimeSpan.FromSeconds(2));
 }
コード例 #5
0
        private static async void TextButtonOnTouchUpInside(object sender, EventArgs e)
        {
            await Hud.Create().WithLabelContent()
            .WithTitle("Requesting Licence…")
            .Build()
            .FlashAsync(TimeSpan.FromSeconds(2));

            Debug.WriteLine("License Obtained");
        }
コード例 #6
0
        private static async void AnimatedProgressButtonOnTouchUpInside(object sender, EventArgs e)
        {
            Hud.Create().WithProgressContent()
            .WithBackgroundDimming(true)
            .Build()
            .Show();

            await Task.Delay(TimeSpan.FromSeconds(2));

            Hud.Create().WithSuccessContent()
            .Build()
            .Flash(TimeSpan.FromSeconds(1));
        }