WPF c# displaying a image for a short period of time -


i trying create project have picture button , once user clicks on picture changes else.

but once changes want picture go away , go original before clicked.

i stuck @ point create "timer" second picture show. second picture shows random picture 2 other pictures. needs change pictures randomly after every button click.

once idea comes mind try use backgroundworker implementation.

click on picture:

  • change image whatever want
  • start background worker

background worker implementation:

  • thread.join() long want keep image
  • return when done

background worker task completed:

  • set image original picture

it's not true intent of backgroundworker, solve problem trying around (not tying ui thread).


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -