Graphical User Interfaces
PowerShell is first and foremost a language built to work on the command line. Since PowerShell is based on .NET, it can use several different assemblies to create graphical user interfaces.
This chapter explores WPF, a common choice for writing graphical user interfaces in Windows. WPF is not cross-platform; the content of this chapter will only work on Windows.
Avalonia is a possible choice for a cross-platform framework, but the use of this is unfortunately beyond the capacity of this chapter: http://avaloniaui.net/.
The following topics are explored in this chapter:
- About Windows Presentation Foundation (WPF)
- Designing a UI
- About XAML
- Displaying the UI
- Layout
- Naming and locating elements
- Handling events
- Responsive interfaces
Windows Presentation Foundation is available in both Windows PowerShell and PowerShell 7, although the interfaces it creates can only be used on Windows.
...