Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can PowerShell be used as code behind for WPF

We can use [Windows.Markup.XamlReader]::Load to load XAML file in PowerShell, but is there some way to specify some PowerShell script as code behind?

like image 245
alex2k8 Avatar asked Dec 18 '22 08:12

alex2k8


1 Answers

PowerShell can be used to provide functionality in a WPF application. Check out these great blog posts regarding using PowerShell and WPF...

HuddledMasses.Org - PowerBoots - a WPF GUI Toolkit for PowerShell

PowerBoots - Shoes for PowerShell

PowerBoots - Loading XAML Windows in PowerShell 1.0 or 2.0

Windows PowerShell Team Blog

http://blogs.msdn.com/powershell/archive/2008/05/25/powershell-and-wpf-wtf.aspx

WPF & PowerShell – Part 1 ( Hello World & Welcome to the Week of WPF )

WPF & PowerShell – Part 2 (Exploring WPF (and the rest of .NET) with Scripts)

WPF & PowerShell -- Part 3 (Handling Events)

WPF & PowerShell -- Part 4 (XAML & Show-Control)

WPF & PowerShell - Part 5 ( Using WPF & PowerShell Modules)

WPF & PowerShell - Part 6 (Running Functions in the Background)

WPF & PowerShell - Part 7 (Sharing Hosts)

like image 176
Steven Murawski Avatar answered Dec 29 '22 06:12

Steven Murawski