Archive for December 25th, 2010

WPF: scrollbars not working

December 25, 2010

Do that ListBox doesn’t show scrollbars ? no vertical scrollbar ?!?!
Neither ScrollViewer seems work, really ?

Shortly …  maybe are you collecting your controls in a StackPanel ?!??!
Well, it’s all due to that StackPanel … it has no limits, so those controls don’t know whether they are in-sight or out-of-sight.
Try a DockPanel instead, plus LastChildFill property is very helpfull.

More words about scrollbars, are here Use the Right Container for ListBox Scrolling . 😉

Technorati Tags: ,,.
  • December 2010
    M T W T F S S
    « Nov   Jan »
  • .

    .Net Agile Antivirus Book C# Programming EntityFramework GTD Hyper-V LinQ MVVM Office Resharper SCRUM Security Sharepoint Silverlight SQLServer TFS ToDoList Unit Test VirtualBox Virtual PC Visual Studio VMware Windows7 WPF XeDotNet XML XPath
  • Advertisements