C# WPF --- This is a "continuation" of c-sharpcorner.com/forums/what-is-a-simple-way-to-add-scrollbars-to-a-listbox.
XAML
<StackPanel Orientation="Vertical"> <ListBox x:Name="gLBxCharacters" Margin="5,0,5,0" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" /> </StackPanel>
This does not work.
<ListBox x:Name="gLBxCharacters" Margin="5,0,5,0" ScrollViewer.HorizontalScrollBarVisibility="Visible" ScrollViewer.VerticalScrollBarVisibility="Visible" />
This does work after <StackPanel ...> is removed.