This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# it is oddly difficult to find good, easy examples of creating PowerShell GUI forms with non-standard buttons | |
# this is a simple example that displays a four-button form | |
# you can, of course, customize everything in the <grid> | |
# and will need to set the window width and height to match the number of buttons and font | |
# use and adapt freely, subject to unlicense https://choosealicense.com/licenses/unlicense/ | |
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework') | |
[xml]$XAML = @' | |
<Window | |
xmlns = | |
"http://schemas.microsoft.com/winfx/2006/xaml/presentation" |