{"action":"opened","issue":{"url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/727","repository_url":"https://api.github.com/repos/SitecorePowerShell/Console","labels_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/727/labels{/name}","comments_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/727/comments","events_url":"https://api.github.com/repos/SitecorePowerShell/Console/issues/727/events","html_url":"https://github.com/SitecorePowerShell/Console/issues/727","id":184125495,"number":727,"title":"Dialog Commands: New commands for building UIs","user":{"login":"michaellwest","id":933163,"avatar_url":"https://avatars.githubusercontent.com/u/933163?v=3","gravatar_id":"","url":"https://api.github.com/users/michaellwest","html_url":"https://github.com/michaellwest","followers_url":"https://api.github.com/users/michaellwest/followers","following_url":"https://api.github.com/users/michaellwest/following{/other_user}","gists_url":"https://api.github.com/users/michaellwest/gists{/gist_id}","starred_url":"https://api.github.com/users/michaellwest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaellwest/subscriptions","organizations_url":"https://api.github.com/users/michaellwest/orgs","repos_url":"https://api.github.com/users/michaellwest/repos","events_url":"https://api.github.com/users/michaellwest/events{/privacy}","received_events_url":"https://api.github.com/users/michaellwest/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-20T03:15:32Z","updated_at":"2016-10-20T03:15:32Z","closed_at":null,"body":"A few years ago when I first started learning PowerShell I learned of a [module](https://showui.codeplex.com/) that generated commands for building UI.\r\n\r\nHere's an example of what I was thinking.\r\n* `Show-UI` : The primary command for rendering a wizard or modal dialog.\r\n\r\nControls:\r\n* `New-Label`\r\n* `New-RuleEditor`\r\n* `New-Treelist`\r\n* `New-Droplist`\r\n\r\nTo build and show a dialog you would do this:\r\n```powershell\r\n$tabs = @()\r\n\r\n$firstTabControls = @(\r\n    New-Checkbox -Title \"Proceed Silently\" -Value $true -Tooltip \"Check this if you don't want to be interrupted\",\r\n    New-Textbox -Title \"Text\" -Value \"Some text\" -Placeholder \"You see this when text box is empty\" -Tooltip \"Just a single line of Text\" -ValidationExpression \"[a-zA-Z]*\"\r\n)\r\n\r\n$tabs += New-Tab -Name \"FirstTab\" -Title \"Start\" -Controls $firstTabControls\r\n \r\nShow-UI -Title \"Welcome to your first Wizard!\" -Tabs $tabs\r\n```"}}
{"actor":{"display_login":"michaellwest"}}