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 Windows Presentation Foundation (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. WPF is used because much of the design of the interface is done using XML.
This chapter explores some of the basic controls (elements of the interface) in WPF, such as Label
, TextBox
, ComboBox
, Button
, Grid
, and ListView
. It explores positioning controls like StackPanel
and DockPanel
.
WPF comes with many built-in controls that there is not enough room to explore in this chapter, for example, TabControl
, Calendar
, Browser
, and so on. The .NET reference can be used to view some of the possibilities: https://learn.microsoft.com/dotnet/api/system.windows...