Share via


VirtualizingStackPanel.SetVirtualizationMode Method

Definition

Sets the VirtualizingStackPanel.VirtualizationMode XAML attached property on the specified target element.

public:
 static void SetVirtualizationMode(DependencyObject ^ element, VirtualizationMode value);
 static void SetVirtualizationMode(DependencyObject const& element, VirtualizationMode const& value);
public static void SetVirtualizationMode(DependencyObject element, VirtualizationMode value);
function setVirtualizationMode(element, value)
Public Shared Sub SetVirtualizationMode (element As DependencyObject, value As VirtualizationMode)

Parameters

element
DependencyObject

The target element.

value
VirtualizationMode

One of the enumeration values that specifies whether element uses container recycling.

Remarks

For more info, see the VirtualizingStackPanel.VirtualizationMode attached property.

Applies to

See also