PowerBoots: PowerShell で WPF が使えるツールキット


????Lang.NET ? PowerShell ??????15???????????????????PowerBoots ???

???????PowerShell ?? WPF (Windows Presentationi Foundation) ???? UI ??????????????????????????????? Karl Prosser ????Windows ? Tcl/Tk ??????????????????????????????????????????PowerBoots ???????Ruby ? RubyShoes ????????????

?????? CodePlex ??????????

PowerShell PowerBoots
http://powerboots.codeplex.com/

PowerShell V1?V2 ????????????(??????????????????????????????????WPF ??????.NET Framework 3.0 ???????)

???? Hello World ???

PS> Import-Module PowerBoots
PS> Boots { TextBlock "?????????" }

????????????????????????

image

Boots ? New-BootsWindow ????????????? WPF ?????????????????PowerShell ?????????????????

PS> Boots { "?????????"
| TextBlock -Margin 5 -FontSize 24 –FontWeight Bold
-Foreground "Red" | StackPanel -Margin 10
-BackGround "Pink"}

image

?????????????

psh> Boots { Button -Content "????????????"
-Margin 20 -FontSize 16}

image

WPF ????????????????????????????????????????????????????

Boots {
   TextBox -Width 220
} -Title "???????" -On_Close {
   Write-Output $BootsWindow.Content.Text
}

image

????????????????PowerShell ???????????????????????????????????????????????

image

????????????????????????????????UI ??????????????????????JPEG ???????????????????????????????????????

PowerBoots: The tutorial walkthrough
http://huddledmasses.org/powerboots-tutorial-walkthrough/

PowerShell ????????? UI ????????????????????????????????????????????????????? UI (???????)??????????????????????????

Comments (1)

  1. Anonymous says:

    PowerBoots とは、PowerShell で WPFアプリを開発するための、PowerShell Moduleです。 以前から PowerBoots に興味があったのですが、やっとインストールをしたので覚え書きとして残しておきます

Skip to main content