Windows Presentation Foundation (WPF) Question:

Download Job Interview Questions and Answers PDF

Why ListBox made to scroll smoothly?

WPF Interview Question
WPF Interview Question

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.

Download WPF Interview Questions And Answers PDF

Previous QuestionNext Question
From where the execution start in WPF application?Tell me can Windows Service be created Using WPF?