This is intended to be an example of how to make a good-looking GUI in PowerShell.
- The WPF is styled using Material Design in XAML.
- The data is taken from the public API http://www.namnapi.se/.
The PowerShell script itself simply lists a number of randomized Swedish names in a window.
- Presentation.ps1 are some notes I made for the presentation at PUGS 2018-12-10.
- Get-SwedishNameCode.ps1 creates the window using only code.
- Get-SwedishNameXAML.ps1 creates the window using XAML.
- Get-SwedishNameXAMLRunspace.ps1 creates the window on a different thread using XAML and runspaces.
There is great information about WPF out there, here are a few links to get you started in PowerShell.
- POWERSHELL DEEPDIVE: WPF, DATA BINDING AND INOTIFYPROPERTYCHANGED - Trevor Jones
- WPF Linkcollection for PowerShell - Bernd Kriszio
- Learning GUI Toolmaking Series - Stephen Owen
- PowerShell and WPF: Writing Data to a UI from a Different Runspace - Boe Prox
This project is licensed under MIT.