Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

VirtualizingStackPanel.SetIsVirtualizing Method

Sets the value of the IsVirtualizingProperty attached property.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)

public static void SetIsVirtualizing (
	DependencyObject element,
	bool value
)
public static void SetIsVirtualizing (
	DependencyObject element, 
	boolean value
)
public static function SetIsVirtualizing (
	element : DependencyObject, 
	value : boolean
)
You cannot use methods in XAML.

Parameters

element

The object to which the attached property value is set.

value

true if the VirtualizingStackPanel is virtualizing; otherwise false.

In this context, the word "virtualize" refers to a technique by which a subset of user interface (UI) elements are generated from a larger number of data items based on which items are visible on-screen. Generating a large number of user interface (UI) elements when only a few elements might be on the screen at a given time is intensive with regard to both memory and processor. Through functionality that VirtualizingPanel provides, VirtualizingStackPanel calculates the number of visible items and works with the ItemContainerGenerator from an ItemsControl (such as ListBox or ListView) to create user interface (UI) elements only for visible items.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft