Skip to content

v2 needs a better PowerShell example. #4618

Description

@joeskeen

The current PowerShell example works (with slight modification), but doesn't show you how to do anything useful with the UI like managing input. I've poured through the documentation and spent a couple hours trying to get anything nontrivial to work but to no avail. What I'd really like to see is an example even as simple as this one: #945 (comment) (which targeted v1). This illustrates both textbox and button event handling. Can anyone point me in the right direction?

P.S. Issues with the current examples:

  • PowershellExample.ps1 - it's looking for net8.0 folder, when v2 is only targeting net10
  • DatePicker.ps1:
    InvalidOperation: DatePicker.ps1:39
    Line |
      39 |      $accepted = [Prompt]::Show($app, "Select Date", $datePicker)
         |                  ~~~~~~~~
         | Unable to find type [Prompt].
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions