Custom Icon for PowerShell WPF App

Custom Icon for PowerShell WPF App

In this article, I'll be talking about how to use a custom icon for your PowerShell GUI.

By default, running your PowerShell script that shows a WPF UI, the titlebar of your app will use a default PowerShell Icon, like the one shown below.

PS_App_Icon_default

Thankfully you can change this, using some simple code...

21st Feb 2024
Powershell: Radio Button Events

Powershell: Radio Button Events

In this tutorial I show how to setup events for Radio Buttons for a WPF GUI, and I also show how you can enable/disable other controls using the radio buttons as toggles.

The first thing we need is a WPF form to play around with. Let's create the following:

wpf_radio_events

You can see this simple form is just...

19th Feb 2024
WPF Scrolling TextBox

WPF Scrolling TextBox

In my recent adventures in PowerShell scripting, I needed to create a GUI for my large script. This was inevitable, since my console input prompts started to become extensive and unwieldy. In my course of GUI development I found Windows Presentation Foundation (WPF) to be a good way to build a UI wi...

31st Jan 2024