PS GUI integrate scrollbar


Hi everyone,

i use this PS GUI for my work. It’s a few years old and no longer updated. As soon as the resolution drops below FullHD, the bottom half of the GUI disappears. I had the idea of ​​adding a scrollbar to fix this problem. I found one or two scripts for this on Google, but they don’t really work. So I’m hoping you can help me.

cu

bolle

# --- Enable Auto-Scrolling for complete Window Content ---
$ScrollViewer = New-Object System.Windows.Controls.ScrollViewer
$ScrollViewer.VerticalScrollBarVisibility = "Auto"
$ScrollViewer.HorizontalScrollBarVisibility = "Auto"

$OriginalContent = $Form.Content
$Form.Content = $null
$ScrollViewer.Content = $OriginalContent
$Form.Content = $ScrollViewer
# ----------------------------------------------------------

The PS GUI Script use WPF-GUI, that’s how it works problem solved.