Building GUI using WPF

In this section, we are going to discuss how to build a windows GUI using WPF and PowerShell. WPF is more modern and provides a lot more flexibility and advanced options than WinForm. Like WinForm, building a GUI in WPF is also an event-driven approach. We define the Form and then add the controls in the form, after we define the events for the Controls so that we can control the behavior of the Form. The difference is in the way UI elements are designed in WPF. Here, we use XAML-based definitions for the UI elements.

There are two ways in which we can build a WPF-based application, either we hand code the XAML definitions or use third-party tools. The most easily available one is Visual Studio 2015, and it provides a great ...

Get Mastering PowerCLI 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.