[go: nahoru, domu]

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

License

Notifications You must be signed in to change notification settings

MikeShepard/WPFBot3000

Repository files navigation

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

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

Blog

About

Simple domain-specific language for a small subset of WPF, mainly for doing very limited (get the picture?) input forms in PowerShell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published