Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7819287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T06:53:06+00:00 2026-06-02T06:53:06+00:00

I have on click image and in that method i have this two pictures

  • 0

I have on click image and in that method i have this two pictures to set source for them:

image4.Source = (ImageSource)new ImageSourceConverter().ConvertFromString("Cards/" + player12.First() + ".png"); 

and

image5.Source = (ImageSource)new ImageSourceConverter().ConvertFromString("Cards/" + comp1.First() + ".png");

i have timer to wait but they show at the same time when execution of the method will be done. I want to reload grid after first image4.Source and then stop for two secounds with timer and then show image5.source.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T06:53:08+00:00Added an answer on June 2, 2026 at 6:53 am

    Create a class for delayed execution:

    public class OneShowDispatcherTimer
    {
        public static void FireAfter(TimeSpan inverval, Action callback)
        {
            Deployment.Current.Dispatcher.BeginInvoke(() =>
            {
                DispatcherTimer Timer = new DispatcherTimer()
                {
                    Interval = interval
                };
                Timer.Tick += (s, e) =>
                {
                    Timer.Stop();
                    callback();
                };
                Timer.Start();
            });
        }
    }
    

    And use in that manner:

    OneShowDispatcherTimer.FireAfter(TimeSpan.FromSeconds(2), () =>
    {
        image4.Source = ...
    
        OneShowDispatcherTimer.FireAfter(TimeSpan.FromSeconds(2), () =>
        {
            image5.Source = ...
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this method that changes an larger image source on click. I need
I have this method on rails so that I have an image calling a
I have a problem that when I click on the image button instead of
I have a little iOS5 app that shows images. I click on the image
I have an image with a click event handler that captures the location where
i have this code in the button click to show selection image when the
I want to draw image in place where I click. i have this code:
I have a problem... In my view i have Image.If i click on image
How to change cell background image on click on cell in iphone????I have tried
I have an image on my website. I would like when I click it,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.