Udostępnij za pośrednictwem


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.

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>