PowerShell Tutorials : Making a GUI Part 5 - Designing with Visual Studio

Опубликовано: 30 Сентябрь 2024
на канале: JackedProgrammer
20,651
285

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:    • Installing Visual Studio 2019 on Wind...  



Microsoft System Windows Controls Docs: https://docs.microsoft.com/en-us/dotn...



Links:
First Video :    • PowerShell Tutorials : Making a GUI P...  
PowerShell Beginner Series:    • Beginner PowerShell Tutorials  


PowerShell Intermediate Series:    • Intermediate PowerShell Tutorials  


Tags:
PowerShel
GUI
Programming
Scripting
Automating
JackedProgrammer
Coding