Partager via


IXRVirtualizingPanel (Compact 2013)

3/28/2014

This C++ class provides a framework for IXRPanel elements that virtualize their visual children. This is an abstract class that exists to maintain parity with Microsoft Silverlight 3.

Syntax

class IXRVirtualizingPanel : public IXRPanel

Inheritance Hierarchy

IXRDependencyObject

    IXRUIElement

        IXRFrameworkElement

            IXRPanel

                IXRVirtualizingPanel

                    IXRVirtualizingStackPanel

Methods

This class implements no new methods. All its methods are inherited.

Thread Safety

Members of this class are thread safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

It is intensive, both in terms of memory and processor, to generate a large number of UI elements when only a few may be on the screen at a given time. Virtualization refers to a technique by which a subset of UI elements are generated from a larger number of data items, based on which items are visible on the screen. Through functionality that is provided by IXRVirtualizingPanel, IXRVirtualizingStackPanel calculates visible items and works with an internal implementation of the XRItemContainerGenerator from an IXRItemsControl (such as IXRListBox), to only create UI elements for visible items.

When you create a class instance, use an IXRVirtualizingPanelPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

System.Windows.Controls.VirtualizingPanel

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for UI Element Management