Windows Presentation Foundation (WPF) Question:
Why ListBox made to scroll smoothly?
Answer:
ListBox is configured to scroll on an item-by-item basis by default. This is dependent on the height of each element and the scrolling action, thus, giving a rough feeling. Better way is to configure scrolling action so that it shifts items by a few pixels irrespective of their height. This is done by setting the ScrollViewer.CanContentScroll property to "false". This will, however, make the ListBox lose the virtualization property.
Previous Question | Next Question |
From where the execution start in WPF application? | Tell me can Windows Service be created Using WPF? |