Freigeben über


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
https://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
https://huddledmasses.org/powerboots-tutorial-walkthrough/

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

Comments

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