DevOps | Scripts | Automation

PowershellWPF

What is WPF?

Before explaining WPF use in PowerShell, we will learn a little bit about WPF. So the WPF is a Windows Presentation Framework and introduced by Microsoft on the .NET platform and known for UI framework for the desktop applications.

WPF can be compared with Windows Form but WPF is a more advanced version and supports enhanced graphics like animation and 3D and more control features of the Forms but still, many legacy Windows applications run on Windows Form. Industries have started adapting the WPF for their desktop applications and even some companies have migrated their platform from Windows form to WPF. We can use PowerShell as the back end language for both WPF and Windows Forms.

WPF was first released in 2006 along with .NET framework 3.0 and it uses XAML language (Extensible Application Markup Language) which is based on XML. XAML is completely a declarative language. However, in future articles when we create a GUI based PowerShell script, we don’t need to write any XAML code. We will use Visual Studio to create our GUI form and then we will integrate modified XAML code with PowerShell code according to GUI functionality.