Cmdlet
New-ConsoleScrollView
Creates a clipped vertical viewport for a small widget tree inside an app.
Syntax
New-ConsoleScrollView
[[-Content] <Object>]
[-Fill]
[-Height <Int32>]
[-MaxContentHeight <Int32>]
[-ScrollOffset <Int32>]
[-Weight <Double>]
[-Widget <IWidget>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Mouse wheel scrolls the viewport. Tab navigation reveals focused inputs. Lists, grids and logs keep their own row windows for large data.
Examples
Example 1
New-ConsoleScrollView -Content { $details } -Height 12A scrollable detail pane.
Parameters
- -Content Object
- Widgets, text, objects, or a script block that emits them.
- -Fill SwitchParameter
- Use the available height.
- -Height Int32
- Fixed viewport height in cells.
- -MaxContentHeight Int32
- Maximum composed rows for ordinary content; use virtualized lists or grids for larger data.
- -ScrollOffset Int32
- First visible content row.
- -Weight Double
- Share of the parent layout.
- -Widget IWidget
- A widget supplied through the pipeline.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.