Close a WPF GUI after a countdown with PowerShell

In this post, I will show you a way to display a GUI and auto close it after a specific time.
Why ? You want for instance to display a GUI and close it automatically after 6 seconds.

How to get the sample ?

How it looks like ?
In the below sample I created a status bar Control then I added a label Control in it.
The label Control will display the remaining time to display the GUI.

How it works ?
See below how I added the label in my status bar in the XAML.

See below how I create the countdown and display it in from the PS1 file
WPF_Guides 920950719633972685

Enregistrer un commentaire

Accueil item


Join me soon

Join me soon

Endpoint Manager award

Mes articles en français

Author of Books

PowerShell GUI & WPF Group

PowerShell GUI & WPF Group

Join the FPSUGR

Join the FPSUGR