16

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 ...

Get Mastering PowerShell Scripting - Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.