Compartilhar via


IXRVirtualizingStackPanel::SetIsVirtualizing (Compact 2013)

3/28/2014

This method sets a value that specifies whether this control is using virtualization.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetIsVirtualizing(
    __in  bool   IsVirtualizing
) = 0;

Parameters

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When an IXRItemsControl contains many items, the process of creating and discarding item containers can negatively affect performance. 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 ItemContainerGenerator from an IXRItemsControl (such as IXRListBox) to create UI elements only for visible items.

.NET Framework Equivalent

System.Windows.Controls.VirtualizingStackPanel.IsVirtualizingProperty

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRVirtualizingStackPanel