A PowerShell-Ready WPF project template by Antoine Habert of Nelite Software
http://www.nelite.com, creator of PoshBoard
this project started when colleagues writing PowerShell scripts asked me for a simple way to create PowerShell tools with a descent GUI that doesn't require high WPF or C# skills. They also wanted to use a visual designer to get a result. Other concerns
was to prevent the freezing of the UI when launching long running scripts, and if possible to embbed all this in one single exe.
So here comes PowerWPF!
Our goal is to ease the creation of WPF application for PowerShell people, that are
absolute beginners in WPF development
. We took care of all the PowerShell management functions (asynchronous calls, pipeline/runspace creation, etc...), leaving only the easiest way to call PowerShell engine and get its output. you just need to create
your UI using Visual studio, either by drag n drop or by XAML code, add a few lines of C# code and you're done.
- Calling PowerShell code and getting outputs is done with only 2/3 lines of C# code that a regular PowerShell user can understand quickly.
- Low WPF/C# skills required: You don't need to go very deep in WPF/C# development to create your GUI, call an internal script, use GUI element as reference for your code and update your UI.
- No freezing, responsive UI: PowerWPF uses asynchronous calls to PowerShell, leaving your UI responsive even with long running script, by design.
- Fast, self-contained build: build your application, and you get a self-contained exe file that you can share with anyone.
If you want to build quickly PowerShell based tools and discover the joy and ease of XAML GUI creation, PowerWPF is a pretty good start! tested and approved internally at Nelite with our IT experts. We think that XAML GUI development is really cool and easy
to understand, enjoyable to design, we hope that PowerWPF will help you get started with PowerShell/WPF tools creation.
We will publish a video shortly and how-to to help you get started.