Dela via


FrameworkElement.DeferTree(DependencyObject) Method

Definition

Removes the specified element from the XAML visual tree in a way that it can be undeferred later.

public:
 static void DeferTree(DependencyObject ^ element);
 static void DeferTree(DependencyObject const& element);
public static void DeferTree(DependencyObject element);
function deferTree(element)
Public Shared Sub DeferTree (element As DependencyObject)

Parameters

element
DependencyObject

The element to remove from the XAML visual tree.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

This API is part of the implementation detail of x:Load, and should not be used directly. Instead use the generated UnloadObject API in a page or user control. This will also release any references due to x:Name or x:Bind.

Applies to

See also

  • <xref:Load+attribute>