Making a GUI (Graphical User Interface) with PowerShell. In this video I go over how use Visual Studio to design your form instead of having to code in PowerShell then import the XAML code into your PowerShell Script.
XAML Clean up script:
$xamlFile="Your XAML file"
$inputXAML=Get-Content -Path $xamlFile -Raw
$inputXAML=$inputXAML -replace 'mc:Ignorable="d"','' -replace "x:N","N" -replace '^[Less Than A Symbol]Win.*','[Less Than A Symbol]Window'
[XML]$XAML=$inputXAML
Installing Visual Studio 2019: https://youtu.be/MozyXg-mqDY
Microsoft System Windows Controls Docs: https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls?view=net-5.0
Links:
First Video : https://youtu.be/X6nU5QCF8XI
PowerShell Beginner Series: https://www.youtube.com/playlist?list=PLnK11SQMNnE7RAezAk4P4GRRC0xohPtjC
PowerShell Intermediate Series: https://www.youtube.com/playlist?list=PLnK11SQMNnE6PcfDVgqPZ44aA4Cjc-ETg
Tags:
PowerShel
GUI
Programming
Scripting
Automating
JackedProgrammer
Coding