Demonstrates a single-instance WPF application (.NET 8).
- If no instance is launched yet, then the application runs normally.
- If an existing instance is found, it's main window is restored (if minimised) and activated. The second instance is not created.
The related code is in App.xaml and App.xaml.cs files.