Skip to content
Simple domain-specific language for a small subset of WPF, mainly for doing very limited (get the picture?) input forms in PowerShell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
WPFBot3000
tests
LICENSE
appveyor.yml
build.ps1
changelog.md
contributing.md
deploy.PSDeploy.ps1
design_concepts.md
psake.ps1
readme.md

readme.md

WPFBot3000

Build status

A Domain-Specific Language for PowerShell that encapsulates and simplifies Windows Presentation Foundation (WPF) classes

Installation

PowerShell version check (minimum)

PS \> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
5      1      (any)  (any)

Install From PowerShell (Admin)

PS \> Install-Module -Name WPFBot3000 -Force

Visit WPFBot3000 at the PowerShell Gallery

Quickstart

Example One

Import-Module WPFBot3000

Dialog {
  TextBox FirstName
  TextBox LastName
  TextBox EmailAddress
  DatePicker ReminderDate
}

Example Two: 'Hello, World'

Import-Module WPFBot3000

Dialog {
  TextBox Name -property @{ Padding = '0,4,0,0' }
  Button Personalize -Action { $Greeting.Content="Hello, $($Name.Text)!" }
  Label 'Hello, World!' -Name Greeting
} -Property @{ Title = 'Hello!'; MinHeight = 144; MinWidth = 233; }

Documentation

Frequently Used Controls

Microsoft .NET WPF System.Windows.Controls Reference

Blog

Visit Mike's blog: PowerShell Station

You can’t perform that action at this time.