Can PowerShell be used as code behind for WPF

Question:

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?

Answer:

Now there is also WPK, in the PowerShellPack which makes creating WPF UI in PowerShell extremely straightforward and fun.

Source:

Can PowerShell be used as code behind for WPF by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply