Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 Windows 8 Metro 应用程序中有一个 XAML 列表框,这个列表框绑定到一个可观察的集合,并且可以有数百个项目。它也有一个图像,我只想在一个项目可见时加载图像(当用户滚动到该项目时)。我怎样才能做到这一点。?
更改 ListBox 的 ItemPanelTemplate 以放置 VirtualizedStackPanel:控件将被虚拟化,并且只有屏幕上显示的项目才会加载到内存中。