Skip to main content

PowerShell controls and dialogs

Choose the interface that gives your script the answer it needs. Images illustrate the type of interface; actual fields and options vary:

NeedStart with
Show a message or ask Yes/NoShow-FluenceMessage
Example in light mode Example in dark mode
Ask for one valueGet-FluenceInput
Illustrative form:
Example in light mode Example in dark mode
Ask for one or more list itemsShow-FluenceListSelection
Example in light mode Example in dark mode
Collect several validated valuesShow-FluenceDialog and New-FluencePrompt
Example in light mode Example in dark mode
Report work in progressShow-FluenceProgress
Example in light mode Example in dark mode
Show a deployment restart choiceShow-FluenceRestartPrompt
Example in light mode Example in dark mode
Build a custom interfaceShow-FluenceWindow
Example in light mode Example in dark mode
Show rows of PowerShell objects in a tableShow-FluenceWindow with a Fluence DataGrid; see Bind PowerShell objects to a DataGrid

The input type reference lists prompt types, values, defaults, and validation behavior. The result object reference explains what commands return.

For examples, use the dialogs, forms, progress, and custom window walkthroughs. The ControlsTour example shows the visual surface. Browse the control catalog when you need underlying C# controls for a custom window.

Explore the Controls Tour​

The Controls Tour script opens on Inputs and uses ten category buttons to switch between pages. It demonstrates the controls together with common variations and event handling. The examples are composed in a custom FluenceWindow; the prompt commands above remain the shorter choice when their built-in interaction fits your task.

CategoryExamples and variations
InputsSingle-line and multiline text, search suggestions, password reveal and strength indicators, standard and editable choices, inline and compact number steppers, date selection, and 12-hour and 24-hour time.
ColorFull color picker with spectrum and channel controls, plus a selected-color readout.
SelectionToggle, checked and indeterminate check boxes, radio buttons, toggle button, horizontal and vertical sliders, editable and read-only ratings, multiple-selection list and tree, and list and grid layouts.
CommandsStandard, accent, subtle, and disabled buttons; hyperlink and repeat buttons; drop-down, split, and toggle split buttons; flyouts, a command bar flyout, tooltips, menus, and context menus.
DataA sortable DataGrid bound to five PowerShell objects, with row selection reported in a shared InfoBar; TabView tabs that can be added, closed, and pinned; BreadcrumbBar; PipsPager; SelectorBar; and SlideNavigationPresenter.
NavigationNavigationView in Left, Top, and LeftCompact modes.
StatusProgress states, InfoBar severities, count, dot, and icon badges, and profile pictures.
SurfacesContentDialog with Save, Discard, and Cancel actions; TeachingTip; Expander; borders; TitleBar; and FlyoutPresenter.
LayoutDockPanel, StackPanel, separators, SmoothScrollViewer with themed scrollbar, icons, Image, typography, and all four Card styles.
AcrylicMoving source colors and a solid fallback switch for an in-app acrylic surface.

Use a prompt command such as Show-FluenceDialog when its supported prompts and result object match the interaction you need. Use Show-FluenceWindow when you need to arrange controls in your own XAML or create a different interaction with event handlers. The Windows from XAML guide explains those patterns.

On Acrylic, select Move source colors to see the backdrop change and Use solid fallback to switch it to an opaque fill. The current mode appears beside the sample. The Acrylic captures show the solid fallback selected. Add in-app acrylic to a custom window

Tour appearance by category​

Each category has a Light and Dark capture. Expand a category to compare its page in both themes.

Inputs

ControlsTour Inputs page in Light theme ControlsTour Inputs page in Dark theme

Color

ControlsTour Color page in Light theme ControlsTour Color page in Dark theme

Selection

ControlsTour Selection page in Light theme ControlsTour Selection page in Dark theme

Commands

ControlsTour Commands page in Light theme ControlsTour Commands page in Dark theme

Data

ControlsTour Data page in Light theme ControlsTour Data page in Dark theme

Navigation

ControlsTour Navigation page in Light theme ControlsTour Navigation page in Dark theme

Status

ControlsTour Status page in Light theme ControlsTour Status page in Dark theme

Surfaces

ControlsTour Surfaces page in Light theme ControlsTour Surfaces page in Dark theme

Layout

ControlsTour Layout page in Light theme ControlsTour Layout page in Dark theme

Acrylic

Controls Tour acrylic fallback in Light Controls Tour acrylic fallback in Dark