Since I work on the PowerShell team, I’ve been lucky enough to get a couple of years jump start on producing PowerShell V2 scripts and modules. With every new script I write in V2 I get more and more amazed by the possibilities in PowerShell.
There were quite a few name changes in the ISE Object Model from CTP3 to RC
Using Update-TypeData, we can achieve some parity between the two
We can add aliases to the CTP3 version to make it look like the RC Version
Well here we are at the end of a week of WPF. We’ve learned how to create basic, simple user interactive interfaces. We’ve seen a brief glimmer of the golden UI layer that is WPF, and have seen how we can use PowerShell to add easy interactivity to XAML.
For the next part in the series, I’ve introduced another update to the Show-Control function you first met in Part 4. In this update, I’ve added the ability to run the control you’ve created in a background runspace as a switch.
In the last post we met XAML, and I gave you a core function (Show-Control) that will help you make interactive WPF controls quite nicely in PowerShell.
You can see that, by using Show-Control, it is possible to reduce the size and complexity of a script that creates UI.
A number of people are confused by the WPF/PowerShell series and are “asking WTF?”. Aaron has a blog entry, WPF and PowerShell Series – I don’t get it. Caywen left a comment on the first in posting saying, “Ugh,
We’re not halfway through our week of WPF, and I’m pretty sure at this point that you have an all right grounding in the basics of WPF & PowerShell, but so far, the scripts haven’t really been very much like most PowerShell scripts,
So far, most of the wpf and powershell scripts you have seen have seen just show you something, but don’t do anything that interactive.
However, In order to make real applications you need to be able to handle events.
In my previous post, I showed you how to create “Hello World” scripts using Windows Presentation Foundation (WPF) and Windows PowerShell.
While “Hello World” is relatively easy to write with WPF, it is only the tip of the iceberg of the types of quick user interfaces you can write.