Close a WPF GUI after a countdown with PowerShell

Reply A+ A-

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



Learn KQL in one month

You want to support me ?

Mes articles en français

Books in French