C# WPF --- This is a "continuation" of c-sharpcorner.com/forums/what-is-a-simple-way-to-add-scrollbars-to-a-listbox.
XAML
This does not work.
XAML
This does work after <StackPanel ...> is removed.
C# WPF --- This is a "continuation" of c-sharpcorner.com/forums/what-is-a-simple-way-to-add-scrollbars-to-a-listbox.
XAML
This does not work.
XAML
This does work after <StackPanel ...> is removed.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tuhin PaulPosted Jan 15, 2025, 6:26 PM
Here the ListBox is placed inside a Grid, which allows it to grow and shrink as the window is resized. The ScrollViewer properties are set to make the horizontal and vertical scrollbars visible.